Template:Position history/gendoc: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 3: Line 3:
==Parameters==
==Parameters==
{{#if:{{{nostate|}}}||
{{#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.
*'''state''' - (optional) determines whether the list will be "expanded" or "collapsed" 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|}}}|
}}{{#if:{{{params|}}}|
{{{params}}}
{{{params}}}
}}{{#ifeq:{{SUBPAGENAME}}|doc||[[Category:Position history templates]]}}</includeonly><noinclude>{{documentation}}</noinclude>
}}{{#ifeq:{{SUBPAGENAME}}|doc||[[Category:Position history templates]]}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 14:50, 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.