Template
WorldSwitch
From Dogcraft Wiki
m (Added category: Tool templates) |
(Added sur6 in all places except network (that didn't have sur5 either, I don't think its in use anymore)) |
||
Line 8: | Line 8: | ||
| Survival 4 = Survival 4 | | Survival 4 = Survival 4 | ||
| Survival 5 = Survival 5 | | Survival 5 = Survival 5 | ||
| Survival 6 = Survival 6 | |||
| Survival 4 (Husky) = Survival 4 | | Survival 4 (Husky) = Survival 4 | ||
| Survival 4 (Beagle) = Survival 4 | | Survival 4 (Beagle) = Survival 4 | ||
Line 29: | Line 30: | ||
| Corgi = Survival 5 | | Corgi = Survival 5 | ||
| Labrador = Survival 5 | | Labrador = Survival 5 | ||
| [[Survival 6]] = Survival 6 | |||
| Survival 6 (Sheltie) = Survival 6 | |||
| Survival 6 (Retriever) = Survival 6 | |||
| [[Survival 6]] (Sheltie) = Survival 6 | |||
| [[Survival 6]] (Retriever) = Survival 6 | |||
| Sheltie = Survival 6 | |||
| Retriever = Survival 6 | |||
| Amplified = Amplified | | Amplified = Amplified | ||
| Skyblock = Skyblock | | Skyblock = Skyblock | ||
Line 62: | Line 70: | ||
| Corgi = Survival 5 | | Corgi = Survival 5 | ||
| Labrador = Survival 5 | | Labrador = Survival 5 | ||
| Survival 6 = Survival 6 | |||
| [[Survival 6]] = Survival 6 | |||
| Survival 6 (Sheltie) = Survival 6 | |||
| Survival 6 (Retriever) = Survival 6 | |||
| [[Survival 6]] (Sheltie) = Survival 6 | |||
| [[Survival 6]] (Retriever) = Survival 6 | |||
| Sheltie = Survival 6 | |||
| Retriever = Survival 6 | |||
| Amplified = Amplified | | Amplified = Amplified | ||
| Skyblock = Skyblock | | Skyblock = Skyblock | ||
Line 103: | Line 119: | ||
}} | }} | ||
|[[Survival 5]]}} | |[[Survival 5]]}} | ||
| Survival 6 = {{#if: {{{2|}}} | |||
|{{#switch: {{{2|}}} | |||
| Sheltie = [[Survival 6]] (Sheltie) | |||
| Retriever = [[Survival 6]] (Retriever) | |||
}} | |||
|[[Survival 6]]}} | |||
| Survival 4 (Husky) = [[Survival 4]] (Husky) | | Survival 4 (Husky) = [[Survival 4]] (Husky) | ||
| Survival 4 (Beagle) = [[Survival 4]] (Beagle) | | Survival 4 (Beagle) = [[Survival 4]] (Beagle) | ||
Line 109: | Line 131: | ||
| Survival 5 (Corgi) = [[Survival 5]] (Corgi) | | Survival 5 (Corgi) = [[Survival 5]] (Corgi) | ||
| Survival 5 (Labrador) = [[Survival 5]] (Labrador) | | Survival 5 (Labrador) = [[Survival 5]] (Labrador) | ||
| Survival 6 (Sheltie) = [[Survival 6]] (Sheltie) | |||
| Survival 6 (Retriever) = [[Survival 6]] (Retriever) | |||
| Husky = [[Survival 4]] (Husky) | | Husky = [[Survival 4]] (Husky) | ||
| Beagle = [[Survival 4]] (Beagle) | | Beagle = [[Survival 4]] (Beagle) | ||
Line 115: | Line 139: | ||
| Labrador = [[Survival 5]] (Labrador) | | Labrador = [[Survival 5]] (Labrador) | ||
| Shepherd = [[Survival 5]] (Shepherd) | | Shepherd = [[Survival 5]] (Shepherd) | ||
| Sheltie = [[Survival 6]] (Sheltie) | |||
| Retriever = [[Survival 6]] (Retriever) | |||
| Amplified = [[Amplified]] | | Amplified = [[Amplified]] | ||
| Skyblock = [[Skyblock]] | | Skyblock = [[Skyblock]] | ||
Line 141: | Line 167: | ||
| Labrador = [[Survival 5]] (Labrador) | | Labrador = [[Survival 5]] (Labrador) | ||
| Shepherd = [[Survival 5]] (Shepherd) | | Shepherd = [[Survival 5]] (Shepherd) | ||
| Survival 6 = Survival 6 | |||
| Survival 6 (Sheltie) = Survival 6 | |||
| Survival 6 (Retriever) = Survival 6 | |||
| [[Survival 6]] (Sheltie) = Survival 6 | |||
| [[Survival 6]] (Retriever) = Survival 6 | |||
| Sheltie = Survival 6 | |||
| Retriever = Survival 6 | |||
| Amplified = [[Amplified]] | | Amplified = [[Amplified]] | ||
| Skyblock = [[Skyblock]] | | Skyblock = [[Skyblock]] |
Revision as of 16:28, 20 December 2023
WorldSwitch template
This is a technical template meant to be used inside other template, mainly infoboxes. It converts server world names to include links. It handles most common ways of refering to past and present worlds.
Example
{{WorldSwitch|Survival}}
generates: Survival
{{WorldSwitch|Survival 4}}
generates: Survival 4
{{WorldSwitch|Survival 4|Husky}}
generates: Survival 4 (Husky)
{{WorldSwitch|Survival 4 (Husky)}}
generates: Survival 4 (Husky)
{{WorldSwitch|Husky}}
generates: Survival 4 (Husky)
{{WorldSwitch||Husky}}
generates: Survival 4 (Husky)
{{WorldSwitch|Husky|mode=Category}}
generates: Survival 4
{{WorldSwitch||Husky|mode=Category}}
generates: Survival 4
{{WorldSwitch|Survival 4 (Husky)|mode=Category}}
generates: Survival 4
{{WorldSwitch|Survival 4 (Husky)|mode=Subworld}}
generates: Husky
Template data
This is a technical template. If you see this text outside the Template:WorldSwitch page, you are doing something wrong. It is meant to convert most ways to input the 'world' property of infobox templates into what the template is expecting and/or the same thing but with a link to the actual world page referred to.
Parameter | Description | Type | Status | |
---|---|---|---|---|
World | 1 | Input for the worlds, this is what actually matters the most. Takes inputs in most ways you could think to input the world that is not actually what the template wants. Except typos. This is to deal with alternative ways to say the same things, not the lack of autocorrect. | String | required |
Subworld | 2 | Subworld for use in Survival 4 cases
| String | suggested |
Mode | mode | Options are "Category" for world categoires, "Network" for use in the Network line of the Station infobox, and a currently unused "Subworld" option. | String | optional |