Template:Template shortcut: Difference between revisions
add 3rd parameter
(frustrating. Also add th closing tag) |
(add 3rd parameter) |
||
Line 1: | Line 1: | ||
<table style="border: 1px solid #999; background: #fff; margin: .3em .3em .3em 1em; padding: 3px; float: right" class="noprint"> | <table style="border: 1px solid #999; background: #fff; margin: .3em .3em .3em 1em; padding: 3px; float: right" class="noprint"> | ||
<th id="shortcut" class="noprint" align="center" valign="top"><small>Template shortcut:<br />{{#if:{{{1|}}}|{{tl|{{{1}}}}}|{{tl|{{lcfirst:{{PAGENAME}}}}}}}}{{#if:{{{2|}}}|<br />{{tl|{{{2}}}}}}}</small></th> | <th id="shortcut" class="noprint" align="center" valign="top"><small>Template shortcut:<br />{{#if:{{{1|}}}|{{tl|{{{1}}}}}|{{tl|{{lcfirst:{{PAGENAME}}}}}}}} {{#if:{{{2|}}}|<br />{{tl|{{{2}}}}}}} | ||
{{#if:{{{3|}}}|<br />{{tl|{{{3}}}}}}}</small></th> | |||
</table><noinclude> | </table><noinclude> | ||
This template provides the name of shortcut that template, specified by a parameter. Copied and pasted (with adjustments) from {{tl|shortcut}}. If you want to indicate that {{tl|uw-vandalism1}}'s shortcuts are {{tl|uw-v1}} and {{tl|uw-vand1}}, you could do | This template provides the name of shortcut that template, specified by a parameter. Copied and pasted (with adjustments) from {{tl|shortcut}}. If you want to indicate that {{tl|uw-vandalism1}}'s shortcuts are {{tl|uw-v1}}, {{tl|uw-vandal1}}, and {{tl|uw-vand1}}, you could do | ||
:<nowiki>{{template shortcut|uw-v1}}</nowiki> | :<nowiki>{{template shortcut|uw-v1}}</nowiki> | ||
{{template shortcut|uw-v1}} | {{template shortcut|uw-v1}} | ||
or | or | ||
:<nowiki>{{template shortcut|uw-v1|uw-vand1}}</nowiki> | :<nowiki>{{template shortcut|uw-v1|uw-vand1}}</nowiki> | ||
{{template shortcut|uw-v1|uw-vand1}} | {{template shortcut|uw-v1|uw-vand1}} | ||
or | |||
:<nowiki>{{template shortcut|uw-v1|uw-vand1|uw-vandal1}}</nowiki> | |||
{{template shortcut|uw-v1|uw-vand1|uw-vandal1}} | |||
on that page.</noinclude> | on that page.</noinclude> |