Thread:User talk:CodeCat/ t-SOP/reply (8)

There's some documentation at User:Conrad.Irwin/editor docs. I think the relevant line is.

We'd want something like if( /^\[\^\[\*\]\]$/.test( txt ) ) { return error( "[some message warning people not to surround the translation in brackets or something]" ); } if( /[\{\|#\}\]]/.test( txt ) ) { return error( "[error message about not using non-[] types of wikimarkup...]" ); } return txt || error( "Please specify a translation." ); instead, I guess.