Difference between revisions of "Template:Shortcut"

From Noolaham Foundation
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
+
{{Shortcut/layout
Putting anchors on page:
+
|lang=en
--><div style="position: relative; top: -3em;">{{#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> }}</div>
+
|shortcut=shortcut
<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;"><!--
+
|shortcuts=shortcuts
Adding the shortcut links:
+
|1={{{1|}}}
--><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><!--
+
|2={{{2|}}}
Reporting if the first parameter is not a valid non-bracketed shortcut name:
+
|3={{{3|}}}
-->{{#if:{{{1|}}}
+
|4={{{4|}}}
| {{#ifexist:{{{1|}}}
+
|5={{{5|}}}
  |
 
  |
 
  }}
 
 
}}<noinclude>
 
}}<noinclude>
{{Documentation}}
+
{{clear}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
 
 +
== Usage ==
 +
{{Shortcut|RL2}}
 +
<pre>{{Shortcut|RL2}}</pre>
 +
 
 +
{{clear}}
 +
 
 +
{{Shortcut|RL2|RL/V2SPEC}}
 +
<pre>{{Shortcut|RL2|RL/V2SPEC}}</pre>
 +
 
 +
Supports up to 5 shortcuts.
 +
{{Languages}}
 +
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:08, 17 September 2014

{{#if: | shortcuts | shortcut }}: {{#if: | {{#if: |
}} [[|']] }}{{#if: |
[[|'
]] }}{{#if: |
[[|']] }}{{#if: |
[[|'
]] }}{{#if: |
[[|']] }}

Usage

{{#if: | shortcuts | shortcut }}: {{#if: RL2 | {{#if: |
}} RL2 }}{{#if: |
[[|']] }}{{#if: |
[[|'
]] }}{{#if: |
[[|']] }}{{#if: |
[[|'
]] }}
{{Shortcut|RL2}}
{{#if: RL/V2SPEC | shortcuts | shortcut }}: {{#if: RL2 | {{#if: RL/V2SPEC |
}} RL2 }}{{#if: RL/V2SPEC |
RL/V2SPEC }}{{#if: |
[[|']] }}{{#if: |
[[|'
]] }}{{#if: |
[[|']] }}
{{Shortcut|RL2|RL/V2SPEC}}

Supports up to 5 shortcuts. Template:Languages