Template:Gallery
From GW2 Wiki English Mirror
Jump to navigationJump to search
Description
This template is used to display images based on mainspace categories. Furthermore, it is used to display images of the items that are contained in a box.
Usage
{{Gallery|<category>}}
{{Gallery|<item name>|contained in=+|rarity=<Exotic/Ascended/Legendary>|context=<context>}}
Parameters
- 1 (unnamed parameter)
- Main space category, default is PAGENAME. Multiple categories can be used, separated with "{{!!}}".
- If the parameter contained in is set, then it looks for images of items that are contained in the container, specified by this parameter (default: PAGENAME).
- contained in
- Optional. If set, then the query looks for contained items set to unnamed parameter 1.
- rarity
- Optional. Filtering by rarity, like "Exotic", "Ascended" or "Legendary".
- context
- Optional. Look for pages of a certain context, e.g. "Item" or "Skin".
- skin weight class
- Optional. Look for pages of a certain armor weight, e.g. "heavy", "medium" or "light".
- query
- Optional. Additional Manual SMW query options. Will already use above if set.
- nocategory
- Optional. If set to anything but "false" will ignore using Category. Defaults to
false. - perrow
- Optional. Number of displayed images per row, default is 6.
- limit
- Optional. Number of displayed images, default is 500.
- sort
- Optional. Allows for grouping by property such as
Has armor typeorHas skin type. - order
- Optional. Allows for setting order of the sorting. Typically just
descif you want to reverse the list.
Examples
{{Gallery|Specialization armor|rarity=Exotic}}
{{Gallery|Specialization weapons|rarity=Exotic}}
{{Gallery|Specialization weapons|rarity=Ascended|sort=Has skin type}}
{{Gallery|Branded Mounts Pack|contained in=y}}