Template

WorldSwitch

From Dogcraft Wiki

Revision as of 23:36, 4 July 2021 by Domino (talk | contribs)

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: {{#ifeq: | Category |Survival |Survival

{{WorldSwitch|Survival 4}} generates: {{#ifeq: | Category |Survival 4 |Survival 4

{{WorldSwitch|Survival 4|Husky}} generates: {{#ifeq: | Category |Survival 4 (Husky) |Survival 4 (Husky)

{{WorldSwitch|Survival 4 (Husky)}} generates: {{#ifeq: | Category |Survival 4 |Survival 4 (Husky)

{{WorldSwitch|Husky}} generates: {{#ifeq: | Category |Survival 4 |Survival 4 (Husky)


{{WorldSwitch||Husky}} generates: {{#ifeq: | Category |Survival 4 |Survival 4 (Husky)

{{WorldSwitch|Husky|mode=Category}} generates: {{#ifeq: Category | Category |Survival 4 |Survival 4 (Husky)

{{WorldSwitch||Husky|mode=Category}} generates: {{#ifeq: Category | Category |Survival 4 |Survival 4 (Husky)

{{WorldSwitch|Survival 4 (Husky)|mode=Category}} generates: {{#ifeq: Category | Category |Survival 4 |Survival 4 (Husky)

This page was last modified on 4 July 2021, at 23:36. (3 months ago)