Template:Infobox Event

From DominionStrategy Wiki
(Difference between revisions)
Jump to: navigation, search
(Add missing category for cost based on Card2cost and name (ignore cost and cost2))
 
(5 intermediate revisions by 3 users not shown)
Line 10: Line 10:
  
 
|image    = {{{image|[[File:{{#ifexist:File:{{{name}}}.jpg|{{{name|Card back landscape}}}|Card back landscape}}.jpg|320px]]}}}
 
|image    = {{{image|[[File:{{#ifexist:File:{{{name}}}.jpg|{{{name|Card back landscape}}}|Card back landscape}}.jpg|320px]]}}}
|caption  = {{#if:{{{image|}}}{{{image2|}}}||{{#ifexist:File:{{{name}}}.jpg||<span class="plainlinks">''Seem that we don't have the card image. Maybe you can [{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{name}}}.jpg|PATH}}}} upload] it?''</span>}}}}
+
|caption  = {{#if:{{{image|}}}{{{image2|}}}||{{#ifexist:File:{{{name}}}.jpg||<span class="plainlinks">''It seems we don't have the card image. Maybe you can [{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{name}}}.jpg|PATH}}}} upload] it?''</span>}}}}
 
|image2  = {{#if:{{{image2|}}}|{{{image2}}}}}
 
|image2  = {{#if:{{{image2|}}}|{{{image2}}}}}
 
|caption2 = {{#if:{{{caption2|}}}|''{{{caption2|}}}''}}
 
|caption2 = {{#if:{{{caption2|}}}|''{{{caption2|}}}''}}
Line 19: Line 19:
 
|data2    = {{Cost|{{{cost|}}}||{{{cost2|}}}}}
 
|data2    = {{Cost|{{{cost|}}}||{{{cost2|}}}}}
  
|label3  = [[Card types|Type(s)]]
+
|label3  = [[Card types|Type]]
|data3    = [[{{{type1|Event}}}]]{{#if:{{{type2|}}}|&nbsp;- [[{{{type2}}}]]}}{{#if:{{{type3|}}}|&nbsp;- [[{{{type3}}}]]}}{{#if:{{{type4|}}}|&nbsp;- [[{{{type4}}}]]}}
+
|data3    = [[Event]]
  
|label5  = Set
+
|label5  = [[Expansions|Set]]
|data5    = [[{{{set|{{Card2set|{{{name}}}}}}}}]]<span style="float:right">{{Icon|{{{name|}}}|x16px}}</span>
+
|data5    = {{SetAndIconLink|{{{set|}}}|{{{name}}}}}
  
 
|label6  = a.k.a.
 
|label6  = a.k.a.
Line 32: Line 32:
  
 
|header8  = Event text
 
|header8  = Event text
|data9    = ''{{{text| }}}''{{#if:{{{text2|}}}|<hr>''{{{text2}}}''}}
+
|data9    = ''{{{text| }}}''{{#if:{{{text2|}}}|<hr style="width:50%;margin-left:25%;text-align:center;" />''{{{text2}}}''}}
  
 
|header10= {{#if:{{{article|}}}{{{combo1|}}}{{{combo2|}}}{{{combo3|}}}{{{combo4|}}}{{{counteredby1|}}}{{{counteredby2|}}}{{{counteredby3|}}}{{{counteredby4|}}}{{{counterto1|}}}{{{counterto2|}}}{{{counterto3|}}}{{{counterto4|}}}|Strategy}}
 
|header10= {{#if:{{{article|}}}{{{combo1|}}}{{{combo2|}}}{{{combo3|}}}{{{combo4|}}}{{{counteredby1|}}}{{{counteredby2|}}}{{{counteredby3|}}}{{{counteredby4|}}}{{{counterto1|}}}{{{counterto2|}}}{{{counterto3|}}}{{{counterto4|}}}|Strategy}}
Line 49: Line 49:
 
}}<includeonly>{{#if:{{{nocats|}}}||
 
}}<includeonly>{{#if:{{{nocats|}}}||
 
[[Category: Cards]]
 
[[Category: Cards]]
[[Category: {{{type1|Event}}} cards]]
+
[[Category: Event cards]]
{{#if:{{{type2|}}}|[[Category: {{{type2}}} cards]]}}
+
{{#if:{{{type3|}}}|[[Category: {{{type3}}} cards]]}}
+
{{#if:{{{type4|}}}|[[Category: {{{type4}}} cards]]}}
+
 
{{#if:{{Card2cost|{{{name|}}}}}|[[Category:Cards costing {{Card2cost|{{{name|}}}}}]]}}
 
{{#if:{{Card2cost|{{{name|}}}}}|[[Category:Cards costing {{Card2cost|{{{name|}}}}}]]}}
[[Category: {{{set|{{Card2set|{{{name}}}}}}}} cards]]
+
[[Category: {{{set|{{#switch:{{lc:{{Card2set|{{{name}}}}}}}|menagerie (expansion)=Menagerie|plunder (expansion)=Plunder|#default={{Card2set|{{{name}}}}}}}}}} cards]]
 
{{#if:{{{illustrator|}}}|[[Category: Cards illustrated by {{{illustrator}}}]]}}
 
{{#if:{{{illustrator|}}}|[[Category: Cards illustrated by {{{illustrator}}}]]}}
 
{{#if:{{{illustrator2|}}}|[[Category: Cards illustrated by {{{illustrator2}}}]]}}
 
{{#if:{{{illustrator2|}}}|[[Category: Cards illustrated by {{{illustrator2}}}]]}}

Latest revision as of 04:05, 13 December 2022

[[{{{name}}}]]
Card back landscape.jpg
It seems we don't have the card image. Maybe you can upload it?
Info
Cost $
Type Event
Set [[]]link={{{name}}}
Illustrator(s) ?
Event text

Template:Infobox Event/doc

Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox