Hello fellow admins, developers, and gawkers,
We have several tag extensions that our authors misuse. Our talented authors are able to
find incorrect uses for our tags both logically and syntactically, but the syntactical
error checking would be of more general use. One of our authors favorite abuses of our
tag extensions is to have two opening tags instead of one open and one close surrounding
their data. (For example, <sup>footnote<sup>). The authors are often very
frustrated when they can't figure out why they have tiny text that isn't going in
a straight line and because all they are missing is a slash they often can't see it in
the wiki text.
So are there any standard, tried-and-tested user error checking methods for tags that
anyone would like to share? Unfortunately, "get smarter users" won't work
for us.
I have already figured out the usefulness of
Function myTag( $input, $args, $parser ) {
If ( empty($input) ) {
Return wfMsg('mytag-error');
}
Else { ...}
}
Any insights would be appreciated.
Courtney Christensen
Show replies by date