Template:Switchable: Difference between revisions
Jump to navigation
Jump to search
m (Genius.) |
No edit summary |
||
Line 58: | Line 58: | ||
[[Category:Utility templates]] | [[Category:Utility templates]] | ||
</noinclude> |
Revision as of 11:53, January 30, 2015
{{{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
{{switchable | t1= | c1= | t2= | c2= | t3= | c3= | t4= | c4= | t5= | c5= }}
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 |