Template:Msg
From Erights
(Difference between revisions)
Kevin Reid (Talk | contribs) (not working) |
(avoid swallowing whitespace) |
||
(2 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | [[Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}]][[:Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}|{{{1}}}]] | + | [[:Category:Message {{{1}}}|{{{1}}}]][[Category:Message {{{1}}}]]<noinclude> |
- | + | <!-- Version using #if: [[Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}]][[:Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}|{{{1}}}]] --> | |
- | + | ||
Use for mentions of particular messages (verb+arity). Automatically links to the category and puts it in the category. | Use for mentions of particular messages (verb+arity). Automatically links to the category and puts it in the category. | ||
Usage: | Usage: | ||
- | + | * <nowiki>{{{msg|messageVerb/messageArity}}}</nowiki> (shows arity) | |
- | + | * <nowiki>{{{msg|messageVerb|messageArity}}}</nowiki> (does not show arity) {{XXX|Not available until the wiki has #if: support}} | |
For N-ary messages (e.g. __makeList.run), use "*" for the arity.</noinclude> | For N-ary messages (e.g. __makeList.run), use "*" for the arity.</noinclude> |
Latest revision as of 20:02, 28 January 2011
[[:Category:Message {{{1}}}|{{{1}}}]][[Category:Message {{{1}}}]]
Use for mentions of particular messages (verb+arity). Automatically links to the category and puts it in the category.
Usage:
- {{{msg|messageVerb/messageArity}}} (shows arity)
- {{{msg|messageVerb|messageArity}}} (does not show arity) XXX Not available until the wiki has #if: support
For N-ary messages (e.g. __makeList.run), use "*" for the arity.