Difference between revisions of "Template:Cfg ref"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Specifically for controlling the continuity of Cfg* Config Reference pages (currently working on them))
 
 
(2 intermediate revisions by one other user 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{{=}}"command_description"> __NOEDITSECTION__
+
|start=<div style{{=}}"float:right;margin-left:1em;" class{{=}}"nonumtoc"> __TOC__ </div><div class{{=}}"cfg_reference">
 
{{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]]
     |CfgMoves Config Reference='''See also''': [[CfgMagazines 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='''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='''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='''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='''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>

Latest revision as of 11:39, 26 November 2015

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.