Template:DragonSwitch/doc
From Dragon Mania Legends (DML) Wiki
< Template:DragonSwitchDocumentation subpage |
---|
View this documentation's related template: Template:DragonSwitch |
Example(s)
{{DragonSwitch}}
gives:
|
|
|
{{DragonSwitch|previous=Doomsday Dragon|next=Drakkar Dragon}}
gives:
|
|
|
See Also
{{previous}}
, the template used inside this one to create automatic navigation.{{next}}
, the template used inside this one to create automatic navigation.{{colorCodes}}
, the template used inside this one to colorize.
Used by the {{DragonBox}} template to create a right/left navigation at the top of Dragon pages. Uses the {{previous}} and {{next}} template which make use of DPL3.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Custom Background Color | custom | Sets/overrides a custom background color (hex code without the # symbol)
| String | optional |
Custom Background Color2 | custom2 | Sets/overrides second custom background color (hex code without the # symbol)
| String | optional |
Center Column Background/Rarity | type | Sets the color (typically fed from DragonBox) of the middle color based on rarity
| String | optional |
base | base | Feeds the base element to the "custom2" parameter
| String | required |
Previous Dragon | previous | Feeds the previous dragon name to the icon template and creates the link | Page name | required |
Next Dragon | next | Feeds the next dragon name to the icon template | Page name | required |