Template:Documentation: Difference between revisions
Jump to navigation
Jump to search
en>Pathoschild + preload on [edit] link when documentation page doesn't exist (idea taken from {{template doc inline}} where it was added by user:AzaToth, added conditional) |
en>Pathoschild bugfix (limitation with "|" character breaking table; switched to <div> with CSS to fix display with floats) |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><div style="width:100%; padding:5px; background:#ECFCF4; border:1px solid #AAA; clear:both;" class="plainlinks template-documentation"><div style="border-bottom:1px solid #AAA; margin-bottom:0.5em;"><span class="editsection"><nowiki>[</nowiki>[[{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]]] [[{{fullurl:{{{1|{{SUBJECTPAGENAMEE}}/doc}}}|action=edit{{#ifexist:{{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAMEE}}/doc}}}||&preload={{SUBJECTSPACE}}:Documentation/preload}}}} edit]]</span><big>'''{{SUBJECTSPACE}} documentation'''</big></div>{{{{{1|{{SUBJECTPAGENAME}}/doc}}}}}<br style="clear:both;" /></div></includeonly><noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> | ||
Revision as of 16:58, 3 October 2007
| Uses Lua: |
| This template is used in system messages. Changes to it can cause immediate changes to the MediaWiki user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes on the talk page before implementing them. |
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).