コンテンツにスキップ

「テンプレート:Documentation/end box」の版間の差分

en:Template:Documentation/end box (21:56, 30 January 2014 UTC) を参考に、デフォルトと異なる解説ページの指定が無視されるバグを修正
(Atanabe がページ「テンプレート:Documentation/end box」を「テンプレート:documentation/end box」に移動しました)
 
*>Caviler
(en:Template:Documentation/end box (21:56, 30 January 2014 UTC) を参考に、デフォルトと異なる解説ページの指定が無視されるバグを修正)
1行目: 1行目:
#転送 [[テンプレート:documentation/end box]]
<!--
  Link box below for the doc meta-data:
-->{{#if:
  <!--Check if we should show the link box-->
  {{#ifeq: {{{link box|}}} | off
  |
  | {{{doc exist|yes}}}{{
    #switch: {{SUBJECTSPACE}}
    | {{ns:User}}
    | {{ns:Module}}
    | {{ns:Template}} = yes
    }}
  }}
 
| {{fmbox
  | id = documentation-meta-data
  | image = none
  | style = background-color: #ecfcf4;
  | textstyle = font-style: italic;
  | text =
    {{#if: {{{link box|}}}
    | {{{link box}}}  <!--Use custom link box content-->
    | {{#if: {{{doc exist|yes}}}
      | <!--/doc exists, link to it-->
        この[[Help:テンプレートの説明文|解説]]は、[[{{{docpage|{{FULLPAGENAME}}/doc}}}]] <small class="plainlinks" style="font-style:normal">([{{
      fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}
      | action=edit
      }} 編集] &#124; [{{
      fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}
      | action=history
      }} 履歴])</small>から[[Help:テンプレート#テンプレートとは|呼び出されて]]います。<br />
      |<!-- /doc does not exist, ask to create one?
  -->{{#switch: {{SUBJECTSPACE}}
        | {{ns:Module}} = You might want to [{{fullurl: {{{docpage| {{FULLPAGENAME}}/doc }}} | action=edit&preload=Template:Documentation/preload-module-doc }} create] a documentation page for this [[Wikipedia:Lua|Scribunto module]]<br>
        | #default =
      }}
      }}<!--
        Add links to /sandbox and /testcases when appropriate:
  -->{{#switch: {{SUBJECTSPACE}}
      | {{ns:User}}
      | {{ns:Module}}
      | {{ns:Template}} =
        編集者は、このテンプレートを {{
        #ifexist: {{{サンドボックス| {{FULLPAGENAME}}/sandbox }}}
        | [[{{{サンドボックス| {{FULLPAGENAME}}/sandbox }}}|サンドボックス]] <small style="font-style: normal">([{{fullurl: {{{サンドボックス| {{FULLPAGENAME}}/sandbox }}} | action=edit }} 編集] <nowiki>|</nowiki> [{{fullurl:Special:ComparePages | page1={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&page2={{urlencode:{{{サンドボックス|{{FULLPAGENAME}}/sandbox}}}}}}} 差分])</small>
        | サンドボックス <small style="font-style: normal">([{{fullurl: {{{サンドボックス| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-sandbox }} 作成] <nowiki>|</nowiki> [{{fullurl: {{{サンドボックス| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&summary={{urlencode:[[{{{template page|{{FULLPAGENAME}}}}}]] のサンドボックスを作成}} }} 複製])</small>
        }} と {{
        #ifexist: {{{testcases| {{FULLPAGENAME}}/testcases }}}
        | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|テストケース]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} 編集])</small>
        | テストケース <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-{{#ifeq: {{SUBJECTSPACE}}|{{ns:Module}}|module-}}testcases&summary={{urlencode:Create testcases page for [[{{{template page|{{FULLPAGENAME}}}}}]]}} }} 作成])</small>
        }} で試すことができます。([[Wikipedia:テンプレートのサンドボックスとテストケース|解説]])<br />
      }}<!--
        Show the cats text, but not
        if "content" fed or "docname fed" since then it is
        unclear where to add the cats.
  -->{{#if: {{{content|}}} {{{docname fed|}}}
      |
      | カテゴリは [[{{{docpage|{{FULLPAGENAME}}/doc}}}|/doc]] サブページに追加してください。言語間リンクは [[Wikipedia:ウィキデータ]] を利用してください。
      }}<!--
        "サブページ"のリンクを表示する:
  -->{{#switch: {{SUBJECTSPACE}}
      | {{ns:File}} =  <!--Don't show it-->
      | {{ns:Module}} = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this module]].
      | {{ns:Template}} = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|このテンプレートのサブページ一覧]]。
      | #default = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|このページのサブページ一覧]]。
      }}
    }}{{#ifexist:{{FULLPAGENAME}}/Print
    |<br />A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at [[/Print]]. If you make a change to this template, please update the print version as well.[[Category:Templates with print versions]]
    }}
  }}
}}<!--End link box--><!--
 
  Detect and report strange usage:
-->{{#if:
 
  <!--Check if {{documentation}} is transcluded
      on a /doc or /testcases page-->
  {{#switch: {{SUBPAGENAME}}
  | doc
  | testcases = strange
  }}
  <!--More checks can be added here, just return anything
      to make the surrounding if-case trigger-->
 
| <includeonly>[[Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --></includeonly>
 
}}
匿名利用者
スポンサーリンク