Template:Template shortcut/testcases
Appearance
This is the template test cases page for the sandbox of Template:Template shortcut. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Namespace detection
{{Template shortcut|:Foo|User:Bar|Baz|template=yes}}
'"`UNIQ--templatestyles-00000006-QINU`"'<div class="module-shortcutanchordiv"><span id=":Foo"></span><span id="User:Bar"></span><span id="Baz"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-00000008-QINU`"'<div class="plainlist"><ul><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Foo&redirect=no :Foo]</span>}}</li><li>{{[[:User:Bar|User:Bar]]}}</li><li>{{[[:Template:Baz|Baz]]}}</li></ul></div></div>
'"`UNIQ--templatestyles-0000000A-QINU`"'<div class="module-shortcutanchordiv"><span id=":Foo"></span><span id="User:Bar"></span><span id="Baz"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-0000000C-QINU`"'<div class="plainlist"><ul><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Foo&redirect=no :Foo]</span>}}</li><li>{{[[:User:Bar|User:Bar]]}}</li><li>{{[[:Template:Baz|Baz]]}}</li></ul></div></div>
clear=right
{{Template shortcut|ping|re|replyto|reply|yo|clear=right}}
'"`UNIQ--templatestyles-0000000E-QINU`"'<div class="module-shortcutanchordiv"><span id="ping"></span><span id="re"></span><span id="replyto"></span><span id="reply"></span><span id="yo"></span></div><div class="module-shortcutboxplain noprint" role="note" style="clear:right"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-0000000F-QINU`"'<div class="plainlist"><ul><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Ping&redirect=no ping]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Re&redirect=no re]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Replyto&redirect=no replyto]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Reply&redirect=no reply]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Yo&redirect=no yo]</span>}}</li></ul></div></div>
'"`UNIQ--templatestyles-00000010-QINU`"'<div class="module-shortcutanchordiv"><span id="ping"></span><span id="re"></span><span id="replyto"></span><span id="reply"></span><span id="yo"></span></div><div class="module-shortcutboxplain noprint" role="note" style="clear:right"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-00000011-QINU`"'<div class="plainlist"><ul><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Ping&redirect=no ping]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Re&redirect=no re]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Replyto&redirect=no replyto]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Reply&redirect=no reply]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Yo&redirect=no yo]</span>}}</li></ul></div></div>
pre=subst:
{{Template shortcut|Move|Rename|Rm|pre=subst:}}
'"`UNIQ--templatestyles-00000013-QINU`"'<div class="module-shortcutanchordiv"><span id="Move"></span><span id="Rename"></span><span id="Rm"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-00000014-QINU`"'<div class="plainlist"><ul><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Move&redirect=no Move]</span>}}</li><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rename&redirect=no Rename]</span>}}</li><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rm&redirect=no Rm]</span>}}</li></ul></div></div>
'"`UNIQ--templatestyles-00000015-QINU`"'<div class="module-shortcutanchordiv"><span id="Move"></span><span id="Rename"></span><span id="Rm"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-00000016-QINU`"'<div class="plainlist"><ul><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Move&redirect=no Move]</span>}}</li><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rename&redirect=no Rename]</span>}}</li><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rm&redirect=no Rm]</span>}}</li></ul></div></div>
pre1=subst:
{{Template shortcut|Move|Rename|Rm|pre1=subst:}}
'"`UNIQ--templatestyles-00000018-QINU`"'<div class="module-shortcutanchordiv"><span id="Move"></span><span id="Rename"></span><span id="Rm"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-00000019-QINU`"'<div class="plainlist"><ul><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Move&redirect=no Move]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rename&redirect=no Rename]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rm&redirect=no Rm]</span>}}</li></ul></div></div>
'"`UNIQ--templatestyles-0000001A-QINU`"'<div class="module-shortcutanchordiv"><span id="Move"></span><span id="Rename"></span><span id="Rm"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-0000001B-QINU`"'<div class="plainlist"><ul><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Move&redirect=no Move]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rename&redirect=no Rename]</span>}}</li><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rm&redirect=no Rm]</span>}}</li></ul></div></div>
pre=subst:, pre1=xyz:
{{Template shortcut|Move|Rename|Rm|pre=subst: |pre1=xyz:}}
'"`UNIQ--templatestyles-0000001D-QINU`"'<div class="module-shortcutanchordiv"><span id="Move"></span><span id="Rename"></span><span id="Rm"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-0000001E-QINU`"'<div class="plainlist"><ul><li>{{xyz:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Move&redirect=no Move]</span>}}</li><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rename&redirect=no Rename]</span>}}</li><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rm&redirect=no Rm]</span>}}</li></ul></div></div>
'"`UNIQ--templatestyles-0000001F-QINU`"'<div class="module-shortcutanchordiv"><span id="Move"></span><span id="Rename"></span><span id="Rm"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcuts]]</div>'"`UNIQ--templatestyles-00000020-QINU`"'<div class="plainlist"><ul><li>{{xyz:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Move&redirect=no Move]</span>}}</li><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rename&redirect=no Rename]</span>}}</li><li>{{subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Rm&redirect=no Rm]</span>}}</li></ul></div></div>
redirect=yes
{{Template shortcut|R to trade name|redirect=yes}}
'"`UNIQ--templatestyles-00000022-QINU`"'<div class="module-shortcutanchordiv"><span id="R_to_trade_name"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Redirect|Redirect]]</div>'"`UNIQ--templatestyles-00000023-QINU`"'<div class="plainlist"><ul><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:R_to_trade_name&redirect=no R to trade name]</span>}}</li></ul></div></div>
'"`UNIQ--templatestyles-00000024-QINU`"'<div class="module-shortcutanchordiv"><span id="R_to_trade_name"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Redirect|Redirect]]</div>'"`UNIQ--templatestyles-00000025-QINU`"'<div class="plainlist"><ul><li>{{<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:R_to_trade_name&redirect=no R to trade name]</span>}}</li></ul></div></div>