Module:Cards/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 14: Line 14:
<code><entry></code> is either a card name or type.<br>
<code><entry></code> is either a card name or type.<br>
Types include: <code>Boss Pet NonPetCompanion Companion Item Shade Clunker EnemyClunker Enemy Miniboss Boss ShopItem InventorsHut HotSpring</code>
Types include: <code>Boss Pet NonPetCompanion Companion Item Shade Clunker EnemyClunker Enemy Miniboss Boss ShopItem InventorsHut HotSpring</code>
Append a tribename before the type to filter cards exclusive to that tribe, eg <code>SnowdwellersCompanion</code>


<code><entry_list></code> is a list of valid <code><entry></code> values, input as multiple parameters, i.e. <code><entry1>|<entry2>|... etc.</code>.
<code><entry_list></code> is a list of valid <code><entry></code> values, input as multiple parameters, i.e. <code><entry1>|<entry2>|... etc.</code>.
Line 31: Line 33:
<code><template_params></code> is a list of template parameters input as multiple parameters, i.e. <code><p1>=<data1>|<p2>=<data2>|... etc.</code>.
<code><template_params></code> is a list of template parameters input as multiple parameters, i.e. <code><p1>=<data1>|<p2>=<data2>|... etc.</code>.
These parameters are the same parameters used by [[Template:Infobox]].
These parameters are the same parameters used by [[Template:Infobox]].
Parameters without inputs are autofilled with fitting module data, to the best of its ability.
==Itembox==
Usage: <code><nowiki>{{#invoke:Cards|Itembox|<card>|<template_params>}}</nowiki></code>
Returns the itembox of the card.
<code><template_params></code> is a list of template parameters input as multiple parameters, i.e. <code><p1>=<data1>|<p2>=<data2>|... etc.</code>.
These parameters are the same parameters used by [[Template:Itembox]].
Parameters without inputs are autofilled with fitting module data, to the best of its ability.
Parameters without inputs are autofilled with fitting module data, to the best of its ability.


1,291

edits

Navigation menu