Template:QudInfoboxCollapser/doc: Difference between revisions

m
add example
(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 -->