Template:Switchable

From Pikipedia, the Pikmin wiki
Revision as of 12:42, January 30, 2015 by Espyo (talk | contribs) (Created page with "<div class="switchable"> <div class="switch" title="{{{t1}}}"> {{{c1}}} </div> <div class="switch" title="{{{t2}}}" style="display: none;"> {{{c2}}} </div> {{#if:{{{c3|}}}|<di...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{c1}}}

Info

This template makes it easy to have content that can be switched by user-clicked buttons. Only the first "box" is shown, and all others are hidden, until they are clicked on.

Parameters

Parameter Mandatory Default Purpose Detailed description
t1 Yes Title 1 Title of the first "box" of content.
c1 Yes Content 1 Content of the first "box".
t2 Yes Title 2 Title of the second "box" of content.
c2 Yes Content 2 Content of the second "box".
t3 - t5 No Title 3 to 5 Title of the third to fifth "boxes" of content.
c3 - c5 No Content 3 to 5 Content of the third to fifth "boxes".

Skeleton

Examples

Code Result
{{switchable|t1=Red|c1=Red Pikmin|t2=Yellow|c2=Yellow Pikmin}}

Red Pikmin

{{switchable|t1=Red|c1=Red Onion|t2=Yellow|c2=Yellow Onion|t3=Blue|c3=Blue Onion}}

Red Onion