Template:Documentation: Difference between revisions
Jump to navigation
Jump to search
en>Shirayuki make documentation translatable |
en>Shirayuki Marked this version for translation |
||
| Line 11: | Line 11: | ||
{{Lua|Module:Documentation}} | {{Lua|Module:Documentation}} | ||
<translate> | <translate> | ||
==Usage== | ==Usage== <!--T:2--> | ||
===Customizing display=== | ===Customizing display=== <!--T:3--> | ||
<!--T:4--> | |||
Overrides exist to customize the output in special cases: | Overrides exist to customize the output in special cases: | ||
</translate> | </translate> | ||
* <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - <translate>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.</translate> | * <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - <translate><!--T:5--> 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.</translate> | ||
<translate> | <translate> | ||
==Rationale== | ==Rationale== <!--T:6--> | ||
<!--T:7--> | |||
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.</translate> | 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.</translate> | ||
<translate> | <translate> | ||
<!--T:8--> | |||
It also reduces server resources by circumventing a [[w:Wikipedia:Template limits|technical limitation of templates]] (see a [<tvar|url>{{fullurl:en:Project:Village pump (technical)|diff=prev&oldid=69888944}}</> developer's explanation]). | It also reduces server resources by circumventing a [[w:Wikipedia:Template limits|technical limitation of templates]] (see a [<tvar|url>{{fullurl:en:Project:Village pump (technical)|diff=prev&oldid=69888944}}</> developer's explanation]). | ||
==See also== | ==See also== <!--T:9--> | ||
</translate> | </translate> | ||
* {{tiw|documentation subpage}} | * {{tiw|documentation subpage}} | ||
Revision as of 12:53, 14 July 2019
<templatestyles src="Module:Documentation/styles.css"></templatestyles>
Template documentation
| Uses Lua: |
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