ConfigPage – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix Hatnote usage)
m (Add Template:Doc/Template usage)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1}}}}}
<includeonly>{{#switch:{{lc:{{{1}}}}}
|start=<div style{{=}}"float:right;margin-left:1em;" class{{=}}"nonumtoc"> __TOC__ </div><div class{{=}}"cfg_reference">
|start= {{TOC|side|1||nonum}}<div class{{=}}"cfg_reference">
{{#switch:{{PAGENAME}}
{{#switch:{{PAGENAME}}
|CfgMagazines Config Reference={{Hatnote|'''See also''': [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]], [[CfgAmmo Config Reference]] and [[CfgVehicles Config Reference]]}}
|CfgMagazines Config Reference={{Hatnote|'''See also''': [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]], [[CfgAmmo Config Reference]] and [[CfgVehicles Config Reference]]}}
Line 9: Line 9:
|CfgVehicles Config Reference={{Hatnote|'''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]] and [[CfgAmmo Config Reference]]}}
|CfgVehicles Config Reference={{Hatnote|'''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]] and [[CfgAmmo Config Reference]]}}
}}
}}
|abc=<div class{{=}}"abc">
|abc= <div class{{=}}"abc">
|end=</div></div>}}</includeonly><noinclude>
|end= </div></div>}}</includeonly><noinclude>{{Doc/Template
=== Usage ===
|descr= This template in (all) three (mandatory) parts creates and styles a config page.
Place {{Inline code|<nowiki>{{Cfg ref|start}}</nowiki>}} at the very top of a ''Cfg* Config Reference'' page,
|param1= type
 
|descr1= (case-insensitive) can be one of:
{{Inline code|<nowiki>{{Cfg ref|abc}}</nowiki>}} above the first alphabetical entry (<tt>==== A ====</tt>),
** start - to be placed at the very top of a Cfg page
 
** abc - to be placed '''above''' the first alphabetical entry (<tt>==== A ====</tt>)
and {{Inline code|<nowiki>{{Cfg ref|end}}</nowiki>}} at the bottom, just above the ''Categories'' section.
** end - to be placed at the bottom of the page, just above categories
 
}}
This acts to dump all the required parts to form the page in a continuous fashion.
</noinclude>
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Revision as of 00:21, 8 February 2021

This template in (all) three (mandatory) parts creates and styles a config page.

This template is used on these pages.

Usage

{{ConfigPage|type}}

  • type: (case-insensitive) can be one of:
    • start - to be placed at the very top of a Cfg page
    • abc - to be placed above the first alphabetical entry (==== A ====)
    • end - to be placed at the bottom of the page, just above categories