Template:Infobox 2CardCombo

From DominionStrategy Wiki
(Difference between revisions)
Jump to: navigation, search
(added text for category sorting purposes)
 
(One intermediate revision by one user not shown)
Line 21: Line 21:
  
 
|label4  = Type
 
|label4  = Type
|data4    = {{#if:{{{type|}}}|[[{{{type|}}}]]}}
+
|data4    = {{#if:{{{type|}}}|[[{{{type|}}}{{#ifeq:{{lc:{{{type|}}}}}|rush|_(strategy){{!}}{{{type}}}}}]]}}
 
}}<includeonly>{{#if:{{{nocats|}}}||
 
}}<includeonly>{{#if:{{{nocats|}}}||
[[Category: Combo|{{{name1}}} and {{{name2}}}]]
+
[[Category: Combo]]
[[Category: Combos with {{{set1}}} cards|{{{name1}}} and {{{name2}}}]]
+
[[Category: Combos with {{{set1}}} cards]]
[[Category: Combos with {{{set2}}} cards|{{{name1}}} and {{{name2}}}]]
+
[[Category: Combos with {{{set2}}} cards]]
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
<div style="clear:both"></div>
 
<div style="clear:both"></div>
 
{{doc}}
 
{{doc}}
 
</noinclude>
 
</noinclude>

Latest revision as of 05:09, 15 December 2022

[[{{{name1}}}]] / [[{{{name2}}}]]
Card back.jpg Card back.jpg
Info
Set(s) [[{{{set1}}}]]

This template may be used to summarize information about a 2-card combo at the top of the page.

Contents

[edit] Usage

The infobox may be added by pasting the blank templates below into an article and filling in the parameters. For a description of the parameters , see below.

[edit] Blank template with basic parameters

{{Infobox 2CardCombo
| name1       =
| name2       =
| set1        =
| set2        =
| type        =
}}

[edit] Blank template with all parameters

{{Infobox 2CardCombo
| bodystyle   =
| namestyle   =
| imagestyle  =
| headerstyle =
| labelstyle  =
| datastyle   =

| name1       =
| name2       =
| set1        =
| set2        =
| type        =

| nocats      =
}}

[edit] Parameters

[edit] Required

name1, name2 
Names of the cards.
set1, set2 
Name of the expansions the cards are in or "Base". It is recommended to list sets in chronological order instead of following the order of the cards.

[edit] Optional

type 
Type of the combo
nocats 
If this is not whitespace, categories will not be added. Useful when showing info about the combo on related articles.

[edit] Style rules

bodystyle 
Style rules applied to the whole box.
namestyle 
Style rules applied to the name of the card.
imagestyle 
Style rules applied to the image cells.
headerstyle 
Style rules applied to the headers.
labelstyle 
Style rules applied to the labels.
datastyle 
Style rules applied to the data cells.

[edit] Examples

Black Market / Tactician
Black Market.jpg Tactician.jpg
Info
Set(s) Seaside / Promo
{{Infobox 2CardCombo
|name1 = Black Market
|name2 = Tactician

|set1 = Seaside
|set2 = Promo
}}
King's Court / Bridge
King's Court.jpg Bridge.jpg
Info
Set(s) Intrigue / Prosperity
Type Megaturn
{{Infobox 2CardCombo
|name1 = King's Court
|name2 = Bridge

|set1 = Intrigue
|set2 = Prosperity

|type = Megaturn
}}
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox