Template:Position history/gendoc: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
(I already did it better)
No edit summary
Line 6: Line 6:
}}{{#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>

Revision as of 14:43, 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.