ConfigPage – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Preparing for using it's own CSS class + adding another section.)
m (Text replacement - "CfgMovesFatigue" to "Arma 3: CfgMovesFatigue")
(5 intermediate revisions by 3 users not shown)
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"> __NOEDITSECTION__
|start= {{TOC|side|1||nonum}}<div class{{=}}"cfg_reference">
{{Hatnote|{{#switch:{{PAGENAME}}
{{#switch:{{PAGENAME}}
    |CfgMagazines Config Reference='''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]]}}
    |CfgMoves Config Reference='''See also''': [[CfgMagazines Config Reference]], [[CfgWeapons Config Reference]], [[CfgAmmo Config Reference]] and [[CfgVehicles Config Reference]]
|CfgMoves Config Reference={{Hatnote|'''See also''': [[CfgMagazines Config Reference]], [[CfgWeapons Config Reference]], [[CfgAmmo Config Reference]], [[Arma 3: CfgMovesFatigue]] and [[CfgVehicles Config Reference]]}}
    |CfgWeapons Config Reference='''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgAmmo Config Reference]] and [[CfgVehicles Config Reference]]
|CfgMoves Config Reference={{Hatnote|'''See also''': [[CfgMoves Config Reference]] and [[CfgVehicles Config Reference]]}}
    |CfgAmmo Config Reference='''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]] and [[CfgVehicles Config Reference]]
|CfgWeapons Config Reference={{Hatnote|'''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgAmmo Config Reference]] and [[CfgVehicles Config Reference]]}}
    |CfgVehicles Config Reference='''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]] and [[CfgAmmo Config Reference]]
|CfgAmmo Config Reference={{Hatnote|'''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]] and [[CfgVehicles 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">
}}
|end=</div></div>}}</includeonly><noinclude>
|abc= <div class{{=}}"abc">
===Usage===
|end= </div></div>}}</includeonly><noinclude>{{Doc/Template
Place {{Inline code|<nowiki>{{Cfg ref|start}}</nowiki>}} at the very top of a ''Cfg* Config Reference'' page,
|descr= This template in (all) three (mandatory) parts creates and styles a config page.
 
|param1= type
{{Inline code|<nowiki>{{Cfg ref|abc}}</nowiki>}} above the first alphabetical entry (<tt>====A====</tt>),
|descr1= (case-insensitive) can be one of:
 
** start - to be placed at the very top of a Cfg page
and {{Inline code|<nowiki>{{Cfg ref|end}}</nowiki>}} at the bottom, just above the ''Categories'' section.
** abc - to be placed '''above''' the first alphabetical entry (<tt>==== A ====</tt>)
 
** 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 11:25, 20 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