Template:Documentation: Difference between revisions

From TestWiki
Content deleted Content added
m + hidden comment to enable finding substituted {{documentation}} tags
m Protected Template:Documentation: Widely used template: Re-protecting template because protection is gone while importing and history-merging. ([edit=sysop] (indefinite) [move=sysop] (indefinite))
Line 1: Line 1:
<div class="template-documentation" style="margin-top:1em;">{{#if:{{{heading|defaultnotblank}}}|<div style="padding-bottom:3px; border-bottom:1px solid #aaa; margin-bottom:1ex;">
<div class="template-documentation" style="margin-top:1em; clear: both; border: 2px dotted #666666; padding: 0.6em; background-color: #f5f5f5;">{{#if:{{{heading|defaultnotblank}}}|<div style="padding-bottom:3px; border-bottom:1px solid #aaa; margin-bottom:1ex;">
<span class="editsection plainlinks" id="doc_editlinks">[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{#ifexist: {{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAME}}/doc}}} ||&preload=Template:Documentation/preload}}}} edit]]</span>
<span class="editsection plainlinks" id="doc_editlinks">[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{#ifexist: {{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAME}}/doc}}} ||&preload=Template:Documentation/preload}}}} edit]]</span>
<span style="font-size:150%">{{{heading|Documentation}}}</span></div>}}
<span style="font-size:150%">{{{heading|Documentation}}}</span></div>}}
<div id="template_doc_page_transcluded" class="dablink plainlinks">This [[w:Wikipedia:Template documentation|documentation]] is [[w:Wikipedia:Transclusion|transcluded]] from [[{{{1|{{FULLPAGENAME}}/doc}}}]]. <small>''([[{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]] | [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{#ifexist: {{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAME}}/doc}}} ||&preload=Template:Documentation/preload}}}} edit] | [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=history}} history])''</small></div>{{{{{|safesubst:}}}{{{1|{{{{{|safesubst:}}}SUBJECTPAGENAME}}/doc}}}}}<div style="clear:both;" /><!--template:documentation--></div></div>
<div id="template_doc_page_transcluded" class="dablink plainlinks">This [[w:Wikipedia:Template documentation|documentation]] is [[w:Wikipedia:Transclusion|transcluded]] from [[{{{1|{{FULLPAGENAME}}/doc}}}]]. <small>''([[{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]] | [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{#ifexist: {{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAME}}/doc}}} ||&preload=Template:Documentation/preload}}}} edit] | [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=history}} history])''</small></div>
{{{{{1|{{SUBJECTPAGENAME}}/doc}}}}}
<div style="clear:both;" /></div></div>

Revision as of 09:52, 13 August 2010

[edit]

Documentation

This is the {{Documentation}} template, used on almost every template page to contain that template's documented instructions and information.

For detailed instructions on how and when to use this template, see w:Wikipedia:Template documentation.

This template displays a green documentation box like you are seeing now and automatically loads the content from a /doc subpage. It can also load the content from other places if instructed to.

This template is intended for documenting templates and other pages that are transcluded onto other pages. It can be used in the template namespace and most other namespaces.

Use of this template allows templates to be protected where necessary, while allowing anyone to edit the documentation and categories.