「テンプレート:TemplateData header」の版間の差分

提供:桜江古文書を現代に活かす会
ナビゲーションに移動 検索に移動
mw_>えのきだたもつ
(「Template:TemplateData header」の保護設定を変更しました: 影響が特に大きいテンプレート ([編集=拡張承認された利用者と管理者に許可] (無期限) [移動=拡張承認された利用者と管理者に許可] (無期限)))
(1版 をインポートしました)
1行目: 1行目:
<div class="templatedata-header">{{#if:{{{noheader|}}}||これは新しい[[Wikipedia:ビジュアルエディター|ビジュアルエディター]]により使用されるテンプレートのための{{#if:{{{nolink|}}}|TemplateData|[[Wikipedia:ビジュアルエディター/TemplateData|TemplateData]]}}文書です。}}
+
<noinclude>
 +
<languages/>
 +
<onlyinclude>{{#switch:<translate></translate>
 +
|=
 +
<div class="templatedata-header"><!--
 +
-->{{#if:{{yesno|{{{editlinks|}}}}}<!--
 +
-->|{{#ifexpr:<!--
 +
-->{{#if:{{{docpage|}}}<!--
 +
-->|{{#ifeq:{{FULLPAGENAME}}|{{transclude|{{{docpage}}}}}|0|1}}<!--
 +
-->|not{{IsDocSubpage|false=0}}<!--
 +
-->}}<!--
 +
-->|{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float:{{dir|{{pagelang2}}|left|right}};}}<!--
 +
-->}}<!--
 +
-->}}
 +
{{#if:{{{noheader|}}}||<translate><!--T:1--> This is the [[<tvar name=1>Special:MyLanguage/Help:TemplateData</tvar>|TemplateData]] documentation for this template used by [[<tvar name=2>Special:MyLanguage/VisualEditor</tvar>|VisualEditor]] and other tools.</translate>}}
  
 
'''{{{1|{{BASEPAGENAME}}}}}'''
 
'''{{{1|{{BASEPAGENAME}}}}}'''
</div><includeonly>{{#invoke:Check for unknown parameters|check
+
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
|unknown={{template other|1=[[Category:不明な引数を指定しているページ/Template:TemplateData header|_VALUE_]]}}
+
-->|{{#if:{{IsDocSubpage|false=}}<!--
|template=Template:TemplateData header
+
-->|[[Category:TemplateData documentation{{#translation:}}]]<!--
|1 |nolink |noheader
+
-->|[[Category:Templates using TemplateData{{#translation:}}]]<!--
|preview=<div class="error" style="font-weight:normal">[[Template:TemplateData header]]で不明な引数「_VALUE_」が使われています。</div>
+
-->}}<!--
}}<!--
+
-->}}</includeonly>
-->{{template other|{{sandbox other||[[Category:TemplateData文書]]}}}}</includeonly><noinclude>
+
| #default=
{{Documentation}}
+
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:TemplateData header|noshift=1|uselang={{#if:{{pagelang}}|{{pagelang}}|{{int:lang}}}}}}
 +
}}</onlyinclude>
 +
{{Documentation|content=
 +
 
 +
Inserts a brief header for the template data section. Adds the /doc subpage to [[:Category:TemplateData documentation{{#translation:}}]] and the template page to [[:Category:Templates using TemplateData{{#translation:}}]].
 +
 
 +
== Usage ==
 +
{{#tag:syntaxhighlight|
 +
==TemplateData== or ==Parameters== or ==Usage==
 +
{{((}}TemplateData header{{))}}
 +
{{^(}}templatedata{{)^}}{
 +
...
 +
}{{^(}}/templatedata{{)^}}
 +
|lang=html
 +
}}
 +
 
 +
Use <code><nowiki>{{TemplateData header|Template name}}</nowiki></code> to display a name for the template other than the default, which is [[Help:Magic_words#Variables|<nowiki>{{BASEPAGENAME}}</nowiki>]].
 +
<dl><dd>
 +
{{TemplateData header|Template name}}
 +
</dd></dl>
 +
 
 +
Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text.
 +
<dl><dd>
 +
{{TemplateData header|noheader=1}}
 +
</dd></dl>
 +
 
 +
==Parameters==
 +
{{TemplateData header/doc}}
 +
 
 +
}}
 
</noinclude>
 
</noinclude>

2021年11月19日 (金) 10:40時点における版

<languages/>

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData header

[[Category:Templates using TemplateData{{#translation:}}]]

テンプレートの解説

Inserts a brief header for the template data section. Adds the /doc subpage to [[:Category:TemplateData documentation{{#translation:}}]] and the template page to [[:Category:Templates using TemplateData{{#translation:}}]].

Usage

<syntaxhighlight lang="html">

TemplateData== or ==Parameters== or ==Usage

テンプレート:((TemplateData headerテンプレート:)) テンプレート:^(templatedataテンプレート:)^{ ... }テンプレート:^(/templatedataテンプレート:)^ </syntaxhighlight>

Use {{TemplateData header|Template name}} to display a name for the template other than the default, which is {{BASEPAGENAME}}.

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Template name

[[Category:Templates using TemplateData{{#translation:}}]]

Use {{TemplateData header|noheader=1}} to omit the first sentence of the header text.


TemplateData header

[[Category:Templates using TemplateData{{#translation:}}]]

Parameters

テンプレート:TemplateData header/doc