ConfigPage – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Specifically for controlling the continuity of Cfg* Config Reference pages (currently working on them))
 
(Preparing for using it's own CSS class + adding another section.)
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{{=}}"command_description"> __NOEDITSECTION__
|start=<div style{{=}}"float:right;margin-left:1em;" class{{=}}"nonumtoc"> __TOC__ </div><div class{{=}}"cfg_reference"> __NOEDITSECTION__
{{Hatnote|{{#switch:{{PAGENAME}}
{{Hatnote|{{#switch:{{PAGENAME}}
     |CfgMagazines Config Reference='''See also''': [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]], [[CfgAmmo Config Reference]] and [[CfgVehicles Config Reference]]
     |CfgMagazines Config Reference='''See also''': [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]], [[CfgAmmo Config Reference]] and [[CfgVehicles Config Reference]]
Line 8: Line 8:
     |CfgVehicles Config Reference='''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]] and [[CfgAmmo Config Reference]]
     |CfgVehicles Config Reference='''See also''': [[CfgMagazines Config Reference]], [[CfgMoves Config Reference]], [[CfgWeapons Config Reference]] and [[CfgAmmo Config Reference]]
}}}}
}}}}
|end=</div>}}</includeonly><noinclude>
|abc=<div class{{=}}"abc">
|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, and {{Inline code|<nowiki>{{Cfg ref|end}}</nowiki>}} at the bottom, just above the ''Categories'' section.
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>),
 
and {{Inline code|<nowiki>{{Cfg ref|end}}</nowiki>}} at the bottom, just above the ''Categories'' section.


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


[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Revision as of 20:50, 3 May 2014

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.