Template:Documentation: Difference between revisions

From The HILLSIDE
Jump to navigation Jump to search
en>Patrick~mediawikiwiki
self-rv for now, {{#rel2abs: /sandbox }} and {{#rel2abs: /testcases}} would also have to be changed
en>ConradPino
support full copy/paste with sandbox
Line 1: Line 1:
<noinclude>
<noinclude>
<!-- Need noinclude here to support future full protection. -->
<!-- Need noinclude here to support future full protection. -->
{{ #ifeq: {{SUBPAGENAME}} | sandbox | {{Template sandbox notice}} }}
{{intricate}}
{{intricate}}
{{Mergingfrom|Template doc|date=November 2007}}
{{
  #ifeq: {{FULLPAGENAME}} | Template:Documentation |
  {{Mergingfrom|Template doc|date=November 2007}}
}}
</noinclude><div class="template-documentation" style="margin-top:1em;">{{#if:{{{heading|defaultnotblank}}}|<div style="padding-bottom:3px; border-bottom:1px solid #aaa; margin-bottom:1ex;">
</noinclude><div class="template-documentation" style="margin-top:1em;">{{#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>

Revision as of 12:12, 7 November 2007


Template:Intricate Template:Mergingfrom

[edit]

Documentation

Usage

Customizing display

Overrides exist to customize the output in special cases:

  • {{documentation|heading=}}: change the text of the "documentation" heading. If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.

Rationale

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. It also reduces server resources by circumventing a technical limitation of templates (see a developer's explanation).

See also