Template:CollapsibleTable: Difference between revisions
From Step Mods | Change The Game
(Created page with "<includeonly>{{#vardefine:id|MCM{{#sub:{{{title}}}|0|1}}{{{row}}}}}{{#vardefine:end|{{#ifeq:{{{row}}}|final|true|}}}}{{#vardefine:images|{{#if:{{{images|}}}| {{#arraymap:{{{im...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:id|MCM{{#sub:{{{title}}}|0|1}}{{{row}}}}}{{#vardefine:end|{{#ifeq:{{{row}}}|final|true|}}}}{{#vardefine:images|{{#if:{{{images|}}}| {{#arraymap:{{{images}}}|,|x|[[File:x]]|}} |}} }}{{#vardefine:text|{{#if:{{{text|}}}|< | <includeonly><!-- | ||
{{!}}+ <h3>MCM Options</h3>|}} | DEFINE VARIABLES | ||
-->{{ #vardefine: id | MCM{{ #sub: {{{title}}} | 0 | 1 }}{{{row}}} }}<!-- | |||
-->{{ #vardefine: end | {{ #ifeq: {{{row}}} | final | true | }} }}<!-- | |||
-->{{ #vardefine: images | {{ #if: {{{images|}}}| {{ #arraymap: {{{images}}} | , | x | [[File:x]] | }} | }} }}<!-- | |||
-->{{ #vardefine: text | {{ #if: {{{text | }}} | <p class=pl-4>{{{text}}}</p> }} }}<!-- | |||
INCLUDE TABLE HEADING ONLY ABOVE FIRST ROW | |||
-->{{ #ifeq: {{{row}}} | 1 | <!-- | |||
-->{{{!}} class="stepmcm" | |||
{{!}}+ <h3>MCM Options</h3> | }}<!-- | |||
INSERT ROW HEADING AND COLLAPSIBLE ROW --> | |||
|- class="stepTooltip" | | |- class="stepTooltip" | | ||
! class="mw-customtoggle-{{#var:id}} p-2" | ⟡ <span class=orangetx>{{{title}}}</span> ⟡ | ! class="mw-customtoggle-{{ #var: id }} p-2" | ⟡ <span class=orangetx>{{{title}}}</span> ⟡<span class="stepTooltipShow">Click to show/hide</span> | ||
|- | |-<!-- | ||
{{#if:{{#var:end}}|{{!}} class="mw-collapsible mw-collapsed stepmcm-content px-0 py-2" id="mw-customcollapsible-{{#var:id}}" {{!}} {{#var:text}}{{#var:images}} | IF ROW VALUE = 'final' CLOSE THE TABLE AFTER THE COLLAPSIBLE ROW --> | ||
{{!}}}|{{!}} class="mw-collapsible mw-collapsed stepmcm-content px-0 py-2" id="mw-customcollapsible-{{#var:id}}" {{!}} {{#var:text}}{{#var:images}}}}</includeonly><noinclude>__NOTOC__ | {{#if: {{ #var: end }} | {{!}} class="mw-collapsible mw-collapsed stepmcm-content px-0 py-2" id="mw-customcollapsible-{{ #var: id }}" {{!}} {{ #var: text }}{{ #var: images }} | ||
{{!}}} | <!-- | |||
ELSE DON'T CLOSE TABLE, AND ADD NEXT ROW | |||
-->{{!}} class="mw-collapsible mw-collapsed stepmcm-content px-0 py-2" id="mw-customcollapsible-{{ #var: id }}" {{!}} {{ #var: text }}{{ #var: images }} }}</includeonly><noinclude>__NOTOC__ | |||
== Purpose & Usage == | == Purpose & Usage == |
Revision as of 17:41, April 4, 2023
Purpose & Usage
Provides a preformatted collapsible table for instructions on suggested configuration of MCM menus.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Row | row | The row number of the MCM. If this is the final row, use "final" instead of the number.
| String | required |
Title | title | Title of the MCM Menu
| String | required |
Text | text | Text to appear before the images. | String | suggested |
Images | images | Comma delimited list of image(s).
| String | suggested |
Examples
Code:
{{MCMOptions |row=1 |title=CCCLeaner |text=All three settings should be off. |images=CCCleaner.jpg}} {{MCMOptions |row=2 |title=Configurable Hotkeys |text=Setting the hotkey for the Wait Menu allows waiting anywhere. It is also useful to set separate hotkeys for the grenade and melee attacks. |images=Configurable Hotkeys - Gameplay.jpg,Configurable Hotkeys - Utility.jpg}} {{MCMOptions |row=3 |title=Crafting Highlight Fix |images=Crafting Highlight Fix.jpg}} {{MCMOptions |row=4 |title=DLC Timing |text=Increasing minimum levels for DLCs effectively disables them until you reach that level. |images=DLC Timing - Automatron.jpg,DLC Timing - Far Harbor.jpg,DLC Timing - Nuka World.jpg,DLC Timing - Vault-Tec Workshop.jpg}} {{MCMOptions |row=5 |title=FIS - FallUI Item Sorter |text=<ul><li>Turn on '''Enable auto tagging feature'''</li> <li>Optionally configure apparel subcategories to not have so many submenus</li> <li>Enable container category tabs</li></ul> |images=FIS - FallUI Item Sorter.jpg,FIS - FallUI Item Sorter - Pipboy subcategories 4.jpg,FIS - FallUI Item Sorter - Pipboy subcategories 3.jpg,FIS - FallUI Item Sorter - Pipboy subcategories 2.jpg,FIS - FallUI Item Sorter - Pipboy subcategories.jpg,FIS - FallUI Item Sorter - Container categories.jpg}} {{MCMOptions |row=final |title=MCM Categorizer |text=MCM menus can be categorized with this MCM menu. Here is an example: :'''Visible Companion Affinity''' :'''Fixes''' :*CCleaner :*Crafting Highlight Fix :*Faster Workshop :*Sun Alignment Tweaks :*Terrain Undersides :*MCM Booster :'''HUD''' :*Immersive HUD :*MCM Categorizer :*Photo Mode :*QuickTrade :*XDI :*MCM Settings :'''FallUI''' :*FallUI - Inventory :*FallUI - Confirm Boxes :*FallUI - HUD :*FallUI - Icon Library :*FallUI - Map :*FallUI - Sleep And Wait :*FallUI - Workbench :'''QOL''' :*Configurable Hotkeys :*FIS - FallUI Item Sorter :*Hotkey Manager :'''Gameplay''' :*DLC Timing :*ECO :*Immersive Animation Framework :*LIF :'''Workshop''' :*Workshop Framework :*Workshop Rearranged}}
Result: Template:MCMOptions Template:MCMOptions Template:MCMOptions Template:MCMOptions Template:MCMOptions Template:MCMOptions
See Also