Template:Gallery

From Guild Wars 2 Wiki
Jump to navigationJump to search

Description[edit]

This template is used display to images based on mainspace categories. Furthermore, it allows to display images of the items that are contained in a box.

Usage[edit]

{{Gallery|<category>}}
{{Gallery|<item name>|contained in=+|rarity=<Exotic/Ascended/Legendary>|context=<context>}}

Parameters[edit]

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".
query
Optional. Manual SMW query overriding any parameter above.
perrow
Optional. Number of displayed images per row, default is 6.
limit
Optional. Number of displayed images, default is 500.

Examples[edit]

{{Gallery|Specialization armor|rarity=Exotic}}
{{Gallery|Specialization weapons|rarity=Exotic}}
{{Gallery|Branded Mounts Pack|contained in=y}}