Difference between revisions of "Template:Shortcut"

1,889 bytes removed ,  19:33, 3 February 2009
m
1 revision
m (1 revision)
 
m (1 revision)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Testing {{tl|shortcut/sandbox}} ==
<table class="shortcutbox noprint" style="float: right; border: 1px solid #aaa; background: #fff; margin: .3em .3em .3em 1em; padding: 3px; text-align: center;"><tr><th style="border: none; background: transparent;"><!--
Putting anchors on page:
-->{{#if:{{{1|}}}|<span id="{{{1|}}}"></span> }}{{#if:{{{2|}}}|<span id="{{{2|}}}"></span> }}{{#if:{{{3|}}}|<span id="{{{3|}}}"></span> }}{{#if:{{{4|}}}|<span id="{{{4|}}}"></span> }}{{#if:{{{5|}}}|<span id="{{{5|}}}"></span> }}<!--
Adding the shortcut links:
--><small>[[Wikipedia:Shortcut|Shortcut{{#if:{{{2|}}}|s}}]]: {{#if:{{{1|}}}|<br> [[{{{1}}}]] }}{{#if:{{{2|}}}|<br> [[{{{2}}}]] }}{{#if:{{{3|}}}|<br> [[{{{3}}}]] }}{{#if:{{{4|}}}|<br> [[{{{4}}}]] }}{{#if:{{{5|}}}|<br> [[{{{5}}}]] }}</small></th></tr></table><!--
Reporting if the first parameter is not a valid non-bracketed shortcut name:
-->{{#if:{{{1|}}}
| {{#ifexist:{{{1|}}}
  |
  | [[Category:Wikipedia shortcut box first parameter needs fixing|{{PAGENAME}}]]
  }}
}}<noinclude>


{{notice|A notice box}}
{{pp-template|small=yes}}
{{shortcut/sandbox|WP:MOSNUM|WP:NBSP}}
{{Documentation}}
__TOC__
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
{{lorem}}
{{shortcut/sandbox|WP:SHORT}}
{{lorem}}
 
:''The next example here was supposed to test that the box really does report pages who use it wrongly to the [[CAT:SHORTFIX]]. But this page got "fixed" by editors working through CAT:SHORTFIX. You gotta appreciate such dedication, and it shows that this error reporting works better than expected.''
{{shortcut/sandbox|WP:CRYPTO}}
This one has first parameter with brackets "<code>[[ ]]</code>". Then the anchor does not work right. The shortcut box detects this and adds the category below that warns about it, so we can find and fix such pages easily.
 
* A list item.
* Another list item.
* Let's put a shortcut after this item. {{shortcut/sandbox|WP:C}}
** Should have one indented dot, <s>but gets two dots instead.</s>
*** Even more indented.
*** Some more items.
 
== Anchors ==
 
This page should have the following anchors, try them:
 
* [[#WP:MOSNUM]]
* [[#WP:NBSP]]
* [[#WP:SHORT]]
 
* [[#WP:CRYPTO]] &ndash; Does not work since the parameter was fed to the shortcut box with brackets "<code>[[ ]]</code>", thus causing the anchor to instead be [[#.5B.5BWP:CRYPTO.5D.5D]].
 
== Testing {{tl|shortcut/sandbox}} ==
 
* A list item.
* Another list item.
* Let's put a shortcut after this item. {{shortcut|WP:C}}
** Should have one indented dot, <s>but gets two dots instead.</s>
*** Even more indented.
*** Some more items.
 
== Testing {{tl|policy shortcut/sandbox}} ==
 
{{notice|A notice box}}
{{policy shortcut/sandbox|WP:MOS|WP:V}}
 
{{lorem}}
{{policy shortcut/sandbox|float=left|WP:B}}
{{lorem}}
 
{{policy shortcut/sandbox|WP:C}}
This one has first parameter with brackets "<code>[[ ]]</code>". Then the anchor does not work right. The shortcut box detects this and adds the category below that warns about it, so we can find and fix such pages easily.
 
* A list item.
* Another list item.
* Let's put a shortcut after this item. {{policy shortcut/sandbox|WP:D}}
** Should have one indented dot, <s>but gets two dots instead.</s>
*** Even more indented.
*** Some more items.
 
== Testing {{tl|policy shortcut}} ==
 
* A list item.
* Another list item.
* Let's put a shortcut after this item. {{policy shortcut|WP:D}}
** Should have one indented dot, <s>but gets two dots instead.</s>
*** Even more indented.
*** Some more items.
{{clear}}
{{policy shortcut|float=left|WP:D}}
{{lorem}}
 
== Testing {{tl|shortcut-l}} ==
 
{{shortcut-l|WT:IMBOX}}
<br clear=all>
 
* A list item.
* Another list item.
* Let's put a shortcut after this item. {{shortcut-l|WP:D}}
** Should have one indented dot, but it used to end up inside the box, fixed.
*** Even more indented.
*** Some more items.
 
== Testing {{tl|template shortcut}} ==
 
* A list item.
* Another list item.
* Let's put a shortcut after this item. {{template shortcut|template shortcut}}
** Should have one indented dot, but box used to break, fixed.
*** Even more indented.
*** Some more items.
Budlight
Bots, Bureaucrats, Administrators
529

edits