No edit summary |
No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
| colspan="3" style="text-align: left;" | |
| colspan="3" style="text-align: left;" | |
||
{{#ifeq:{{lc:{{{is_data_page|}}} }}|true| |
{{#ifeq:{{lc:{{{is_data_page|}}} }}|true| |
||
− | {{#switch:{{# |
+ | {{#switch:{{#cargo_query:table=Cards|where=data_page="{{FULLPAGENAME}}"|fields=COUNT(*)|no html|default=0}} |
− | |1=The card content page currently using this data is: {{# |
+ | |1=The card content page currently using this data is: {{#cargo_query:table=Cards|where=data_page="{{FULLPAGENAME}}"|limit=1|more results text=|fields=_pageName}} |
* '''It's possible for this to be out of date due to caching.''' If this seems incorrect, try {{editlink|{{FULLPAGENAME}}|opening this page for editing}} and ''save without making any changes'' to get current results. |
* '''It's possible for this to be out of date due to caching.''' If this seems incorrect, try {{editlink|{{FULLPAGENAME}}|opening this page for editing}} and ''save without making any changes'' to get current results. |
||
Line 15: | Line 15: | ||
| A page named [[{{{page|}}}]] already exists. |
| A page named [[{{{page|}}}]] already exists. |
||
**If it should already be using this data page, make sure it is using {{t|Card infobox}} correctly ''after'' trying resaving as described above. |
**If it should already be using this data page, make sure it is using {{t|Card infobox}} correctly ''after'' trying resaving as described above. |
||
− | **'''But''' there may be another card or topic with the same name. If so, you can create another page, such as perhaps [[{{{page|}}} ({{#switch:{{lc:{{{type}}} }}|ability|spell=spell|weapon|equipment=equipment|minion=minion|{{lc: {{{type|}}} }} }})]] and use < |
+ | **'''But''' there may be another card or topic with the same name. If so, you can create another page, such as perhaps [[{{{page|}}} ({{#switch:{{lc:{{{type}}} }}|ability|spell=spell|weapon|equipment=equipment|minion=minion|{{lc: {{{type|}}} }} }})]] and use <code>datapage</code> or other parameters on {{t|Card Infobox}} to match that page up with this page. |
| No page named [[{{{page|}}}]] currently exists. The card content page could be created here using {{t|Card infobox}}. |
| No page named [[{{{page|}}}]] currently exists. The card content page could be created here using {{t|Card infobox}}. |
||
}} |
}} |
||
− | |[[Category:Card data used by multiple pages]]'''More than one card content page is using this data.''' They include: {{# |
+ | |[[Category:Card data used by multiple pages]]'''More than one card content page is using this data.''' They include: {{#cargo_query:table=Cards|where=data_page="{{FULLPAGENAME}}"|format=ul|fields=_pageName}} |
* '''It's possible for this to be out of date due to caching.''' If this seems incorrect, try {{editlink|{{FULLPAGENAME}}|opening this page for editing}} and ''save without making any changes'' to get current results. |
* '''It's possible for this to be out of date due to caching.''' If this seems incorrect, try {{editlink|{{FULLPAGENAME}}|opening this page for editing}} and ''save without making any changes'' to get current results. |
||
− | * Having more than one card content page using this data can cause errors. You may want to use < |
+ | * Having more than one card content page using this data can cause errors. You may want to use <code>datapage</code> or other parameters on {{t|Card Infobox}} on one of these pages to change which data page it is using, you may want to remove <nowiki>{{Card infobox}}</nowiki> from one of those pages altogether, or one of the pages may need to be moved or deleted. |
}} |
}} |
||
|This section will contain information on the content pages using this data page. |
|This section will contain information on the content pages using this data page. |
||
Line 55: | Line 55: | ||
!<span title="These are the values assigned to each parameter.">Value</span> |
!<span title="These are the values assigned to each parameter.">Value</span> |
||
!<span title="These are the variables the values are assigned to for processing by the infobox/content template.">Variable</span> |
!<span title="These are the variables the values are assigned to for processing by the infobox/content template.">Variable</span> |
||
− | !<span title="These are the properties the infobox/content template should use for storing these values. Note that the values may need some processing first and are not necessary stored exactly as shown here.">Property</span> |
||
|- |
|- |
||
− | |< |
+ | |<code>name</code> |
− | |< |
+ | |<code>{{#var:name}}</code> |
− | |< |
+ | |<code>name</code> |
− | |[[Property:Has name|Has name]] |
||
|- |
|- |
||
− | |< |
+ | |<code>link</code> |
− | |< |
+ | |<code>{{#var:link}}</code> |
− | |< |
+ | |<code>link</code> |
− | |[[Property:Has Hearthpwn page|Has Hearthpwn page]] |
||
|- |
|- |
||
− | |< |
+ | |<code>image</code> |
− | |< |
+ | |<code>{{#var:image}}</code> |
− | |< |
+ | |<code>image</code> |
− | |[[Property:Has image|Has image]] |
||
|- |
|- |
||
− | |< |
+ | |<code>has_gold</code> |
− | |< |
+ | |<code>{{#var:has_gold}}</code> |
− | |< |
+ | |<code>has_gold</code> |
− | |[[Property:Has gold version|Has gold version]] |
||
|- |
|- |
||
− | |< |
+ | |<code>gold_image</code> |
− | |< |
+ | |<code>{{#var:gold_image}}</code> |
− | |< |
+ | |<code>gold_image</code> |
− | |[[Property:Has gold image|Has gold image]] |
||
|- |
|- |
||
− | |< |
+ | |<code>bg_type</code> |
− | |< |
+ | |<code>{{#var:bg_type}}</code> |
− | |< |
+ | |<code>bg_type</code> |
− | |[[Property:Is part of set|Is part of set]] |
||
|- |
|- |
||
− | |< |
+ | |<code>tier</code> |
− | |< |
+ | |<code>{{#var:tier}}</code> |
− | |< |
+ | |<code>tier</code> |
− | |[[Property:Has card type|Has card type]] |
||
|- |
|- |
||
− | |< |
+ | |<code>set</code> |
− | |< |
+ | |<code>{{#var:set}}</code> |
− | |< |
+ | |<code>set</code> |
− | |[[Property:Has card subtype|Has card subtype]] |
||
|- |
|- |
||
− | |< |
+ | |<code>type</code> |
− | |< |
+ | |<code>{{#var:type}}</code> |
− | |< |
+ | |<code>type</code> |
− | |[[Property:Has class|Has class]] |
||
|- |
|- |
||
− | |< |
+ | |<code>subtype</code> |
− | |< |
+ | |<code>{{#var:subtype}}</code> |
− | |< |
+ | |<code>subtype</code> |
− | |[[Property:Has multiclass|Has multiclass]] |
||
|- |
|- |
||
− | |< |
+ | |<code>class</code> |
− | |< |
+ | |<code>{{#var:class}}</code> |
− | |< |
+ | |<code>class</code> |
− | |[[Property:Has rarity|Has rarity]]<br />[[Property:Has rarity/index|Has rarity/index]] |
||
|- |
|- |
||
− | |< |
+ | |<code>multiclass</code> |
− | |< |
+ | |<code>{{#var:multiclass}}</code> |
− | |< |
+ | |<code>multiclass</code> |
− | |[[Property:Has mana cost|Has mana cost]] |
||
|- |
|- |
||
− | |< |
+ | |<code>rarity</code> |
− | |< |
+ | |<code>{{#var:rarity}}</code> |
− | |< |
+ | |<code>rarity</code> |
− | |[[Property:Has attack|Has attack]] |
||
|- |
|- |
||
− | |< |
+ | |<code>cost</code> |
− | |< |
+ | |<code>{{#var:cost}}</code> |
− | |< |
+ | |<code>cost</code> |
− | |[[Property:Has health|Has health]] |
||
|- |
|- |
||
− | |< |
+ | |<code>attack</code> |
− | |< |
+ | |<code>{{#var:attack}}</code> |
− | |< |
+ | |<code>attack</code> |
− | |[[Property:Has heroic health|Has heroic health]] |
||
|- |
|- |
||
− | |< |
+ | |<code>hp</code> |
− | |< |
+ | |<code>{{#var:hp}}</code> |
− | |< |
+ | |<code>hp</code> |
− | |[[Property:Has armor|Has armor]] |
||
|- |
|- |
||
− | |< |
+ | |<code>heroichp</code> |
− | |< |
+ | |<code>{{#var:heroichp}}</code> |
− | |< |
+ | |<code>heroichp</code> |
− | |[[Property:Has heroic armor|Has heroic armor]] |
||
|- |
|- |
||
− | |< |
+ | |<code>armor</code> |
− | |< |
+ | |<code>{{#var:armor}}</code> |
− | |< |
+ | |<code>armor</code> |
− | |[[Property:Has abilities|Has abilities]] |
||
|- |
|- |
||
− | |< |
+ | |<code>heroicarmor</code> |
+ | |<code>{{#var:heroicarmor}}</code> |
||
⚫ | |||
− | |< |
+ | |<code>heroicarmor</code> |
− | |[[Property:Has description|Has description]] |
||
|- |
|- |
||
− | |< |
+ | |<code>abilities</code> |
+ | |<code>{{#var:abilities}}</code> |
||
⚫ | |||
− | |< |
+ | |<code>abilities</code> |
+ | |- |
||
− | |[[Property:Has flavor text|Has flavor text]] |
||
+ | |<code>desc</code> |
||
⚫ | |||
+ | |<code>desc</code> |
||
+ | |- |
||
+ | |<code>flavor</code> |
||
⚫ | |||
+ | |<code>flavor</code> |
||
+ | |- |
||
+ | | colspan="4" | If <code>desc</code> or <code>flavor</code> show raw html tags like <code></div></code>, there is probably a <code><br></code> tag inside a <code><b></code> or <code><i></code> tag (or any other HTML tag, for that matter. The new description format for the tables, which hides all lines but the first until the mouse hovers over, can't properly cope with that. Please close any tags before a <code><br></code> and reopen them after if necessary. |
||
|} |
|} |
||
|}{{#ifeq:{{lc:{{{is_data_page|}}} }}|true|[[Category:Imported card data|{{SUBPAGENAME}}]]{{DEFAULTSORT:{{SUBPAGENAME}} }}|}}</onlyinclude>{{doc}} |
|}{{#ifeq:{{lc:{{{is_data_page|}}} }}|true|[[Category:Imported card data|{{SUBPAGENAME}}]]{{DEFAULTSORT:{{SUBPAGENAME}} }}|}}</onlyinclude>{{doc}} |
Revision as of 00:30, 5 December 2019
This is the data page for this card. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This section will contain information on the content pages using this data page. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
On an actual card data page, the normal image will appear here if it exists. | On an actual card data page, the gold image will appear here if it exists. |
|
This template performs the visual work for {{Card data}}. It isn't intended for direct use.