Difference between revisions of "Template:Transient icon"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
|||
Line 4: | Line 4: | ||
| | | | ||
[[Has game context::Transient]] | [[Has game context::Transient]] | ||
[[Has lowercase English name::{{lc:{{{1|}}}}}]] | [[Has lowercase English name::{{Name corrector|{{lc:{{{1|}}}}}}}]] | ||
{{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}} | {{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}} | ||
{{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}} | {{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}} | ||
Line 40: | Line 40: | ||
| 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}}}|{{Name corrector|{{{1|Unknown}}}}}]]|{{Name corrector|{{{1|Unknown}}}}}}} | ||
}}<!-- end switch --> | }}<!-- end switch --> | ||
}}<!-- end ask (with frame) --> | }}<!-- end ask (with frame) --> | ||
Line 48: | Line 48: | ||
| | | | ||
[[Has game context::Transient]] | [[Has game context::Transient]] | ||
[[Has lowercase English name::{{lc:{{{1|}}}}}]] | [[Has lowercase English name::{{Name corrector|{{lc:{{{1|}}}}}}}]] | ||
{{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}} | {{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}} | ||
{{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}} | {{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}} | ||
Line 81: | Line 81: | ||
| large = [[File:Unknown icon.png|link={{{link|}}}]] | | large = [[File:Unknown icon.png|link={{{link|}}}]] | ||
| small | | small | ||
|#default=[[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=[[File:Unknown icon.png|20x20px|link={{{link|}}}]]{{#if:{{{link|}}}|[[{{{link}}}|{{Name corrector|{{{1|Unknown}}}}}]]|[[{{Name corrector|{{{1}}}}}|{{Name corrector|{{{1|Unknown}}}}}]]}}{{#if:{{{link|}}}||[[Category:List of invalid Transient icon template calls]]}} | ||
}}<!-- end switch --> | }}<!-- end switch --> | ||
}}<!-- end ask (no frame) --> | }}<!-- end ask (no frame) --> |
Revision as of 07:33, 22 March 2020
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}}
{{Transient icon|Moritaka|size=large}}
{{Transient icon|Moritaka|size=medium|frame=y}}
{{Transient icon|Moritaka|rarity=4}}
{{Transient icon|Moritaka|variant=Valentine|frame=y}}