Template:Position history/gendoc: Difference between revisions
Jump to navigation
Jump to search
(create) |
(I already did it better) |
||
Line 1: | Line 1: | ||
<includeonly>This template implements [[Template:Position history]]. | <includeonly>This template implements [[Template:Position history]]. | ||
==Parameters== | |||
{{#if:{{{nostate|}}}|| | |||
*'''state''' - (optional) determines whether the navbox will be "collapsed" or "expanded" by default (must be one of those two options if used). This template is {{#if:{{{state|}}}|{{{state}}}|expanded}} by default, so that behavior does not need to be specified. | |||
}}{{#if:{{{params|}}}| | |||
{{{params}}} | |||
}} | |||
}}{{#ifeq:{{SUBPAGENAME}}|doc||[[Category:Position history templates]]}}</includeonly><noinclude>{{documentation}}</noinclude> | }}{{#ifeq:{{SUBPAGENAME}}|doc||[[Category:Position history templates]]}}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 14:35, 16 July 2025
Documentation [edit]
This template is used to automatically generate documentation for position history templates using Template:Position history. It will also add the template page to Category:Position history templates. The documentation page still needs to use
{{documentation subpage}}
manually.
Parameters
- nostate - (optional) define this parameter if the template does not pass through the "state" parameter (i.e. pages using the template cannot change the default state).
- state - (optional) the default state of the navbox (affects the documentation, not the template). Defaults to "expanded".
- params - (optional) any additional parameters specific to this template, other than "state".
The above documentation is transcluded from Template:Position history/gendoc/doc.