Difference between revisions of "Template:Transient icon jp"
Jump to navigation
Jump to search
(17 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
| | | | ||
[[Has game context::Transient]] | [[Has game context::Transient]] | ||
{{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}} | {{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}} | ||
{{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}} | {{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}} | ||
{{#if:{{{energy|}}}|[[Has energy::{{{energy}}}]]}} | {{#if:{{{energy|}}}|[[Has energy::{{{energy}}}]]}} | ||
{{#if:{{{id|}}}|[[Has ID::{{{id|}}}]]|[[Has Japanese name::{{{1|}}}]]}} | |||
}} | }} | ||
|?=Transient icon subobject | |?=Transient icon subobject | ||
Line 18: | Line 18: | ||
|?Has variant | |?Has variant | ||
|?Has ID | |?Has ID | ||
|?Has filename | |||
|format=template | |format=template | ||
|template=Transient icon result format | |template=Transient icon result format | ||
Line 29: | Line 30: | ||
|#default = {{#ifeq:{{lc:{{{size|small}}}}}|small|y|n}} | |#default = {{#ifeq:{{lc:{{{size|small}}}}}|small|y|n}} | ||
| y = y | | y = y | ||
}} | }},skin={{#if:{{{skin|{{{face|}}}}}}|{{{face|}}} {{{skin|}}}|0 0}} | ||
|limit=1 | |limit=1 | ||
|sort=Has rarity | |sort=Has rarity | ||
Line 36: | Line 37: | ||
|link=none | |link=none | ||
|named args=yes | |named args=yes | ||
|default={{#switch: {{{size|}}} | |default={{#ifeq:{{{important|}}}|false|| | ||
{{#switch: {{{size|}}} | |||
| medium = <span style="position:relative; display: inline-block; width:58px; height:58px; vertical-align: middle;"><span style="position:absolute; left: 4px; top: 4px;">[[File:Unknown icon.png|50x50px|link={{{link|}}}]]</span><span style="position:absolute; width:58px; height:58px;">[[File:Icon frame rarity 0.png|58x58px|link={{{link|}}}]]</span><span style="position:absolute; top: 0px; left: 3px;">[[File:None element icon.png|14x14px|link={{{link|}}}]]</span><span style="position:absolute; top: 0px; left: 3px;">[[File:None weapon icon.png|14x14px|link={{{link|}}}]]</span></span> | | medium = <span style="position:relative; display: inline-block; width:58px; height:58px; vertical-align: middle;"><span style="position:absolute; left: 4px; top: 4px;">[[File:Unknown icon.png|50x50px|link={{{link|}}}]]</span><span style="position:absolute; width:58px; height:58px;">[[File:Icon frame rarity 0.png|58x58px|link={{{link|}}}]]</span><span style="position:absolute; top: 0px; left: 3px;">[[File:None element icon.png|14x14px|link={{{link|}}}]]</span><span style="position:absolute; top: 0px; left: 3px;">[[File:None weapon icon.png|14x14px|link={{{link|}}}]]</span></span> | ||
| large = <span style="position:relative; display: inline-block; width:116px; height:116px; vertical-align: middle;"><span style="position:absolute; left: 8px; top: 8px;">[[File:Unknown icon.png|link={{{link|}}}]]</span><span style="position:absolute; width:116px; height:116px;">[[File:Icon frame rarity 0.png|116x116px|link={{{link|}}}]]</span><span style="position:absolute; top: 6px; left: 6px;">[[File:None element icon.png|29x29px|link={{{link|}}}]]</span><span style="position:absolute; top: 6px; left: 6px;">[[File:None weapon icon.png|29x29px|link={{{link|}}}]]</span></span> | | large = <span style="position:relative; display: inline-block; width:116px; height:116px; vertical-align: middle;"><span style="position:absolute; left: 8px; top: 8px;">[[File:Unknown icon.png|link={{{link|}}}]]</span><span style="position:absolute; width:116px; height:116px;">[[File:Icon frame rarity 0.png|116x116px|link={{{link|}}}]]</span><span style="position:absolute; top: 6px; left: 6px;">[[File:None element icon.png|29x29px|link={{{link|}}}]]</span><span style="position:absolute; top: 6px; left: 6px;">[[File:None weapon icon.png|29x29px|link={{{link|}}}]]</span></span> | ||
| small | | small | ||
|#default = <span style="position: relative; display: inline-block; width: 20px; height: 20px; vertical-align: middle;"><span style="position: absolute;">[[File:None element icon.png|20x20px|link={{{link|}}}]]</span><span style="position:absolute; top: 0px; left: 0px;">[[File:None weapon icon.png|20x20px|link={{{link|}}}]]</span></span>[[File:Unknown icon.png|20x20px|link={{{link|}}}]]{{#if:{{{link|}}}|[[{{{link}}}|{{{1|Unknown}}}]]|{{{1|Unknown}}}}} | |#default = <span style="position: relative; display: inline-block; width: 20px; height: 20px; vertical-align: middle;"><span style="position: absolute;">[[File:None element icon.png|20x20px|link={{{link|}}}]]</span><span style="position:absolute; top: 0px; left: 0px;">[[File:None weapon icon.png|20x20px|link={{{link|}}}]]</span></span>[[File:Unknown icon.png|20x20px|link={{{link|}}}]]{{#if:{{{link|}}}|[[{{{link}}}|{{{1|Unknown}}}]]|{{{1|Unknown}}}}} | ||
}} | |||
}}<!-- end switch --> | }}<!-- end switch --> | ||
}}<!-- end ask (with frame) --> | }}<!-- end ask (with frame) --> | ||
Line 48: | Line 51: | ||
| | | | ||
[[Has game context::Transient]] | [[Has game context::Transient]] | ||
[[Has Japanese name::{{{1|}}}]] | {{#if:{{{id|}}}|[[Has ID::{{{id|}}}]]|[[Has Japanese name::{{{1|}}}]]}} | ||
{{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}} | {{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}} | ||
{{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}} | {{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}} | ||
Line 59: | Line 62: | ||
|?Has variant | |?Has variant | ||
|?Has ID | |?Has ID | ||
|?Has filename | |||
|format=template | |format=template | ||
|template=Transient icon result format | |template=Transient icon result format | ||
Line 70: | Line 74: | ||
|#default = {{#ifeq:{{lc:{{{size|small}}}}}|small|y|n}} | |#default = {{#ifeq:{{lc:{{{size|small}}}}}|small|y|n}} | ||
| y = y | | y = y | ||
}} | }},skin={{#if:{{{skin|{{{face|}}}}}}|{{{face|}}} {{{skin|}}}|0 0}} | ||
|limit=1 | |limit=1 | ||
|sort=Has rarity | |sort=Has rarity | ||
Line 77: | Line 81: | ||
|link=none | |link=none | ||
|named args=yes | |named args=yes | ||
|default={{#switch:{{{size|}}} | |default={{#ifeq:{{{important|}}}|false||{{#switch:{{{size|}}} | ||
| medium = [[File:Unknown icon.png|50x50px|link={{{link|}}}]] | | medium = {{#if:{{{id|}}}|[https://app.housamo.xyz/cards/{{{id|}}}/ {{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{lc:{{{filename}}}}}.png|width="50"|height="50"}}{{spaces|1}}{{{name|}}}|{{#masterdata:CardIcon|{{{id}}}|show=name;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|}}}/ {{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{lc:{{{filename}}}}}.png|width="116"|height="116"}}{{spaces|1}}{{{name|}}}|{{#masterdata:CardIcon|{{{id}}}|show=name;type=large}}}}]|[[File:Unknown icon.png|link={{{link|}}}]]}} | ||
| small | | small | ||
|#default={{#if:{{{id|}}}|[https://app.housamo.xyz/cards/{{{id|}}}/ {{# | |#default= {{#if:{{{id|}}}|[https://app.housamo.xyz/cards/{{{id|}}}/ {{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{lc:{{{filename}}}}}.png|width="20"|height="20"}}{{spaces|1}}{{{name|}}}|{{#masterdata:CardIcon|{{{id}}}|show=name;type=small}}}}]|[[File:Unknown icon.png|20x20px|link={{{link|}}}]]}} | ||
}} | |||
}}<!-- end switch --> | }}<!-- end switch --> | ||
}}<!-- end ask (no frame) --> | }}<!-- end ask (no frame) --> |
Latest revision as of 16:13, 28 June 2021
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}}