「Transwiki:Template shortcut」の版間の差分
削除された内容 追加された内容
en:Template:Template shortcut最新版より一部コピー。存在しないページを指定した時は赤リンクを表示に改善。 |
en:Template:Template shortcut oldid=812546753 より更新 - plainlist採用によるアクセシビリティの向上、{{ショートカット}}の表示に近づける、10件まで表示できるようにする |
||
1 行 | 1 行 | ||
<includeonly>< |
<includeonly><div role="note" class="shortcutbox shortcutbox-template plainlist plainlinks noprint" style="<!-- |
||
-->{{#switch:{{{clear|}}} |true=clear:{{{float|right}}}; |left|right|both=clear:{{{clear|}}}; |#default=}}<!-- |
|||
{{#ifeq:{{{float|}}}|left |
-->float: {{#ifeq:{{{float|}}}|left|left|right}};<!-- |
||
| float:left; margin: .3em 1em .3em .3em; |
|||
-->margin: {{{top|0em}}} {{#ifeq:{{{float|}}}|left|1em 0em 0em|0em 0em 1em}};<!-- |
|||
| float:right; margin: .3em .3em .3em 1em; |
|||
⚫ | |||
}} |
|||
下記よりショートカットリンク |
|||
⚫ | |||
--><div style="display: inline-block; border-bottom: 1px solid #aaa; line-height: 1.5em; font-weight: normal; margin-bottom: .2em;">{{#if:{{{redirect|}}} |リダイレクト|[[Wikipedia:ショートカット|ショートカット]]}}:</div>{{bulleted list |
|||
英語版では<div class="plainlist">としていますが、日本語版では2012年11月現在使えません。 |
|||
⚫ | | {{#if: {{{1|<noinclude>{{PAGENAME}}</noinclude>}}} | {{{{{pre|}}}{{#ifexist:Template:{{{1}}} |[{{fullurl:Template:{{{1}}}|redirect=no}} {{#if:true|{{{1}}}}}] |[[Template:{{{1|<noinclude>{{PAGENAME}}</noinclude>}}}|{{#if:true|{{{1|<noinclude>{{PAGENAME}}</noinclude>}}}}}]]}}}} }}<!-- |
||
--> |
|||
⚫ | |||
⚫ | |||
-->{{#if:{{{2|}}}| |
|||
⚫ | |||
⚫ | |||
-->{{#if:{{{3|}}}| |
|||
⚫ | |||
⚫ | |||
-->{{#if:{{{4|}}}| |
|||
⚫ | |||
⚫ | |||
-->{{#if:{{{5|}}}| |
|||
⚫ | |||
⚫ | |||
-->{{#if:{{{6|}}}| |
|||
⚫ | |||
--> | {{#if:{{{7|}}} | {{{{{pre7|}}}{{#ifexist:Template:{{{7}}} |[{{fullurl:Template:{{{7}}}|redirect=no}} {{#if:true|{{{7}}}}}] |[[Template:{{{7}}}|{{#if:true|{{{7}}}}}]]}}}} }}<!-- |
|||
⚫ | |||
--> | {{#if:{{{8|}}} | {{{{{pre8|}}}{{#ifexist:Template:{{{8}}} |[{{fullurl:Template:{{{8}}}|redirect=no}} {{#if:true|{{{8}}}}}] |[[Template:{{{8}}}|{{#if:true|{{{8}}}}}]]}}}} }}<!-- |
|||
--> | {{#if:{{{9|}}} | {{{{{pre9|}}}{{#ifexist:Template:{{{9}}} |[{{fullurl:Template:{{{9}}}|redirect=no}} {{#if:true|{{{9}}}}}] |[[Template:{{{9}}}|{{#if:true|{{{9}}}}}]]}}}} }}<!-- |
|||
--> | {{#if:{{{10|}}} | {{{{{pre10|}}}{{#ifexist:Template:{{{10}}} |[{{fullurl:Template:{{{10}}}|redirect=no}} {{#if:true|{{{10}}}}}] |[[Template:{{{10}}}|{{#if:true|{{{10}}}}}]]}}}} }}<!-- |
|||
-->}}<!-- |
|||
--></div></includeonly><noinclude> |
|||
⚫ | |||
</noinclude> |
2020年3月28日 (土) 08:30時点における版
テンプレート:Tsh テンプレートのショートカットを表示するテンプレートです。最大5つまでのショートカットを表示することが出来ます。
使用法
{{Outdent}}のショートカットの{{od}}、{{インデント戻し}}を、次のようにして表示できます。
- 例:
{{template shortcut|od}}
- 例:
{{template shortcut|od|インデント戻し}}
他の引数
このテンプレートには以下の引数があります。
"float=left"という指定で左側にテンプレートを置くことができます:
{{template shortcut|float=left|Citation needed}}
"pre=任意のテキスト"、"pre2=任意のテキスト"、"pre3=任意のテキスト"...で括弧内にてショートカットの前に指定したテキストが表示されます。subst必須のテンプレートの場合に使用します。:
- 例: {{template shortcut|pre=subst:|pre2=pre2の例 -|subst only|BS}}
関連項目
この解説は、Transwiki:Template shortcut/docから呼び出されています。 (編集 | 履歴) |