Editing Template:Switch infobox/doc
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{documentation}} |
{{documentation}} |
||
'''Template:Switch infobox''' is used to display infoboxes of the same type on a single page, as opposed to [[Template:Multi infobox]], which displays infoboxes of different types on a single page. It is typically used to separate versions of the subject with different conditions (for example, an NPC's state/appearance before and after a quest) |
'''Template:Switch infobox''' is used to display infoboxes of the same type on a single page, as opposed to [[Template:Multi infobox]], which displays infoboxes of different types on a single page. It is typically used to separate versions of the subject with different conditions (for example, an NPC's state/appearance before and after a quest). |
||
After the insertion of the template, there will be different buttons stating the possible conditions of that page. When clicked on different conditions, the page will display different information. |
After the insertion of the template, there will be different buttons stating the possible conditions of that page. When clicked on different conditions, the page will display different information. |
||
Line 34: | Line 34: | ||
* <code>switch_id</code> must '''not''' contain double-quotes (") |
* <code>switch_id</code> must '''not''' contain double-quotes (") |
||
* Do '''NOT''' use the same <code>switch_id</code> for multiple items in the same switch infobox. This causes both items to be shown when clicked and duplicates the switch buttons. |
* Do '''NOT''' use the same <code>switch_id</code> for multiple items in the same switch infobox. This causes both items to be shown when clicked and duplicates the switch buttons. |
||
Note that if using switch_id's on a page containing a [[Template:Synced switch]], you will probably want to specify <code>nodefault=y</code> in the sync switch. See the documentation on [[Template:Synced switch#No default switching]] and [[Template:Synced switch#Switch IDs]] for more detail. |
|||
Example usage: |
Example usage: |
||
Line 70: | Line 72: | ||
==See also== |
==See also== |
||
* [[Template:Multi infobox]] |
* [[Template:Multi infobox]] |
||
* [[ |
* [[Template:Infobox Bonuses#Displaying multiple infoboxes]] |
||
{{TemplateData|<templatedata> |
{{TemplateData|<templatedata> |