Template:Documentation: Difference between revisions

From The HILLSIDE
Jump to navigation Jump to search
en>ConradPino
merging: copy from sandbox
en>ConradPino
merging: copy from sandbox; add heading line view link
Line 9: Line 9:
</noinclude><div class="template-documentation">{{
</noinclude><div class="template-documentation">{{
   #if: {{{heading|Documentation}}}
   #if: {{{heading|Documentation}}}
   |<div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{
   |<div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">{{
    #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
    |[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}}} view]]&nbsp;|
    }}[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit{{
     #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
     #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
     ||&preload=Template:Documentation/preload}}}} edit]]</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div>}}{{
     ||&preload=Template:Documentation/preload}}}} edit]]</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div>}}{{

Revision as of 15:38, 9 November 2007


Template:Intricate Template:Mergingfrom

[view] [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