Template:BTD6 artifact info: Difference between revisions

m now displays heroes that start with these artifacts if applicable
mNo edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{|class="info"
<includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!--
!class="head"|{{{name}}}
--><div class="head">{{{name}}}</div>
|-
{|class="subtable main centered"
|
|[[File:{{{image}}}|100px|Icon of {{{name}}}]]
{|class="info-sub main centered-cells"
|[[File:{{{image}}}|100px]]
|}
|}
{|class="subtable"
!Type
|colspan="2"|{{{type}}}
|-
|-
|
{|class="info-sub"
{{#if:{{{description common|}}}|!Common
{{#if:{{{description common|}}}|!Common
{{!}}colspan="2"{{!}}{{{description common|}}}}}
{{!}}colspan="2"{{!}}{{{description common|}}}}}
Line 18: Line 17:
{{!}}colspan="2"{{!}}{{{description legendary|}}}}}
{{!}}colspan="2"{{!}}{{{description legendary|}}}}}
|-
|-
![[Hero]] parties
{{#ifeq:{{{type|}}}|Boost||![[Hero]] parties
|colspan="2"|{{#cargo_query:tables=btd6_hero_skins
{{!}}colspan="2"{{!}}{{#cargo_query:tables=btd6_hero_skins
|fields=CONCAT("[[", _pageName, "|", name, "]] (", rl_artifact_rarity, ")") = text
|fields=CONCAT("[[", _pageName, "|", name, "]] (", rl_artifact_rarity, ")<br>") = text
|where=rl_artifact LIKE "%{{{naame}}}%"
|where=rl_artifact = "{{{name}}}" AND NOT xd_only
|order by=numeric_id
|order by=numeric_id
|default=—
|default=—
|format=ul
|format=list
}}
|delimiter=
}}}}
|-
|-
!Introduced
!Introduced
|colspan="2"|{{#if:{{{introduced|}}}|[[Bloons TD 6 v{{{introduced}}}|Version {{{introduced}}}]]|???}}
|colspan="2"|{{#if:{{{introduced|}}}|[[Update history:Bloons TD 6/Version {{{introduced}}}|Version {{{introduced}}}]]|???}}
|}
|}</div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd6_artifacts
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd6_artifacts
|id ={{{id|}}}
|id={{{id|}}}
|type={{{type|}}}
|type={{{type|}}}


Line 47: Line 46:
|insta_tiers_rare    ={{{insta tiers rare|}}}
|insta_tiers_rare    ={{{insta tiers rare|}}}
|insta_tiers_legendary={{{insta tiers legendary|}}}
|insta_tiers_legendary={{{insta tiers legendary|}}}
|introduced={{{introduced|}}}
|introduced           ={{{introduced|}}}
}}[[Category:{{#ifeq:{{{type|}}}|Boost|Boosts|Artifacts}}]]}}{{#seo:
}}[[Category:{{#ifeq:{{{type|}}}|Boost|Boosts|Artifacts}}]]{{#seo:
|image={{{image|}}}
|image={{{image|}}}
|name=BTD6 {{{name|}}}, Rogue Legends {{{name|}}}, Artifact {{{name|}}}
|name=BTD6 {{{name|}}}, Rogue Legends {{{name|}}}, Artifact {{{name|}}}
}}</includeonly><noinclude>{{#cargo_declare:_table=btd6_artifacts
}}}}</includeonly><noinclude>{{#cargo_declare:_table=btd6_artifacts
|id=String
|id =String
|type=String
|type=String


Line 69: Line 68:
|insta_tiers_rare    =String
|insta_tiers_rare    =String
|insta_tiers_legendary=String
|insta_tiers_legendary=String
|introduced=String
|introduced           =String
}}{{/doc}}</noinclude>
}}{{/doc}}</noinclude>