Template:Shortcut/layout: Difference between revisions
Jump to navigation
Jump to search
(initial copy) |
(add ref for docs of basepage) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Badge|align={{dir|{{pagelang}}|left|right}}|bg-color=#ccff99|border=|style=font-size: 85%;|content={{{shortcuts2|}}} <!-- | {{Badge | ||
| align = right <!-- {{dir|{{pagelang}}|left|right}} --> | |||
| bg-color = #ccff99 | |||
| border = | |||
| style = font-size: 85%; | |||
| content = {{{shortcuts2|}}} <!-- | |||
If there is only one, show "shortcut: FOO", other wise "shortcuts:<br />FOO<br />BAR.." | If there is only one, show "shortcut: FOO", other wise "shortcuts:<br />FOO<br />BAR.." | ||
-->{{#if: {{{1|}}} | {{#if: {{{2|}}} | <br | -->{{#if: {{{1|}}} | {{#if: {{{2|}}} | <br> }} [[{{{1}}}|'''{{{1}}}''']] }}<!-- | ||
-->{{#if: {{{2|}}} | <br | -->{{#if: {{{2|}}} | <br>[[{{{2}}}|'''{{{2}}}''']] }}<!-- | ||
-->{{#if: {{{3|}}} | <br | -->{{#if: {{{3|}}} | <br>[[{{{3}}}|'''{{{3}}}''']] }}<!-- | ||
-->{{#if: {{{4|}}} | <br | -->{{#if: {{{4|}}} | <br>[[{{{4}}}|'''{{{4}}}''']] }}<!-- | ||
-->{{#if: {{{5|}}} | <br | -->{{#if: {{{5|}}} | <br>[[{{{5}}}|'''{{{5}}}''']] }}<!-- | ||
-->}} | -->}}<noinclude> | ||
{{Documentation | Template:Shortcut/doc}} | |||
<!-- Add categories and interwikis to the /doc subpage, not here. Thanks. --> | |||
</noinclude> |
Latest revision as of 20:22, 11 December 2017
Usage
shortcut: Main Page
{{Shortcut|Main Page}}
{{Shortcut|Main Page|Packs}}
Supports up to 5 shortcuts.
Source
Code initially taken from Mediawiki - Template:Shortcut/en
Related pages
- {{Shortcut}} - main page
- {{Shortcut/layout}} - responsible for styling
The above documentation is transcluded from Template:Shortcut/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |