Template:Msg
From Erights
(Difference between revisions)
Kevin Reid (Talk | contribs) (not working) |
Kevin Reid (Talk | contribs) (remove #if so we can use it for now) |
||
Line 1: | Line 1: | ||
- | [[Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}]][[:Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}|{{{1}}}]] | + | [[Category:Message {{{1}}}]][[:Category:Message {{{1}}}|{{{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> |
Revision as of 20:01, 28 January 2011
[[Category:Message {{{1}}}]][[:Category:Message {{{1}}}|{{{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.