Template:QudInfoboxCollapser: Difference between revisions
Jump to navigation
Jump to search
(New infobox collapser) |
mNo edit summary |
||
Line 20: | Line 20: | ||
{{{4}}} | {{{4}}} | ||
</div></div> | </div></div> | ||
|-</includeonly> | |-</includeonly><noinclude> | ||
{{doc}} | |||
<!-- Put categories/interwiki on the documentation page --> | |||
</noinclude> |
Revision as of 14:16, 24 August 2019
Documentation
[purge]
Creates collapsable infobox rows for Qud infobox templates, such as Template:Character. For example, this is used for the collapsible Character Inventory section of the Character infobox.
- parameter 1: Label
- parameter 2: CSS collapser class postfix (this should be unique for each collapsible)
- parameter 3: Custom CSS class to apply to collapsible-content div (leave blank if none)
- parameter 4: Content
{{QudInfoboxCollapseHeader
| 1 = Skills
| 2 = qud-skills
| 3 = qud-skills-wrapper
| 4 = [[Tactful]]</br>[[Gadget Inspector]]
}}
Example usage
{{#invoke: Infobox|infobox|image=none|style=float:left;width:350px;|rows=
{{QudInfoboxCollapser|Skills|qud-skills|qud-skills-wrapper|[[Tactful]]</br>[[Gadget Inspector]]}}
}}
Output
QudInfoboxCollapser
Skills
|
|
---|---|
| |
Skills
| |