Template:INITOC: Difference between revisions

From Step Mods | Change The Game
No edit summary
mNo edit summary
 
(55 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{title|}}}|<h3>{{{title}}}</h3>
<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''']
}}<div style="padding:0 0 0 9px; border:{{{borderSize|1px}}} solid {{{borderColor|#666}}}; width:{{{width|80%}}}; -webkit-column-count:{{{columns|5}}}; -moz-column-count:{{{columns|5}}}; column-count:{{{columns|5}}}; -webkit-column-rule:{{{borderSize|1px}}} solid {{{borderColor|#666}}}; -moz-column-rule:{{{borderSize|1px}}} solid {{{borderColor|#666}}}; column-rule:{{{borderSize|1px}}} solid {{{borderColor|#666}}};">{{{text|}}}</div></includeonly><noinclude>


== 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.


{{Columns
== Examples ==
|width=80%
'''Code:'''
|borderColor=#666
<pre>{{INITOC|columns=5|
|borderSize=0
*:Controls
|columns=2
*Actor
|text=This is my text.<br />
*Animation
This is more text. This is more text yet!
*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>


''Result:''
{{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}}


{{Columns
== See Also ==
|title=oolala
None
|text=This is my text.<br />This is more text. This is more text yet!<br />
This is some text.<br />
This<br />
This is<br />
This is some text.<br />This is my text.<br />
This is more text. This is more text yet!<br />
This is some text.<br />
This<br />
This is<br />
This is some text.<br />
}}
 


</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