ConfigPage – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Fix Hatnote 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=<div style{{=}}"float:right;margin-left:1em;" class{{=}}"nonumtoc"> __TOC__ </div><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]], [[CfgMovesFatigue]] and [[CfgVehicles Config Reference]]
|CfgMoves Config Reference={{Hatnote|'''See also''': [[CfgMagazines Config Reference]], [[CfgWeapons Config Reference]], [[CfgAmmo Config Reference]], [[CfgMovesFatigue]] and [[CfgVehicles Config Reference]]}}
    |CfgMoves Config Reference='''See also''': [[CfgMoves Config Reference]] and [[CfgVehicles Config Reference]]
|CfgMoves Config Reference={{Hatnote|'''See also''': [[CfgMoves Config Reference]] and [[CfgVehicles Config Reference]]}}
    |CfgWeapons Config Reference='''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgAmmo 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]]}}
    |CfgAmmo Config Reference='''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]] and [[CfgVehicles Config Reference]]
|CfgAmmo Config Reference={{Hatnote|'''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]] and [[CfgVehicles Config Reference]]}}
    |CfgVehicles Config Reference='''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>
===Usage===
=== Usage ===
Place {{Inline code|<nowiki>{{Cfg ref|start}}</nowiki>}} at the very top of a ''Cfg* Config Reference'' page,
Place {{Inline code|<nowiki>{{Cfg ref|start}}</nowiki>}} at the very top of a ''Cfg* Config Reference'' page,


{{Inline code|<nowiki>{{Cfg ref|abc}}</nowiki>}} above the first alphabetical entry (<tt>====A====</tt>),
{{Inline code|<nowiki>{{Cfg ref|abc}}</nowiki>}} above the first alphabetical entry (<tt>==== A ====</tt>),


and {{Inline code|<nowiki>{{Cfg ref|end}}</nowiki>}} at the bottom, just above the ''Categories'' section.
and {{Inline code|<nowiki>{{Cfg ref|end}}</nowiki>}} at the bottom, just above the ''Categories'' section.

Revision as of 20:55, 15 December 2020

Usage

Place {{Cfg ref|start}} at the very top of a Cfg* Config Reference page,

{{Cfg ref|abc}} above the first alphabetical entry (==== A ====),

and {{Cfg ref|end}} at the bottom, just above the Categories section.

This acts to dump all the required parts to form the page in a continuous fashion.