“模板:Shortcut”的版本间差异
跳到导航
跳到搜索
L>IN |
L>Shirayuki |
||
第1行: | 第1行: | ||
< | <languages/> | ||
<onlyinclude>{{#switch:<translate></translate> | |||
| = | |||
<div style="{{#switch: {{dir|{{pagelang}}|left|right}} | |||
| right= float: right; clear: right; margin: 0 0 0.5em 0.5em; | |||
| left= float: left; clear: left; margin: 0 0 0.5em 0.5em; | |||
}} background: #ccff99; padding: 5px 8px; border-radius: 10px; font-size: 85%; text-align: center;"><translate><!--T:5--> {{PLURAL:<tvar|1>{{#if:{{{5|}}}|5|{{#if:{{{4|}}}|4|{{#if:{{{3|}}}|3|{{#if:{{{2|}}}|2|1}}}}}}}}</>|shortcut|shortcuts}}:</translate> <!-- | |||
If there is only one, show "shortcut: FOO", other wise "shortcuts:<br />FOO<br />BAR.." | |||
-->{{#if: {{{1|}}} | {{#if: {{{2|}}} | <br /> }} [[{{{1|}}}|'''{{{1|}}}''']] }}<!-- | |||
-->{{#if: {{{2|}}} | <br />[[{{{2|}}}|'''{{{2|}}}''']] }}<!-- | |||
-->{{#if: {{{3|}}} | <br />[[{{{3|}}}|'''{{{3|}}}''']] }}<!-- | |||
-->{{#if: {{{4|}}} | <br />[[{{{4|}}}|'''{{{4|}}}''']] }}<!-- | |||
-->{{#if: {{{5|}}} | <br />[[{{{5|}}}|'''{{{5|}}}''']] }}<!-- | |||
--></div> | |||
| #default= | |||
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Shortcut|noshift=1}} | |||
}}</onlyinclude> | |||
{{clear}} | |||
{{Documentation|content= | |||
<translate> | |||
== Usage == <!--T:1--> | |||
</translate> | |||
{{Shortcut|RL2}} | |||
<pre>{{Shortcut|RL2}}</pre> | |||
{{-}} | |||
{{Shortcut|RL2|RL/V2SPEC}} | |||
<pre>{{Shortcut|RL2|RL/V2SPEC}}</pre> | |||
{{-}} | |||
{{Shortcut|a|b|c|d|e}} | |||
<pre>{{Shortcut|a|b|c|d|e}}</pre> | |||
<translate> | |||
<!--T:2--> | |||
Supports up to 5 shortcuts. | |||
</translate> | |||
}} | |||
[[Category:Utility templates{{#translation:}}|{{PAGENAME}}]] |
2020年8月6日 (四) 11:14的版本
<languages/> {{#switch:<translate></translate> | =
<translate> shortcut:</translate> {{#if: | {{#if: |
}} [[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}
}} [[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Shortcut|noshift=1}}
}}
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:<translate>
Usage
</translate> {{#switch:<translate></translate> | =
<translate> shortcut:</translate> {{#if: RL2 | {{#if: |
}} RL2 }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}
}} RL2 }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Shortcut|noshift=1}}
}}
{{Shortcut|RL2}}
{{#switch:<translate></translate> | =
<translate> shortcut:</translate> {{#if: RL2 | {{#if: RL/V2SPEC |
}} RL2 }}{{#if: RL/V2SPEC |
RL/V2SPEC }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}
}} RL2 }}{{#if: RL/V2SPEC |
RL/V2SPEC }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}{{#if: |
[[|']] }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Shortcut|noshift=1}}
}}
{{Shortcut|RL2|RL/V2SPEC}}
{{#switch:<translate></translate> | =
<translate> shortcut:</translate> {{#if: a | {{#if: b |
}} a }}{{#if: b |
b }}{{#if: c |
c }}{{#if: d |
d }}{{#if: e |
e }}
}} a }}{{#if: b |
b }}{{#if: c |
c }}{{#if: d |
d }}{{#if: e |
e }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Shortcut|noshift=1}}
}}
{{Shortcut|a|b|c|d|e}}
<translate> Supports up to 5 shortcuts. </translate>| [[Category:Template documentation pages{{#translation:}}]] }} [[Category:Utility templates{{#translation:}}|Shortcut]]