Template:Documentation/end box: Difference between revisions

No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
<!--
   Link box below for the doc meta-data:
   Link box below for the doc meta-data:
{{#if:  
-->{{#if:  
   <!--Check if we should show the link box-->
   <!--Check if we should show the link box-->
   {{#ifeq: {{{link box|}}} | off
   {{#ifeq: {{{link box|}}} | off
Line 12: Line 12:
     }}
     }}
   }}
   }}


| {{fmbox
| {{fmbox
Line 25: Line 23:
     | {{#if: {{{doc exist|yes}}}
     | {{#if: {{{doc exist|yes}}}
       | <!--/doc exists, link to it-->
       | <!--/doc exists, link to it-->
         The above [[WikEM:Template documentation|documentation]] is [[WikEM:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br />
         The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br />
       |<!-- /doc does not exist, ask to create one?
       |<!-- /doc does not exist, ask to create one?
   -->{{#switch: {{SUBJECTSPACE}}
   -->{{#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 [[WikEM:Lua|Scribunto module]]<br>
         | {{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 =
         | #default =
           }}
           }}
Line 44: Line 42:
         #ifexist: {{{testcases| {{FULLPAGENAME}}/testcases }}}
         #ifexist: {{{testcases| {{FULLPAGENAME}}/testcases }}}
         | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small>
         | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small>
         | testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-{{#ifeq: {{SUBJECTSPACE}}|{{ns:Module}}|module-}}testcases }} create])</small>
         | testcases <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}}}}}]]}} }} create])</small>
         }} pages. <br />
         }} pages. <br />
       }}<!--
       }}<!--
Line 65: Line 63:
     }}
     }}
   }}
   }}
}} --><!--End link box--><!--
}}<!--End link box--><!--


   Detect and report strange usage:
   Detect and report strange usage:
{{#if:
-->{{#if:


   <!--Check if {{documentation}} is transcluded  
   <!--Check if {{documentation}} is transcluded  
Line 79: Line 77:
       to make the surrounding if-case trigger-->
       to make the surrounding if-case trigger-->


| <includeonly>[[Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --></includeonly>


}}
}}
-->

Latest revision as of 01:39, 8 February 2014