Template:QudInfoboxCollapser/doc: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "{{doc/start}} Creates collapsable infobox rows for Qud infobox templates, such as Template:Character. For example, this is used for the collapsible Character Inventory sec...")
 
m (add example)
 
Line 11: Line 11:
| 2 = qud-skills
| 2 = qud-skills
| 3 = qud-skills-wrapper
| 3 = qud-skills-wrapper
| 4 = <div class="qud-skill-entry">[[Tactful]]</div><div class="qud-skill-entry">[[Gadget Inspector]]</div>
| 4 = [[Tactful]]</br>[[Gadget Inspector]]
}}</syntaxhighlight>
}}</syntaxhighlight>




Example usage:
===Example usage===
<syntaxhighlight lang="html">
<syntaxhighlight lang="html">
{{QudInfoboxCollapser |Skills|qud-skills|qud-skills-wrapper|<div class="qud-skill-entry">[[Tactful]]</div><div class="qud-skill-entry">[[Gadget Inspector]]</div>}}
{{#invoke: Infobox|infobox|image=none|style=float:left;width:350px;|rows=
{{QudInfoboxCollapser|Skills|qud-skills|qud-skills-wrapper|[[Tactful]]</br>[[Gadget Inspector]]}}
}}
</syntaxhighlight>
</syntaxhighlight>
===Output===
<br>
{{#invoke: Infobox|infobox|image=none|style=float:left;width:350px;|rows=
{{QudInfoboxCollapser|Skills|qud-skills|qud-skills-wrapper|[[Tactful]]</br>[[Gadget Inspector]]}}
}}
<div style="clear:both;"></div>


<!-- template categories/interwikis -->
<!-- template categories/interwikis -->

Latest revision as of 18:33, 24 August 2019

Template-info.png Documentation

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