「テンプレート:Substitute」の版間の差分
ナビゲーションに移動
検索に移動
Dummy index (トーク | 投稿記録) :en:Template:Substituteからコピー |
Dummy index (トーク | 投稿記録) 文言をjawpに合わせる |
||
| 1行目: | 1行目: | ||
<includeonly>{{Mbox | <includeonly>{{Mbox | ||
| type = notice | | type = notice | ||
| text = <span style{{=}}"font-size: 16px;">''' | | text = <span style{{=}}"font-size: 16px;">'''このテンプレートは{{#switch: {{trim|{{lc: {{{1|}}}}}}} | ||
| always = | | always = 常に[[wiki:Help:テンプレート#テンプレートの内容で置き換える|Subst展開]]してください。'''次のように入力します。<code><nowiki>{{subst:</nowiki>{{{tname|{{ROOTPAGENAME}}}}}<nowiki>}}</nowiki></code>{{#ifeq: {{lc: {{ARTICLEROOTPAGENAME}}}}|template:substitute||{{#ifeq: {{lc:{{NAMESPACE}}}}|template|{{#if: {{#titleparts: {{FULLPAGENAME}}|-1}}||[[Category:Subst展開するテンプレート]]}}|}}}} | ||
| no = | | no = 常に[[wiki:Help:テンプレート#テンプレートの内容で置き換える|Subst展開]]''しないで''ください。''' | ||
| #default = | | #default = [[wiki:Help:テンプレート#テンプレートの内容で置き換える|Subst展開]]してもよいです。'''{{#ifeq: {{lc: {{ARTICLEROOTPAGENAME}}}}|template:substitute||{{#ifeq: {{lc: {{NAMESPACE}}}}|template|{{#if: {{#titleparts: {{FULLPAGENAME}}|-1}}||[[Category:Subst展開可能テンプレート]]}}|}}}} | ||
}}</span> | }}</span> | ||
| icon = Icon-Substitute.png | | icon = Icon-Substitute.png | ||
| 11行目: | 11行目: | ||
{{documentation}} | {{documentation}} | ||
[[Category: | [[Category:メッセージボックス]] | ||
</noinclude> | </noinclude> | ||
2025年11月13日 (木) 16:05時点における最新版
説明
このドキュメントは /doc から参照読み込みされたものです。

フリー百科事典ウィキペディアに以下の記事があります:
This template is used to indicate that a template can be substituted. This template itself, however, should never be substituted.
{{substitute}} should be placed on the documentation subpage of any template that can be used with substitution rather than transclusion (i.e. not on the template's own page itself).
Templates that should always be substituted are automatically added to Category:Subst展開するテンプレート.
Parameters
{{{1}}}(required)- Set this to
alwaysif the template should always be substituted ornoif the template should not be substituted. Leave it blank if the template can be either substituted or transcluded.
Usage
Templates that can be substituted
Equivalent to Wikipedia's Template:May be substituted. This is the default option, indicating that a template works either way.
{{substitute}}
| ファイル:Icon-Substitute.png | このテンプレートはSubst展開してもよいです。 |
Templates that must be substituted
Equivalent to Wikipedia's Template:Always substitute.
{{substitute|always}}
| ファイル:Icon-Substitute.png | このテンプレートは常にSubst展開してください。次のように入力します。{{subst:Substitute}} |
Templates that must not be substituted
Equivalent to Wikipedia's Template:Never substitute.
{{substitute|no}}
| ファイル:Icon-Substitute.png | このテンプレートは常にSubst展開しないでください。 |