Difference between revisions of "Template:Documentation"

From Minetest Wiki
Jump to navigation Jump to search
m (Added localizable parameters)
(Moved doc to template)
Line 1: Line 1:
{{#invoke:Documentation|main
+
<includeonly>{{#invoke:Documentation|main
 
|default-heading=Documentation
 
|default-heading=Documentation
 
|view-link-display=view
 
|view-link-display=view
Line 7: Line 7:
 
|create-link-display=create
 
|create-link-display=create
 
|transcluded-from-blurb=The above [[wikipedia:Wikipedia:Template documentation|documentation]] is [[wikipedia:Transclusion|transcluded]] from %s.
 
|transcluded-from-blurb=The above [[wikipedia:Wikipedia:Template documentation|documentation]] is [[wikipedia:Transclusion|transcluded]] from %s.
 +
}}</includeonly><noinclude>
 +
{{Documentation|content=
 +
{{Lua}}
 +
 +
==Usage==
 +
===Customizing display===
 +
Overrides exist to customize the output in special cases:
 +
* <nowiki>{{Documentation|heading=}}</nowiki>: 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.
 +
 +
== Disclaimer ==
 +
Template:Documentation is based on [[mw:Template:Documentation]], which is available under the [//creativecommons.org/licenses/by-sa/3.0/ Creative Commons Attribution-ShareAlike License].
 
}}
 
}}
 +
 +
[[Category:Templates]]
 +
</noinclude>

Revision as of 05:57, 10 May 2017

Documentation icon.png Documentation
Lua logo.png This template uses Module:Documentation, a script written in Lua.
Please see wikipedia:Wikipedia:Lua and mw:Extension:Scribunto to learn more.

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.

Disclaimer

Template:Documentation is based on mw:Template:Documentation, which is available under the Creative Commons Attribution-ShareAlike License.