Template:Switch infobox

From [N8]
Revision as of 22:34, 22 February 2021 by Banri (talk | contribs) (Created page with "<includeonly>{{#invoke:Switch infobox|main}}</includeonly><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Switch infobox/doc. [edit] [purge]
Template:Switch infobox invokes function main in Module:Switch infobox using Lua.

This template is used to separate different information on a specific page with different condition (For example, before and after a mission).

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.

Usage

{{Switch infobox
| text1  = Name of condition 1
| item1  = Type information here which is shown in condition 1
| text2  = Name of condition 2
| item2  = Type information here which is shown in condition 2
| text3  = Name of condition 3
| item3  = Type information here which is shown in condition 3
}}


Quick Copy

Note: The template is not limited to 2 conditions only. Editors can add more conditions if available.

{{Switch infobox
| text1  = 
| item1  = 
| text2  = 
| item2  = 
}}