Difference between revisions of "Template:Transient icon jp"
Jump to navigation
Jump to search
Line 78: | Line 78: | ||
|named args=yes | |named args=yes | ||
|default={{#switch:{{{size|}}} | |default={{#switch:{{{size|}}} | ||
| medium = [[File:Unknown icon.png|50x50px|link={{{link|}}}]] | | medium = {{#if:{{{id|}}}|[https://app.housamo.xyz/cards/{{{id|}}}/ {{#masterdata:CardIcon|{{{id}}}|name=show;type=medium}}]|[[File:Unknown icon.png|50x50px|link={{{link|}}}]]}} | ||
| large = [[File:Unknown icon.png|link={{{link|}}}]] | | large = {{#if:{{{id|}}}|[https://app.housamo.xyz/cards/{{{id|}}}/ {{#masterdata:CardIcon|{{{id}}}|name=show;type=large}}]|[[File:Unknown icon.png|link={{{link|}}}]]}} | ||
| small | | small | ||
|#default={{#if:{{{id|}}}|[https://app.housamo.xyz/cards/{{{id|}}}/ {{#masterdata:CardIcon|{{{id}}}|name=show;type=small}}]|[[File:Unknown icon.png|20x20px|link={{{link|}}}]]{{#if:{{{link|}}}|[[{{{link}}}|{{{1|Unknown}}}]]|[[{{{1}}}|{{{1|Unknown}}}]]}}{{#if:{{{link|}}}||[[Category:List of invalid Transient icon template calls]]}}}} | |#default={{#if:{{{id|}}}|[https://app.housamo.xyz/cards/{{{id|}}}/ {{#masterdata:CardIcon|{{{id}}}|name=show;type=small}}]|[[File:Unknown icon.png|20x20px|link={{{link|}}}]]{{#if:{{{link|}}}|[[{{{link}}}|{{{1|Unknown}}}]]|[[{{{1}}}|{{{1|Unknown}}}]]}}{{#if:{{{link|}}}||[[Category:List of invalid Transient icon template calls]]}}}} |
Revision as of 21:03, 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 jp |<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 jp|モリタカ}}
{{Transient icon jp|モリタカ|size=large}}
{{Transient icon jp|モリタカ|size=medium|frame=y}}
{{Transient icon jp|モリタカ|rarity=4}}
{{Transient icon jp|モリタカ|variant=Valentine|frame=y}}