Template:ShopFilters/doc
From Dragon Mania Legends (DML) Wiki
< Template:ShopFiltersDocumentation subpage |
---|
View this documentation's related template: Template:ShopFilters |
Example(s)
{{ShopFilters|[[File:Snow Ghost Dragon Baby.png|100px|link=Category:Dungeon Shop#Dragons]]|Dragons}}
Gives:
{{ShopFilters|[[File:Snow Ghost Dragon Baby.png|100px|link=Category:Dungeon Shop#Dragons]]|Dragons|outline=darkorange|width=auto}}
Gives:
Flex Row (using div)
{{div|class=shop-filters| {{ShopFilters|[[File:Snow Ghost Dragon Baby.png|100px|link=Category:Dungeon Shop#Dragons]]|Dragons|float=left}} {{ShopFilters|[[File:Decoration - Sword Sculpture.png|66px|link=Category:Dungeon Shop#Decorations]]|Decorations|float=left|margin=2em}} {{ShopFilters|[[File:Special Offers Icon.png|105px|link=Category:Dungeon Shop#Special Offers]]|Special Offers|float=left|margin=2em}} }}
Gives:
Flex Row Smaller
{{div|class=shop-filters| {{ShopFilters|[[File:Snow Ghost Dragon Baby.png|80px|link=Category:Dungeon Shop#Dragons]]|Dragons|float=left|text=1em|margin-top=-35px}} {{ShopFilters|[[File:Decoration - Sword Sculpture.png|46px|link=Category:Dungeon Shop#Decorations]]|Decorations|float=left|margin=2em|text=1em|margin-top=-25px}} {{ShopFilters|[[File:Special Offers Icon.png|85px|link=Category:Dungeon Shop#Special Offers]]|Special Offers|float=left|margin=2em|margin-top=-15px|text=1em}} }}
Gives:
Creates image and text-based shop filters, with changeable (and translatable) text, rather than text embedded in images. Note: Requires a minimum column width of 20% at the small size (larger at larger) if used on {{floatimage||20}} column.
Parameter | Description | Type | Status | |
---|---|---|---|---|
image link | 1 | no description
| String | optional |
(Optional) style(s) | style | no description | String | optional |
(Override) text size | text 2 | no description
| String | optional |
(Override) text color | color | no description
| String | optional |
(Override) outline color | outline | no description
| String | optional |
(Optional) float | float | no description
| String | optional |
(Override) width | width | no description
| String | optional |
(Optional) margin-left | margin | no description
| String | optional |
(Override) margin-top | margin-top | no description
| String | optional |