Module:ContractChainTiles/doc
Jump to navigation
Jump to search
This is the documentation page for Module:ContractChainTiles
Module:ContractChainTiles
Renders the Contract Chains belonging to a Contract Group as clickable ItemTiles, for use by Template:ContractChainTiles.
This module should not be invoked directly. To list Contract Chains, use Template:ContractChainTiles.
This module provides the following function(s):
main- queries DPL3 for every Contract Chain in a Contract Group and renders each as an ItemTile inside a flex container.
Usage
Render Contract Chains for a group
{{#invoke:ContractChainTiles|main|Tradepost - The Anvil}}
Parameters
main
- 1
- string
- The Contract Group name, matching the
groupfield of the Contract Chains' Template:QuestInfobox/ContractChain infoboxes. Queried via the categoryContract Chains (<GROUP>). - Returns an error message if not specified or if no Contract Chains are found.
Notes
- Each tile's image is taken from the Contract Chain's
imagefield. If the page has no Contract Chain image, the first Contract image found is used instead. - If a Contract Chain contains both the Atreides and Harkonnen icons, the hybrid faction icon (
Icon - Contract Faction.png) is used in place of either. - Results are passed through Template:ItemTile/Quest and wrapped in Template:FlexContainer.