⚠️ Warning: This is a draft ⚠️

This means it might contain formatting issues, incorrect code, conceptual problems, or other severe issues.

If you want to help to improve and eventually enable this page, please fork RosettaGit's repository and open a merge request on GitHub.

| |
{{ #if: {{{content|}}} | | {{ #if: {{{doc exist|yes}}} | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [{{purge|purge}}] | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{ #ifeq: {{SUBJECTSPACE}} | {{ns:File}} | Template:Documentation/preload-filespace | Template:Documentation/preload }} }} create]] }} }} {{#switch: {{{heading|¬}}} | ¬ =
{{#switch: {{SUBJECTSPACE}} | {{ns:Template}} = [[Image:Template-info.svg|50px|alt=]] Template documentation | {{ns:File}} = Summary | #default = Documentation }} | #default = {{{heading|}}} }}
}}<!-- Load the /doc content: Note: The line breaks between this comment and the if-case and between the if-case and the following div are necessary so "

Headings

" at the start and end of docs are interpreted. --> {{#if: {{{content|}}} | {{{content|}}} | {{#if: {{{doc exist|yes}}} | {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }} }} }}

{{#if: {{#ifeq: {{{link box|}}} | off | | {{{doc exist|yes}}}{{ #switch: {{SUBJECTSPACE}} | {{ns:User}} | {{ns:Template}} = yes }} }}

| {{fmbox | id = documentation-meta-data | image = none | style = background-color: #ecfcf4; | textstyle = font-style: italic; | text = {{#if: {{{link box|}}} | {{{link box}}} | {{#if: {{{doc exist|yes}}} | The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. ([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] | [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])

  }}<!-- 
    Add links to /sandbox and /testcases when appropriate:

-->{{#switch: {{SUBJECTSPACE}} | {{ns:User}} | {{ns:Template}} = Editors can experiment in this template's {{ #ifexist: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|sandbox]] ([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} edit]) | sandbox ([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-sandbox }} create]) }} and {{ #ifexist: {{{testcases| {{FULLPAGENAME}}/testcases }}} | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] ([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit]) | testcases ([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create]) }} pages.

  }}<!--
    Show the cats and interwiki text, but not 
    if "content" fed or "docname fed" since then it is 
    unclear where to add the cats and interwikis.

-->{{#if: {{{content|}}} {{{docname fed|}}} | | Please add categories and interwikis to the [[{{{docpage|{{FULLPAGENAME}}/doc}}}|/doc]] subpage. }}{{#switch: {{SUBJECTSPACE}} | {{ns:File}} = | {{ns:Template}} = [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this template]]. | #default = [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this page]]. }} }}{{#ifexist:{{FULLPAGENAME}}/Print |
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]] }} }} }}<!--

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

{{#switch: {{SUBPAGENAME}} | doc | testcases = strange }}

| [[Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]

}}

Copied from WP in support of Reflist

{{pp-template}}

{{template}}