Template:Documentation

From OtherX
Revision as of 12:12, 25 December 2023 by OtherXAdmin (talk | contribs) (Created page with "<includeonly>{{#invoke:Documentation|doc}}__NOEDITSECTION__</includeonly><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Documentation/doc. [edit] [history] [purge]
Template:Documentation invokes function doc in Module:Documentation using Lua.
{{#ifeq:Template|Module|
{{#replace:Template:Documentation|/doc}} is invoked by Template:Documentation.{{#ifeq:{{{category}}}|no||{{#ifeq:Documentation|doc||}}}}
|
{{#replace:Template:Documentation|/doc}} invokes Module:Documentation using Lua.{{#ifeq:{{{category}}}|no||{{#ifeq:Documentation|doc||}}}}
}}

{{Documentation}} is transcluded in template/module documentation pages. This template should only be used on subpages titled "doc".

This is not the template of the same name from Wikipedia and it is not used in the same way.

Usage

Place {{documentation}} at the top of the documentation page, then transclude {{/doc}} directly from the main template page, within <noinclude> tags.

If the page to be documented is a subpage, use {{documentation|pagename of page to be documented}} at the top of the documentation page. For example, Template:Foo/bar's documentation page would use {{documentation|Template:Foo/bar}}.

Note

This template links to a /doc that may appear useless, however, it exists in order to link navboxes and userboxes to their base template's documentation.