Changes
m
7 revisions from en:Template:Documentation: Requested by Rifleman_82 on IRC. Overwriting some templates but should be okay.
<code><!-- Automatically add {{template sandbox notice}} when on a /code><div class="templatesandbox page.-documentation" style="margin-top:1em;">{{#ififeq:{{{heading|defaultnotblank}SUBPAGENAME}}| sandbox|<div style="padding-bottomclear:3px; border-bottom:1px solid #aaa; margin-bottom:1exboth;"><span class="editsection plainlinks" id="doc_editlinks"/div>[[{{fullurl:template sandbox notice}}}}<!-- Automatically add {{pp-template}} to protected templates.-->{{1template other|{{SUBJECTPAGENAME#ifeq: {{PROTECTIONLEVEL:move}}/doc}| sysop | {{pp-template|docusage=yes}} |action=edit{{#ifexistif: {{{1PROTECTIONLEVEL:edit}} |{{SUBJECTSPACEpp-template|docusage=yes}}:{{SUBJECTPAGENAME | <!--Not protected, or only semi-move-protected--> }} }/doc}}} <!-- Start of green doc box.-->{{documentation/start box2||&preload=Template:Documentation/{{{preload|}}}} <!--Allow custom preloads-->| heading = {{{int:editheading|¬}}}]] </span!--Empty but defined means no header--><span | heading-style="font-size:150%">{{{heading-style|}}}| content = {{text{content|Documentation}}} <!--Some namespaces must have the /doc, /sandbox and /testcases in talk space-->| docspace = {{documentation/docspace}} | 1 = {{{1|}}} </span!--Other docname, if fed--> <!--The namespace is added in /divstart box2-->| template page = {{documentation/template page}} }}<!-- Start content --><div id!-- Start load the /doc content: Note: The line breaks between this comment and the next line are necessary so "=== Headings =="template_doc_page_transcluded" class="dablink plainlinks"at the start and end of docs are interpreted.-->This [[w{{#switch:Wikipedia{{#if:Template documentation|documentation]] is [[w:Wikipedia:Transclusion|transcluded]] from [[{{{1content|{{FULLPAGENAME}}/doc}|1|0}}]]. <small>''([[{{#if:{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]] 1| [0}}{{fullurl#ifexist:{{{1|{{SUBJECTPAGENAME}}/doc}|1|0}}|action=edit{{#ifexist: {{{1|{{SUBJECTSPACEdocumentation/docspace}}:{{SUBJECTPAGENAMEdocumentation/template page}}/doc|1|0}}} | 1000 | 1001 | 1010 | 1011 | 1100 |1101 |&preload1110 | 1111 =Template:Documentation/preload}{{{content|}}} | 0110 | 0111 = {{ {{{int:edit1}}} }}] | [0001 | 0011 = {{fullurl:{{documentation/docspace}}:{1|{{SUBJECTPAGENAMEdocumentation/template page}}/doc}}}| 0000 | 0100 | 0010 |action0101 =history}} history])''<!-- End load the /small></divdoc content: Note: The line breaks between this comment and the previous line are necessary so "=== Headings ===" at the start and end of docs are interpreted.-->{{documentation/end box2| preload = {{{preload|safesubst:}}} <!--Allow custom preloads-->| content = {{{1content|}}}|link box = {{{{{link box|safesubst:}}}SUBJECTPAGENAME}} <!--So "link box=off" works--> <!--Some namespaces must have the /doc, /sandbox and /testcases in talk space-->| docspace = {{documentation/docspace}} | 1 = {{{1|}}} <div style="clear:both;" /!--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 /divdoc subpage, not here! --></divnoinclude>