Difference between revisions of "Template:Documentation"

From W9CR
Jump to navigation Jump to search
(Created page with "{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noi...")
 
(use titleparts to transclude Template:Foo/doc instead of Template:Foo/sandbox/doc when called from Template:Foo/sandbox)
Line 1: Line 1:
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude>
+
<onlyinclude>{{Autotranslate/clone_5
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
+
|base    = Documentation
 +
|lang    = {{{lang|{{int:Lang}} }}}
 +
|1      = {{#if:{{{1|}}}
 +
            |{{{1}}}
 +
            |{{#if:{{#titleparts:{{SUBJECTPAGENAME}}|-1}}
 +
            |{{#titleparts:{{SUBJECTPAGENAME}}|-1}}/doc
 +
            |{{SUBJECTPAGENAME}}/doc
 +
            }}
 +
            }}
 +
|2      = {{{heading|{{{2|}}} }}}
 +
|content = {{{content|}}}
 +
}}</onlyinclude><noinclude>
 +
<!-- {{Autotranslate/clone_5}} is identical to {{Autotranslate}} and it is used to avoid "Warning: This page calls Template:Autotranslate which causes a template loop (an infinite recursive call). "-->
 +
 
 +
{{Documentation}}
 +
 
 
</noinclude>
 
</noinclude>

Revision as of 12:01, 25 August 2021