Template:Card text builder/doc

From Hearthstone Wiki
Jump to navigation Jump to search

This template can be used to render a card's text based on its cardTextBuilderType it has.

Usage[edit source]

This template is mainly used in Template:CustomCard template. You can also use

{{Card text builder
 |text=
 |type=
 |tag2=
 |tag3=
 |tag2889=
 |tag2919=
 |tag2920=
 |tag2921=
 |trim=true/false/NULL
}}

Parameters[edit source]

Parameters used in Template:Card text builder.

Template parameters

ParameterDescriptionTypeStatus
Texttext

Card text to render. If you don't specify this, the template will use {{#var:textInHand}} from Card table to render instead.

Example
[x]Draw_@ |4(card, cards).
Stringrequired
Builder typetype

Card text builder type. If you don't specify this, the template will use {{#var:cardTextBuilderType}} from Card table to render instead.

Example
26
Numberrequired
TAG_SCRIPT_NUM_1tag2

Value to replace the token @ or {0}, depending on the builder type. If you don't specify this, the template will use {{#var:tag2}} from CardTag table instead.

Default
0
Numbersuggested
TAG_SCRIPT_NUM_2tag3

Value to replace the token {1}, depending on the builder type. If you don't specify this, the template will use {{#var:tag3}} from CardTag table instead.

Numbersuggested
TAG_SCRIPT_NUM_3tag2889

Value to replace the token {2}, depending on the builder type. If you don't specify this, the template will use {{#var:tag2889}} from CardTag table instead.

Numbersuggested
TAG_SCRIPT_NUM_4tag2919

Value to replace the token {3}, depending on the builder type. If you don't specify this, the template will use {{#var:tag2919}} from CardTag table instead.

Numbersuggested
TAG_SCRIPT_NUM_5tag2920

Value to replace the token {4}, depending on the builder type. If you don't specify this, the template will use {{#var:tag2920}} from CardTag table instead.

Numbersuggested
TAG_SCRIPT_NUM_5tag2921

Value to replace the token {5}, depending on the builder type. If you don't specify this, the template will use {{#var:tag2921}} from CardTag table instead.

Numbersuggested
Returns trim texttrim

True if you want this template to return trimmed text (without break lines), false if you want it to return just rendered text, or leave this empty if you don't want it to return anything.

Default
Booleanoptional

Functionality[edit source]

cardTextBuilderType
  • 1: For cards that summon Jade Golem. {1} {0} will be stats of Jade Golem, @ is a delimiter to separate game text and collection text.
  • 2: For cards that summon Jade Golem a certain condition is met/triggers. {1} {0} will be stats of Jade Golem, @ is a delimiter to separate game text and collection text.
  • 3: For token cards generated Kazakus and Kazakus, Golem Shaper; and Zombeast.
  • 4: @ is a delimiter. The first string will be used in their text, while the second string will only be used with Zombeast building hps or Potion crafting.
  • 5: Currently only LOOTA_817 and ULDA_301 have them. @ is a delimiter. The first string is the collection text, while the second is the game text, with {0} as the token that can be replaced with <number> times.
  • 6: @ is a delimiter. The first string will be used as their first text, the second string will replace the first string when a certain condition is triggered. (So far, only  Spitelash Siren and Steady Shot Hero Powers have this builder type)
  • 7: @ is both a delimiter and a dynamic number.
    • As delimiter, it usually appears right after .. This is commonly seen in cards that integrate trackers on their card text (like  The One-Amalgam Band and  Soulciologist Malicia).
    • As number, If TAG_SCRIPT_DATA_NUM_1 (tag2) is defined, it will use its value. Otherwise, the default of @ will be 0.
  • 8: Only used for Galakrond hero cards. @ is the tracking string.
  • 9: Only used for TB_MammothParty_hp001 (42840). {0} is the dynamic number. TAG_SCRIPT_DATA_NUM_1 (tag2).
  • 10: @ is a delimiter and {0} is the dynamic number. {0} changes based on the player's performance.
  • 11: @ is a delimiter and {0} is the dynamic number. {0} changes based on the card's condition and game state.
  • 12: Don't know
  • 13: Used for Spellstones. @ is a delimiter. The first string is fixed, the second string can be changed, but what we see in the records is the intial string.
  • 14: Don't know
  • 15: Only used for ICC_828e (Stitched), an enchantment. {0} and {1} appear to be card name placeholders.
  • 16: Secret card text. @ is a delimiter. The first string is the collection text/what opponent can only see. The second and third strings will replace the first string for player only depending on the choice they made.
  • 17: Don't know
  • 18: REFERENCE_CREATOR_ENTITY. {0} will be replaced with the card name that grants this card.
  • 19: REFERENCE_SCRIPT_DATA_NUM_1_ENTITY. {0} will be replaced with the card name that player chose from another card.
  • 20: Don't know
  • 21: Don't know
  • 22: $ token numbers will be affected by Spell Damage. Only used for minions.
  • 23: {0} will be replaced with the card name that player chose from another card.
  • 24: Secret card text. @ is a delimiter and {0} is the placeholder for a card name that the player chose depending on the effects they used.
  • 25: Countdown text. @ is the dynamic number.
  • 26: {0} and {1} are dynamic numbers. Usually, these cards have TAG_SCRIPT_DATA_NUM_1 and TAG_SCRIPT_DATA_NUM_2 pre-defined.
  • 27: POWERED_UP. This might suggest TargetArrowText is changed, with @ as delimiter.
  • 28: @ is a delimiter. The first string is default string. The rest of strings replace it when the player equips certain equipment cards.
  • 29: @ is a delimiter. The first string is default string. The second string will replace it depending on the game state.
  • 30: Same as 19, but with additional {1}.