Difference between revisions of "Template:Documentation"

From FIThydrowiki
Jump to navigation Jump to search
imported>Malyctenar
(I'm pretty sure people know that clicking on the blue pagename link thingy makes them see it; also no need to test SUBPAGENAME within noinclude of a single template)
 
m (1 revision imported)
 
(151 intermediate revisions by 18 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{pp-semi-template|small=yes}}
+
<languages/>
{{intricate}}
+
</noinclude><includeonly>{{#switch:<translate></translate>
<!-- Moved to: Template:Documentation, template
+
| =
    {{Mergingfrom|Template doc|date=November 2007}}
+
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}
    [[User:ConradPino]] 21:45, 9 November 2007 (UTC)
+
| #default=
  -->
+
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Documentation|noshift=1}}
</noinclude><div class="template-documentation">{{
+
}}</includeonly><noinclude>
  #if: {{{heading|Documentation}}}
+
{{documentation|content=
  |<!-- has heading --><div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">{{
+
 
    #ifexist: {{{1|{{Documentation/docname}}}}}
+
{{Lua|Module:Documentation}}
    |<!-- /doc exists -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} view]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
+
<translate>
    |<!-- no /doc -->{{
+
==Usage== <!--T:2-->
      #if: {{{content|}}}
+
 
      |
+
===Customizing display=== <!--T:3-->
      |<!-- only if no content, then -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload={{{preload-doc|Template:Documentation/preload}}}}} edit]]
+
 
    }}<!-- endif content, follows endifexist /doc  -->
+
<!--T:4-->
  }}</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div>
+
Overrides exist to customize the output in special cases:
<!-- follows endif heading: if empty, all of the above is skipped -->
+
</translate>
}}<div id="template_doc_page_transcluded" class="dablink plainlinks">{{
+
* <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - <translate><!--T:5--> change the text of the "documentation" heading.</translate> <translate><!--T:10--> If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.</translate>
  #ifeq: {{{transcluded|show}}} | show
+
 
  |<!-- transcluded show -->{{
+
<translate>
    #ifexist: {{{1|{{Documentation/docname}}}}}
+
==Rationale== <!--T:6-->
    |<!-- /doc exists -->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} history])</small><br />
+
 
  }}<!-- endifexist /doc;
+
<!--T:7-->
            follows
+
This template allows any page to use any documentation page, and makes it possible to protect templates while allowing anyone to edit the template's documentation, categories, and interwiki links.</translate>
  endif transcluded = show : if hide, this was skipped -->
+
<translate>
}}{{
+
<!--T:8-->
  #switch: {{SUBPAGENAME}}
+
It also reduces server resources by circumventing a [[w:Wikipedia:Template limits|technical limitation of templates]] (see a [[<tvar|1>:en:Special:Diff/69888944</>|developer's explanation]]).
  |sandbox=<!-- sandbox -->
+
 
  |testcases=<!-- testcases -->
+
==See also== <!--T:9-->
  |#default={{
+
</translate>
    #switch: {{SUBJECTSPACE}}/{{{sandbox-testcases|show}}}
+
* {{tiw|documentation subpage}}
    |{{ns:template}}/show
+
* {{tim|Documentation}}
    | {{ns:user}}/show =<!-- show experiment subpages -->This template has {{
+
* <translate><!--T:11--> [[w:Wikipedia:Template documentation]]</translate>
      #ifexist: {{ #rel2abs: /sandbox }}
+
 
      |<!-- /sandbox -->a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit])</small> {{
+
}}
        #ifexist: {{ #rel2abs: /testcases }}
+
[[Category:Formatting templates{{#translation:}}|Template documentation]]
        | and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>
+
[[Category:Template documentation{{#translation:}}| ]]
        | but '''no''' [{{fullurl:{{ #rel2abs: /testcases }}|action=edit&preload={{{preload-testcases|Template:Documentation/preload/testcases}}}}} testcases]
+
</noinclude><includeonly>{{#if:{{{content|}}}|
      }}
+
[[Category:Template documentation pages{{#translation:}}]]
      |<!-- no /sandbox -->'''no''' [{{fullurl:{{ #rel2abs: /sandbox }}|action=edit&preload={{{preload-sandbox|Template:Documentation/preload/sandbox}}}}} sandbox] {{
+
}}</includeonly>
        #ifexist: {{ #rel2abs: /testcases }}
 
        |<!-- no /sandbox AND /testcases -->but has [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>
 
        |<!-- no /sandbox AND no /testcases -->and '''no''' [{{fullurl:{{ #rel2abs: /testcases }}|action=edit&preload={{{preload-testcases|Template:Documentation/preload/testcases}}}}} testcases]
 
        }}
 
    }} for editors to experiment.
 
    |<!-- hide experiment subpages: follow both endcases-->
 
  }}
 
}}</div>
 
{{{content|{{ {{ #ifexist: {{{1|{{Documentation/docname}}}}} | {{{1|{{Documentation/docname}}}}} | ns:0 }} }}}}}
 
</div>
 

Latest revision as of 11:06, 6 July 2020

<languages/>

Lua error in package.lua at line 80: module 'Module:Arguments' not found.[[Category:Template documentation pages{{#translation:}}]][[Category:Template documentation pages{{#translation:}}]] [[Category:Formatting templates{{#translation:}}|Template documentation]] [[Category:Template documentation{{#translation:}}| ]]