Template:INITOC: Difference between revisions

From Step Mods | Change The Game
No edit summary
mNo edit summary
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><h3>INI Parameters by Section</h3><div style="padding:12px 12px; border:{{{borderSize|1px}}} solid {{{borderColor|#555}}}; width:{{{width|65%}}}; -webkit-column-count:{{{columns|3}}}; -moz-column-count:{{{columns|3}}}; column-count:{{{columns|3}}}; -webkit-column-gap:{{{gapSize|25px}}}; -moz-column-gap:{{{gapSize|25px}}}; column-gap:{{{gapSize|25px}}}; -webkit-column-rule:{{{borderSize|0px}}} solid {{{borderColor|#555}}}; -moz-column-rule:{{{borderSize|0px}}} solid {{{borderColor|#555}}}; column-rule:{{{borderSize|0px}}} solid {{{borderColor|#555}}};">{{{text|}}}</div></includeonly><noinclude>__NOTOC__
<includeonly><div class="toc" style="column-count:{{{columns|5}}};display:inline-block;font-size:{{{fontsize|15pt}}};padding:1rem;">{{#arraymap:{{{1}}}|*|x|[[/x|[x]]]<br />|}}</div></includeonly><noinclude>__NOTOC__ [[Category:Guide Templates]][https://stepmodifications.org/forum/topic/98292-initoc/ '''Forum Topic''']
 
== Purpose & Usage ==
== Purpose & Usage ==
This template should be used in conjunction with the helper template, {{tl|INISectionLabel}}. This template provides a method for laying out a custom table of contents listing subpage links to respective INI parameters. These subpage links are, in turn, handled using {{tl|INISectionLabel}}.
This template provides a method for laying out a custom table of contents listing subpage links to respective INI parameters.


===Parameters===
===Parameters===
====Required====
====Required====
*''text'': Parameter-heading labels separated by <code><nowiki><br /></nowiki></code> or <code><nowiki><br></nowiki></code> HTML tags.
*''parameter 1'': This should be a bulleted list of all the sections.


====Optional====
====Optional====
*''borderColor'': Sets the color of the borders. Enter the hex code (excluding # prefix) Default is #555.
*''columns'': This specifies the number of columns. Default is 5.
*''width'': Sets the width of the entire block of columned content. Enter an integer in pixels. Default is 65%.
*''fontsize'': This specifies the font size. Default is 15pt.
*''columns'': Sets the number of columns to use. Enter an integer. Default is 3.
*''gapSize'': Sets the whitespace width between columns (analogous to padding). Enter an integer in pixels. Default is 25px.
*''borderSize'': Sets the border width between columns (placed in center of the gap). Enter an integer in pixels. Default is 1px.


== Examples ==
== Examples ==
{{Fc|important|'''''NOTE:''' Do NOT add line breaks within the code. Instead use HTML <code><nowiki><br /></nowiki></code> or <code><nowiki><br></nowiki></code> tags between each parameter.''}}<br />
'''Code:'''
<pre>{{INITOC|columns=5|
*:Controls
*Actor
*Animation
*Archive
*Audio
*BackgroundLoad
*bLightAttenuation
*BSPathing
*BudgetCaps
*Camera
*CameraPath
*Cart
*Clouds
*Combat
*Controls
*CopyProtectionStrings
*Debug
*Decals
*Dialogue
*Display
*FaceGen
*Fonts
*FootIK
*Gameplay
*General
*GeneralWarnings
*GethitShader
*GrabIK
*Grass
*HAVOK
*HeadTracking
*Imagespace
*Interface
*Kinect
*Landscape
*LANGUAGE
*Light
*LightingShader
*LOD
*LookIK
*MAIN
*MapMenu
*Menu
*MESSAGES
*NavMeshGeneration
*Papyrus
*Pathfinding
*Pathing
*RagdollAnim
*RagdollFeedback
*SaveGame
*ScreenSplatter
*SpeedTree
*Terrain
*TerrainManager
*TestAllCells
*Trees
*VATS
*Verlet
*Voice
*Water
*Weather}}</pre>


'''Code:''' (normal use with the helper template)
''Result:''
<pre>{{Columns|text={{INISectionLabel|ParamHead1}}<br />{{INISectionLabel|ParamHead2}}<br />{{INISectionLabel|ParamHead3}}<br />{{INISectionLabel|ParamHead4}}<br />{{INISectionLabel|ParamHead5}}<br />{{INISectionLabel|ParamHead6}}<br />{{INISectionLabel|ParamHead7}}<br />{{INISectionLabel|ParamHead8}}<br />{{INISectionLabel|ParamHead9}}<br />{{INISectionLabel|ParamHead10}}<br />{{INISectionLabel|ParamHead11}}<br />{{INISectionLabel|ParamHead12}}</pre>
{{INITOC|columns=5|
'''Result:'''
*:Controls
{{Columns|text={{INISectionLabel|ParamHead1}}<br />{{INISectionLabel|ParamHead2}}<br />{{INISectionLabel|ParamHead3}}<br />{{INISectionLabel|ParamHead4}}<br />{{INISectionLabel|ParamHead5}}<br />{{INISectionLabel|ParamHead6}}<br />{{INISectionLabel|ParamHead7}}<br />{{INISectionLabel|ParamHead8}}<br />{{INISectionLabel|ParamHead9}}<br />{{INISectionLabel|ParamHead10}}<br />{{INISectionLabel|ParamHead11}}<br />{{INISectionLabel|ParamHead12}}}}
*Actor
*Animation
*Archive
*Audio
*BackgroundLoad
*bLightAttenuation
*BSPathing
*BudgetCaps
*Camera
*CameraPath
*Cart
*Clouds
*Combat
*Controls
*CopyProtectionStrings
*Debug
*Decals
*Dialogue
*Display
*FaceGen
*Fonts
*FootIK
*Gameplay
*General
*GeneralWarnings
*GethitShader
*GrabIK
*Grass
*HAVOK
*HeadTracking
*Imagespace
*Interface
*Kinect
*Landscape
*LANGUAGE
*Light
*LightingShader
*LOD
*LookIK
*MAIN
*MapMenu
*Menu
*MESSAGES
*NavMeshGeneration
*Papyrus
*Pathfinding
*Pathing
*RagdollAnim
*RagdollFeedback
*SaveGame
*ScreenSplatter
*SpeedTree
*Terrain
*TerrainManager
*TestAllCells
*Trees
*VATS
*Verlet
*Voice
*Water
*Weather}}


'''Code:''' (
== See Also ==
<pre>{{Columns
None
|borderColor=#55aa55
|borderSize=1px
|columns=4
|width=100%
|gapSize=10px
|text={{INISectionLabel|ParamHead1}}<br />{{INISectionLabel|ParamHead2}}<br />{{INISectionLabel|ParamHead3}}<br />{{INISectionLabel|ParamHead4}}<br />{{INISectionLabel|ParamHead5}}<br />{{INISectionLabel|ParamHead6}}<br />{{INISectionLabel|ParamHead7}}<br />{{INISectionLabel|ParamHead8}}<br />{{INISectionLabel|ParamHead9}}<br />{{INISectionLabel|ParamHead10}}<br />{{INISectionLabel|ParamHead11}}<br />{{INISectionLabel|ParamHead12}}<br />{{INISectionLabel|ParamHead13}}<br />{{INISectionLabel|ParamHead14}}<br />{{INISectionLabel|ParamHead15<br /{{INISectionLabel|ParamHead16}}<br />{{INISectionLabel|ParamHead17}}<br />{{INISectionLabel|ParamHead18}}<br />{{INISectionLabel|ParamHead19}}<br />{{INISectionLabel|ParamHead20
}}</pre>
'''Result:'''
{{Columns
|borderColor=#55aa55
|borderSize=1px
|columns=4
|width=100%
|gapSize=10px
|text={{INISectionLabel|ParamHead1}}<br />{{INISectionLabel|ParamHead2}}<br />{{INISectionLabel|ParamHead3}}<br />{{INISectionLabel|ParamHead4}}<br />{{INISectionLabel|ParamHead5}}<br />{{INISectionLabel|ParamHead6}}<br />{{INISectionLabel|ParamHead7}}<br />{{INISectionLabel|ParamHead8}}<br />{{INISectionLabel|ParamHead9}}<br />{{INISectionLabel|ParamHead10}}<br />{{INISectionLabel|ParamHead11}}<br />{{INISectionLabel|ParamHead12}}<br />{{INISectionLabel|ParamHead13}}<br />{{INISectionLabel|ParamHead14}}<br />{{INISectionLabel|ParamHead15<br /{{INISectionLabel|ParamHead16}}<br />{{INISectionLabel|ParamHead17}}<br />{{INISectionLabel|ParamHead18}}<br />{{INISectionLabel|ParamHead19}}<br />{{INISectionLabel|ParamHead20}}
}}
 
'''Code:''' (can be used without helper template)
<pre>{{Columns|text=ParamHead1<br />ParamHead2<br />ParamHead3}}</pre>
'''Result:'''
{{Columns|text=ParamHead1<br />ParamHead2<br />ParamHead3}}


== See Also ==
*[[Template:INI Guide/Custom TOC]]
</noinclude>
</noinclude>

Latest revision as of 15:50, August 2, 2021

Forum Topic

Purpose & Usage

This template provides a method for laying out a custom table of contents listing subpage links to respective INI parameters.

Parameters

Required

  • parameter 1: This should be a bulleted list of all the sections.

Optional

  • columns: This specifies the number of columns. Default is 5.
  • fontsize: This specifies the font size. Default is 15pt.

Examples

Code:

{{INITOC|columns=5|
*:Controls
*Actor
*Animation
*Archive
*Audio
*BackgroundLoad
*bLightAttenuation
*BSPathing
*BudgetCaps
*Camera
*CameraPath
*Cart
*Clouds
*Combat
*Controls
*CopyProtectionStrings
*Debug
*Decals
*Dialogue
*Display
*FaceGen
*Fonts
*FootIK
*Gameplay
*General
*GeneralWarnings
*GethitShader
*GrabIK
*Grass
*HAVOK
*HeadTracking
*Imagespace
*Interface
*Kinect
*Landscape
*LANGUAGE
*Light
*LightingShader
*LOD
*LookIK
*MAIN
*MapMenu
*Menu
*MESSAGES
*NavMeshGeneration
*Papyrus
*Pathfinding
*Pathing
*RagdollAnim
*RagdollFeedback
*SaveGame
*ScreenSplatter
*SpeedTree
*Terrain
*TerrainManager
*TestAllCells
*Trees
*VATS
*Verlet
*Voice
*Water
*Weather}}

Result:

See Also

None