Difference between revisions of "Template:Card/inner"

From Hearthstone Wiki
Jump to: navigation, search
m
m
Tags: Mobile edit, Mobile web edit, Source edit
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly><div style="width: 200px; display: inline-block; text-align: center;">{{#ifeq:{{{gold|}}}|gold
+
<onlyinclude><includeonly><div style="width: 200px; display: inline-block; text-align: center; flex-shrink: 0">{{#if:{{{header|}}}|<div style="background:#f2e2c3; color:#2c2c2c; padding: 0 3px 3px 3px; vertical-align: top; border-radius: 7px; border: 1px solid #cbb995; text-align: center;">{{{header}}}</div>}}{{#ifeq:{{{gold|}}}|gold
|{{#if: {{{gold_image|}}}|[[{{{gold_image}}}|200px|link={{{targetpage|}}}]]|[[{{{targetpage|}}}|{{{name|}}}]]}}
+
|{{#if: {{{gold_image|}}}
|{{#if: {{{image|}}}|[[{{{image}}}|200px|link={{{targetpage|}}}]]|[[{{{targetpage|}}}|{{{name|}}}]]}}
+
|[[{{{gold_image}}}|200px|link={{#if:{{{links_to_original|}}}
  +
|{{#cargo_query:tables=Cards|fields=Cards._pageName|where=(Cards.data_page="Data:Cards/{{{original_ver}}}")|limit=1|more results text=}}
}}{{#if:{{{note|}}}|<div style="background:#f2e2c3; color:#2c2c2c; padding: 0 3px 3px 3px; vertical-align: top; border-radius: 7px; border: 1px solid #cbb995; text-align: center;">{{{note}}}</div>}}</div></includeonly></onlyinclude>
 
  +
|{{{targetpage|}}}
 
  +
}}]]
This is a template used by the query in {{t|Card}}.
 
  +
|[[{{#if:{{{links_to_original|}}}
[[Category:Card semantics]]
 
  +
|{{#cargo_query:tables=Cards|fields=Cards._pageName|where=(Cards.data_page="Data:Cards/{{{original_ver}}}")|limit=1|more results text=}}
  +
|{{{targetpage|}}}
  +
}}|{{{name|}}}]]
  +
}}
  +
|{{#if: {{{image|}}}
  +
|[[{{{image}}}|200px|link={{#if:{{{links_to_original|}}}
  +
|{{#cargo_query:tables=Cards|fields=Cards._pageName|where=(Cards.data_page="Data:Cards/{{{original_ver}}}")|limit=1|more results text=}}
  +
|{{{targetpage|}}}
  +
}}]]
  +
|[[{{#if:{{{links_to_original|}}}
  +
|{{#cargo_query:tables=Cards|fields=Cards._pageName|where=(Cards.data_page="Data:Cards/{{{original_ver}}}")|limit=1|more results text=}}
  +
|{{{targetpage|}}}
  +
}}|{{{name|}}}]]
  +
}}
 
}}{{#if:{{{footer|}}}|<div style="background:#f2e2c3; color:#2c2c2c; padding: 0 3px 3px 3px; vertical-align: top; border-radius: 7px; border: 1px solid #cbb995; text-align: center;">{{{footer}}}</div>}}</div></includeonly></onlyinclude>This is a template used by the query in {{t|Card}}.
 
[[Category:Card semantics]][[Category:Layout templates]]

Latest revision as of 22:24, 21 May 2021

This is a template used by the query in {{Card}}.