Difference between revisions of "Template:Transient icon"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#if:{{{skin|{{{face|}}}}}}|
<includeonly>{{#ifeq:{{{frame|n}}}|y|
{{#vardefine:face-skin|skin={{{face|}}} {{{skin|}}};}}
}}{{#ifeq:{{{frame|n}}}|y|
{{#ask:{{#if:{{{subobject|}}}|
{{#ask:{{#if:{{{subobject|}}}|
  [[{{{subobject}}}]]
  [[{{{subobject}}}]]
Line 26: Line 24:
| small
| small
|#default = small
|#default = small
}},link={{{link|}}},show name={{#switch:{{lc:{{{show name|n}}}}}|
}},link={{{link|}}},show name={{#switch:{{lc:{{{show name|n}}}}},skin={{#if:{{{skin|{{{face|}}}}}}|{{{face|}}} {{{skin|}}};}}}}|
| n
| n
|#default = {{#ifeq:{{lc:{{{size|small}}}}}|small|y|n}}
|#default = {{#ifeq:{{lc:{{{size|small}}}}}|small|y|n}}
Line 61: Line 59:
|format=template
|format=template
|template=Transient icon result format
|template=Transient icon result format
|userparam=frame=n,size={{#switch:{{lc:{{{size|small}}}}}|
|userparam=frame=n,size={{#switch:{{lc:{{{size|small}}}}},skin={{#if:{{{skin|{{{face|}}}}}}|{{{face|}}} {{{skin|}}};}}}}|
| medium = medium
| medium = medium
| large = large
| large = large

Revision as of 21:27, 14 December 2018

Description

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

Usage

{{Transient icon
|<en transient name>
| rarity = 
| variant = 
| link = 
| energy = 
| subobject = 
| show name = 
}}

Parameters

en transient name
Required. Name of the transient
rarity
Filter result by the rarity of the transient.
energy
Filter result by the energy of the transient.
variant
Filter result by the variant of the transient.
frame
Set to y to also display a frame with rarity, energy and weapon type of the transient, 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 transient's English name. Defaults to small.
link
Page that the icon should link to. Defaults to the page of the transient.
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 transient. Can be used by other templates to directly display the correct transient. Do not use this parameter manually.

Examples

{{Transient icon|Moritaka}}

limit=1 | Unknown icon.pngUnknown icon.pngUnknown icon.pngUnknown icon.png,link=,show name=y |limit=1 |sort=Has rarity |order=asc |searchlabel= |link=none |named args=yes |default=Unknown icon.pngMoritaka }} }}

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

limit=1 | Unknown icon.pngUnknown icon.pngUnknown icon.pngUnknown icon.png,link=,show name=n |limit=1 |sort=Has rarity |order=asc |searchlabel= |link=none |named args=yes |default=Unknown icon.png }} }}

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

Unknown icon.pngIcon frame rarity 0.png14x14pxNone weapon icon.pngUnknown icon.pngIcon frame rarity 0.png14x14pxNone weapon icon.pngUnknown icon.pngIcon frame rarity 0.png14x14pxNone weapon icon.pngUnknown icon.pngIcon frame rarity 0.png14x14pxNone weapon icon.png | Unknown icon.pngUnknown icon.pngUnknown icon.pngUnknown icon.png,link=,show name=n |limit=1 |sort=Has rarity |order=asc |searchlabel= |link=none |named args=yes |default=Unknown icon.png }} }}

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

limit=1 | Unknown icon.png,link=,show name=y |limit=1 |sort=Has rarity |order=asc |searchlabel= |link=none |named args=yes |default=Unknown icon.pngMoritaka }} }}

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

20x20pxNone weapon icon.pngUnknown icon.png | Unknown icon.png,link=,show name=y |limit=1 |sort=Has rarity |order=asc |searchlabel= |link=none |named args=yes |default=Unknown icon.pngMoritaka }} }}