Difference between revisions of "Template:Transient icon"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 12: Line 12:
|?Has icon
|?Has icon
|?Has rarity
|?Has rarity
|?Has element
|?Has energy
|?Has weapon type
|?Has weapon type
|?Has variant
|?Has variant
Line 98: Line 98:
; rarity : Filter result by the rarity of the companion.
; rarity : Filter result by the rarity of the companion.
; variant : Filter result by the variant of the companion.
; variant : Filter result by the variant of the companion.
; frame : Set to ''y'' to also display a frame with rarity, element and weapon type of the companion, ''n'' to only display the icon. Defaults to ''n''.
; frame : Set to ''y'' to also display a frame with rarity, energy and weapon type of the companion, ''n'' to only display the icon. Defaults to ''n''.
; size : Set to ''small'', ''medium'' or ''large'' to change the size of the icon. When set to ''small'', also displays the companion's English name. Defaults to ''small''.
; size : Set to ''small'', ''medium'' or ''large'' to change the size of the icon. When set to ''small'', also displays the companion's English name. Defaults to ''small''.
; link : Page that the icon should link to. Defaults to the page of the companion.
; link : Page that the icon should link to. Defaults to the page of the companion.

Revision as of 21:08, 31 March 2018

Description

This template displays a link to a companion together with its icon. If multiple companions would fit the search criteria, only the one with the lowest rarity of the standard variant is displayed.

Usage

{{Companion icon
|<en companion name>
| rarity = 
| variant = 
| link = 
| subobject = 
| show name = 
}}

Parameters

en companion name
Required. Name of the companion
rarity
Filter result by the rarity of the companion.
variant
Filter result by the variant of the companion.
frame
Set to y to also display a frame with rarity, energy and weapon type of the companion, n to only display the icon. Defaults to n.
size
Set to small, medium or large to change the size of the icon. When set to small, also displays the companion's English name. Defaults to small.
link
Page that the icon should link to. Defaults to the page of the companion.
show name
Set to y to show the name, n to hide. Defaults to y if size is set to small, n otherwise.
subobject
Subobject of the companion. Can be used by other templates to directly display the correct companion. Do not use this parameter manually.

Examples

{{Companion icon|Moritaka}}

Unknown icon.pngMoritaka

{{Companion icon|Moritaka|size=large}}

Unknown icon.png

{{Companion icon|Moritaka|size=medium|frame=y}}

Unknown icon.pngIcon frame rarity 0.png14x14pxNone weapon icon.png

{{Companion icon|Moritaka|rarity=4}}

Unknown icon.pngMoritaka

{{Companion icon|Moritaka|variant=Valentine|frame=y}}

20x20pxNone weapon icon.pngUnknown icon.pngMoritaka