「Transwiki:Documentation」の版間の差分

削除された内容 追加された内容
編集の要約なし
サブページ名などの改変が酷いので。178.239.50.146 (会話) による ID:46120747 の版を取り消し
1 行
{{#ifeq: {{SUBPAGENAME}} | sandbox
<!--
| <div Automatically addstyle="clear: both;"></div>{{template sandbox notice}} when on a /sandbox page.
| <div class="template-documentation" style="clear:both; margin:1em 0 1em 0; border:1px solid #aaa; background-color:#ecfcf4; padding:1em;"><!--styleパラメータは、本来はスタイルシートに記述するべき? …スタイルシートをどこから見つけたのか忘れてしまった。-->
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
{{
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}}
#if: {{{heading|解説}}}
}}<!--
|<!-- headingがキャンセルされていない場合。
Automatically add {{pp-template}} to protected templates.
headingが指定されていなければ、デフォルトの「解説」になる。
-->{{template other
{{Documentation|heading=}}のように設定することでキャンセルできる。
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
--><div style="padding-bottom:{{{heading-padding|3px}}}; border-bottom:1px solid #aaa; margin-bottom:{{{heading-margin|1ex}}}"><span id="doc_editlinks" class="editsection plainlinks">{{
| {{pp-template|docusage=yes}}
#ifexist:{{{ 1 | {{Documentation/docname}} }}}
| {{#if: {{PROTECTIONLEVEL:edit}}
|<!-- /doc がある
| {{pp-template|docusage=yes}}
-->[[{{
| <!--Not protected, or only semi-move-protected-->
fullurl:{{{ 1 | {{Documentation/docname}} }}}
}}
| action=edit
}} 編集]] [{{purge|キャッシュ破棄}}]
|<!-- /doc がない
-->{{
#if:{{{content|}}}
|<!-- contentあり: 動作なし -->
|<!-- contentなし
-->[[{{
fullurl:{{{ 1 | {{Documentation/docname}} }}}
| action=edit&preload={{urlencode:{{{preload|Template:Documentation/preload}}}}}
}} 作成]]
}}<!-- #if:{{{content|}}} 閉じる -->
}}<!-- #ifexist:{{{ 1 | {{Documentation/docname}} }}} 閉じる
--></span><span style="{{{heading-style|font-size:150%}}}">{{#switch: {{SUBJECTSPACE}}
| {{ns:Template}} = [[ファイル:Template-info.svg|50px|alt=]] テンプレートの解説
| {{ns:File}} = 要約
| #default = 解説
}}</span></div><!-- ここまでheadingがキャンセルされていない場合 -->
|<!-- headingがキャンセルされた場合: 動作なし -->
}}<!-- #if:{{{heading|解説}}} を閉じる
--><!-- 呼び出し先とサンドボックス・テストケースの誘導に使われるdivセクション。本来はスタイルシートに記述するべき?-->
<div id="template_doc_page_transcluded" style="clear:both; border:none; background-color:#ecfcf4; margin:0 0 0 2em; font-style:italic; font-size:85%" ><!--
呼び出し元処理の開始
-->{{
#ifeq:{{{transcluded|show}}} | show
|<!-- 呼び出し先を表示 -->{{
#ifexist:{{{ 1 | {{Documentation/docname}} }}}
|<!-- /doc がある場合
-->この[[Help:テンプレートの説明文|解説]]は、[[{{{ 1 | {{Documentation/docname}} }}}]]<small class="plainlinks" style="font-style:normal">([{{
fullurl:{{{ 1 | {{Documentation/docname}} }}}
| action=edit
}} 編集] &#124; [{{
fullurl:{{{ 1 | {{Documentation/docname}} }}}
| action=history
}} 履歴])</small>から[[Help:テンプレート#テンプレートとは|呼び出されて]]います。<br />
|<!-- /doc がない場合:動作なし -->
}}
|<!-- 呼び出し先を表示しない:動作なし -->
}}<!--
}}<!-- #ifeq:{{{transcluded|show}}} | show を閉じる。
Start of green doc box.
--><!--
-->{{documentation/start box2
サンドボックス・テストケース処理の開始
| preload = {{{preload|}}} <!--Allow custom preloads-->
-->{{
| heading = {{{heading|¬}}} <!--Empty but defined means no header-->
#switch:{{SUBPAGENAME}}
| heading-style = {{{heading-style|}}}
|sandbox=<!-- sandbox -->
| content = {{{content|}}}
|testcases=<!-- testcases -->
|#default={{
#switch:{{SUBJECTSPACE}}/{{{sandbox-testcases|show}}}
| {{ns:template}}/show
| {{ns:user}}/show = <!-- show /sandbox /testcases -->{{
#ifexist:{{ #rel2abs: /sandbox }}
| {{
#ifexist:{{ #rel2abs: /testcases }}
| <!-- /sandbox も /testcases も存在する
-->このテンプレートには、[[/sandbox|サンドボックス]]<small class="plainlinks" style="font-style:normal">([{{
fullurl:{{ #rel2abs: /sandbox }}
| action=edit
}} 編集] {{!}} [{{fullurl:Special:ComparePages | page1={{urlencode:{{FULLPAGENAME}}}}&page2={{urlencode:{{FULLPAGENAME}}/sandbox}}}} 差分])</small>と[[/testcases|テストケース]]<small class="plainlinks" style="font-style:normal">([{{
fullurl:{{ #rel2abs: /testcases }}
| action=edit
}} 編集])</small>があります。
| <!-- /sandbox は存在するが、 /testcases が存在しない
-->このテンプレートには、[[/sandbox|サンドボックス]]<small class="plainlinks" style="font-style:normal">([{{
fullurl:{{ #rel2abs: /sandbox }}
| action=edit
}} 編集] {{!}} [{{fullurl:Special:ComparePages | page1={{urlencode:{{FULLPAGENAME}}}}&page2={{urlencode:{{FULLPAGENAME}}/sandbox}}}} 差分])</small>がありますが、[[/testcases|テストケース]]はありません。
}}<!-- #ifexist: {{ #rel2abs: /testcases }} を閉じる -->
| {{
#ifexist:{{ #rel2abs: /testcases }}
| <!-- /sandbox は存在しないが /testcases が存在する
-->このテンプレートには、[[/testcases|テストケース]]<small class="plainlinks" style="font-style:normal">([{{
fullurl: {{ #rel2abs: /testcases }}
| action=edit
}} 編集])</small>がありますが、[[/sandbox|サンドボックス]]はありません。
| <!-- /sandbox も /testcases も存在しない
-->このテンプレートには、[[/sandbox|サンドボックス]]も[[/testcases|テストケース]]もありません。
}}<!-- #ifexist:{{ #rel2abs: /testcases }} を閉じる -->
}}<!-- #ifexist:{{ #rel2abs: /sandbox }} を閉じる -->([[Wikipedia:テンプレートのサンドボックスとテストケース|解説]])<br />
}}<!-- #switch:{{SUBJECTSPACE}}/{{{sandbox-testcases|show}}} を閉じる-->
 
}}<!-- #switch:{{SUBPAGENAME}} を閉じる --><!--
<!--Some namespaces must have the /doc, /sandbox and /testcases
呼び出し先とサンドボックス・テストケースの誘導に使われるdivセクションを閉じる。
in talk space-->
--></div><!--
| docspace = {{documentation/docspace}}
-->{{#if:{{{content|}}} |
 
{{{content}}}
| 1 = {{{1|}}} <!--Other docname, if fed-->
 
<!--The namespace is added in /start box2-->
| template page = {{documentation/template page}}
 
}}<!-- Start content --><!--
Start load the /doc content:
Note: The line breaks between this comment and the next line are necessary
so "=== Headings ===" at the start and end of docs are interpreted.
-->
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}}
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110
| 1111 = {{{content|}}}
| 0110 | 0111 = {{ {{{1}}} }}
| 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }}
| 0000 | 0100 | 0010 | 0101 =
}}
{{
<!--
{{ #ifexist:{{{ 1 | {{Documentation/docname}} }}}
End load the /doc content:
| {{{ 1 | {{Documentation/docname}} }}}
Note: The line breaks between this comment and the previous line are necessary
| ns:0
so "=== Headings ===" at the start and end of docs are interpreted.
}}
-->{{documentation/end box2
}}<div style="clear:both" /></div>
| preload = {{{preload|}}} <!--Allow custom preloads-->
}}<!-- #ifeq: {{SUBPAGENAME}} | sandbox を閉じる -->
| content = {{{content|}}}
| link box = {{{link box|}}} <!--So "link box=off" works-->
 
<!--Some namespaces must have the /doc, /sandbox and /testcases
in talk space-->
| docspace = {{documentation/docspace}}
 
| 1 = {{{1|}}} <!--Other docname, if fed-->
 
<!--The namespace is added in /end box2-->
| template page = {{documentation/template page}}
 
}}<!--
End of green doc box
--><noinclude>
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>