Template:Infobox Card/doc: Difference between revisions

Jump to navigation Jump to search
replace less than and greater than with html characters to prevent them from being processed
No edit summary
(replace less than and greater than with html characters to prevent them from being processed)
Line 1: Line 1:
<nowiki><onlyinclude></nowiki>
;Description
;Description
:This template is display an infobox about a game card.
:This template is display an infobox about a game card.
Line 16: Line 15:
:The longterm idea is to be able transclude pages which use the Infobox card template and specify an section-argument to get a specific piece of information.
:The longterm idea is to be able transclude pages which use the Infobox card template and specify an section-argument to get a specific piece of information.
:E.g. if someone want to know the buy cost of an the lucky charm he/she can just add: <nowiki>{{:Lucky Charm|section=buy}}</nowiki>
:E.g. if someone want to know the buy cost of an the lucky charm he/she can just add: <nowiki>{{:Lucky Charm|section=buy}}</nowiki>
:For this to work the actual template has to be enclosed in <nowiki><onlyinclude></nowiki> tags and the section argument within the parameters in <nowiki><includeonly></nowiki> tags. See the below examples.
:For this to work the actual template has to be enclosed in <nowiki>&lt;onlyinclude&gt;</nowiki> tags and the section argument within the parameters in <nowiki>&lt;includeonly&gt;</nowiki> tags. See the below examples.
;Syntax, all possible arguments in alphabetical order:
;Syntax, all possible arguments in alphabetical order:
<pre>
<pre>
<onlyinclude>{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |act =
  |act =
  |archetype =
  |archetype =
Line 36: Line 35:
  |range =
  |range =
  |reliccounterpart =
  |reliccounterpart =
<includeonly>|section={{{section|synopsis}}}</includeonly>
&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text =
  |text =
  |threatcost =
  |threatcost =
Line 43: Line 42:
  |worn =
  |worn =
  |xpcost =
  |xpcost =
}}</onlyinclude>
}}&lt;/onlyinclude&gt;
</pre>
</pre>


;Usage for an overlord card:
;Usage for an overlord card:
<pre>
<pre>
<onlyinclude>{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |archetype    = Overlord
  |archetype    = Overlord
  |cardtype      = Overlord Card
  |cardtype      = Overlord Card
Line 55: Line 54:
  |name          = <required>
  |name          = <required>
  |overlordclass = <required>
  |overlordclass = <required>
<includeonly>|section={{{section|synopsis}}}</includeonly>
&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text          = <optional, but highly recommended>
  |text          = <optional, but highly recommended>
  |xpcost        = <required>
  |xpcost        = <required>
}}</onlyinclude>
}}&lt;/onlyinclude&gt;
</pre>
</pre>


;Usage for a plot card:
;Usage for a plot card:
<pre>
<pre>
<onlyinclude>{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |archetype      = Overlord
  |archetype      = Overlord
  |cardtype      = Plot Card
  |cardtype      = Plot Card
Line 72: Line 71:
  |plotcardnumber = <required>
  |plotcardnumber = <required>
  |plotdeck      = <required>
  |plotdeck      = <required>
<includeonly>|section={{{section|synopsis}}}</includeonly>
&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text          = <optional, but highly recommended>
  |text          = <optional, but highly recommended>
  |threatcost    = <required>
  |threatcost    = <required>
}}</onlyinclude>
}}&lt;/onlyinclude&gt;
</pre>
</pre>


;Usage for a skill:
;Usage for a skill:
<pre>
<pre>
<onlyinclude>{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |archetype  = <required: Healer, Mage, Warrior, Scout>
  |archetype  = <required: Healer, Mage, Warrior, Scout>
  |cardtype  = Skill
  |cardtype  = Skill
Line 88: Line 87:
  |name      = <required>
  |name      = <required>
  |playcost  = <required>
  |playcost  = <required>
<includeonly>|section={{{section|synopsis}}}</includeonly>
&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text      = <optional, but highly recommended>
  |text      = <optional, but highly recommended>
  |xpcost    = <required>
  |xpcost    = <required>
}}</onlyinclude>
}}&lt;/onlyinclude&gt;
</pre>
</pre>


;Usage for starting gear:
;Usage for starting gear:
<pre>
<pre>
<onlyinclude>{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |archetype  = <required, Healer, Mage, Warrior, Scout>
  |archetype  = <required, Healer, Mage, Warrior, Scout>
  |cardtype  = Item
  |cardtype  = Item
Line 105: Line 104:
  |name      = <required>
  |name      = <required>
  |range      = <optional, if applicable>
  |range      = <optional, if applicable>
<includeonly>|section={{{section|synopsis}}}</includeonly>
&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text      = <optional, but highly recommended>
  |text      = <optional, but highly recommended>
  |trait      = <optional, if applicable>
  |trait      = <optional, if applicable>
  |trait2    = <optional, if applicable>
  |trait2    = <optional, if applicable>
  |worn      = <required>
  |worn      = <required>
}}</onlyinclude>
}}&lt;/onlyinclude&gt;
</pre>
</pre>


;Usage for shop gear:
;Usage for shop gear:
<pre>
<pre>
<onlyinclude>{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |act        = <required>
  |act        = <required>
  |buy        = <required>
  |buy        = <required>
Line 124: Line 123:
  |name      = <required>
  |name      = <required>
  |range      = <optional, if applicable>
  |range      = <optional, if applicable>
<includeonly>|section={{{section|synopsis}}}</includeonly>
&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text      = <optional, but highly recommended>
  |text      = <optional, but highly recommended>
  |trait      = <optional, if applicable>
  |trait      = <optional, if applicable>
  |trait2    = <optional, if applicable>
  |trait2    = <optional, if applicable>
  |worn      = <required>
  |worn      = <required>
}}</onlyinclude>
}}&lt;/onlyinclude&gt;
</pre>
</pre>


;Usage for Hero relics:
;Usage for Hero relics:
<pre>
<pre>
<onlyinclude>{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |cardtype        = Item
  |cardtype        = Item
  |dice            = <optional, if applicable>
  |dice            = <optional, if applicable>
Line 143: Line 142:
  |range            = <optional, if applicable>
  |range            = <optional, if applicable>
  |reliccounterpart = <required>
  |reliccounterpart = <required>
<includeonly>|section={{{section|synopsis}}}</includeonly>
&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text            = <optional, but highly recommended>
  |text            = <optional, but highly recommended>
  |trait            = <optional, if applicable>
  |trait            = <optional, if applicable>
  |trait2          = <optional, if applicable>
  |trait2          = <optional, if applicable>
  |worn            = <optional, if applicable>
  |worn            = <optional, if applicable>
}}</onlyinclude>
}}&lt;/onlyinclude&gt;
</pre>
</pre>


;Usage for Overlord relics:
;Usage for Overlord relics:
<pre>
<pre>
<onlyinclude>{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |archetype        = <required> Overlord
  |archetype        = <required> Overlord
  |cardtype        = Overlord Relic
  |cardtype        = Overlord Relic
Line 161: Line 160:
  |questreward      = <required, link to the quest where the relic can be gained>
  |questreward      = <required, link to the quest where the relic can be gained>
  |reliccounterpart = <required>
  |reliccounterpart = <required>
<includeonly>|section={{{section|synopsis}}}</includeonly>
&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text            = <optional, but highly recommended>
  |text            = <optional, but highly recommended>
}}</onlyinclude>
}}&lt;/onlyinclude&gt;
</pre>
</pre>

Navigation menu