Template:Documentation: Difference between revisions

From The HILLSIDE
Jump to navigation Jump to search
en>Pathoschild
remove border if no heading
en>Pathoschild
m typo
Line 1: Line 1:
<div class="template-documentation">
<div class="template-documentation">
<div style="padding-bottom:3px; {{#if:{{{heading|defaultnotblank}}}||border-bottom:1px solid #aaa;}} margin-bottom:1ex;">
<div style="padding-bottom:3px; {{#if:{{{heading|defaultnotblank}}}|border-bottom:1px solid #aaa;}} margin-bottom:1ex;">
<span class="editsection plainlinks">&#091;[[{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]]]
<span class="editsection plainlinks">&#091;[[{{{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=edit{{#ifexist: {{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAME}}/doc}}} ||&preload=Template:Documentation/preload}}}} edit]]

Revision as of 15:55, 18 October 2007

[view] [edit] [history]

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