Difference between revisions of "Template:Objective"

From mtgpq wiki
Jump to: navigation, search
Line 12: Line 12:
 
* <code><nowiki>{{{4}}}</nowiki></code>: The number of runes for meeting the objective.  (Default: empty)
 
* <code><nowiki>{{{4}}}</nowiki></code>: The number of runes for meeting the objective.  (Default: empty)
 
* <code><nowiki>{{{5}}}</nowiki></code>: Non-ribbon, non-runes reward for the objective.  (Default: empty)
 
* <code><nowiki>{{{5}}}</nowiki></code>: Non-ribbon, non-runes reward for the objective.  (Default: empty)
 +
* <code><nowiki>{{{bug}}}</nowiki></code>: The description of a bug affecting this objective, if any.  (Default: empty)
  
 
== Example ==
 
== Example ==
Line 19: Line 20:
 
{{Objective|Win||5|200}}
 
{{Objective|Win||5|200}}
 
{{Objective|Spell Caster|5|5}}
 
{{Objective|Spell Caster|5|5}}
{{Objective|Weakstone|4|param2=3|5}}
+
{{Objective|Weakstone|4|param2=3|5|bug=Bug text}}
 
|}
 
|}
 
</nowiki></pre>
 
</nowiki></pre>
Line 27: Line 28:
 
{{Objective|Win||5|200}}
 
{{Objective|Win||5|200}}
 
{{Objective|Spell Caster|5|5}}
 
{{Objective|Spell Caster|5|5}}
{{Objective|Weakstone|4|param2=3|5}}
+
{{Objective|Weakstone|4|param2=3|5|bug=Bug text}}
 
|}
 
|}
 
</noinclude><includeonly>
 
</noinclude><includeonly>
Line 140: Line 141:
 
| Zendikari = {{Ability|cast|Cast}} '''{{{2}}}''' or more Creatures with any of these subtypes: Elemental, Elf.
 
| Zendikari = {{Ability|cast|Cast}} '''{{{2}}}''' or more Creatures with any of these subtypes: Elemental, Elf.
 
| {{{1}}} '''{{{2|}}}'''
 
| {{{1}}} '''{{{2|}}}'''
}}
+
}}{{#if:{{{bug|}}}|<br>{{Bug|{{{bug}}}}}}}
 
|}{{#if:{{{3|}}}{{{4|}}}{{{5|}}}|</td> <!-- /td solves an otherwise unavoidable line break -->
 
|}{{#if:{{{3|}}}{{{4|}}}{{{5|}}}|</td> <!-- /td solves an otherwise unavoidable line break -->
 
{{!}} {{nowrap|{{#if:{{{3|}}}|{{Ribbons|{{{3}}}}}}}<!--
 
{{!}} {{nowrap|{{#if:{{{3|}}}|{{Ribbons|{{{3}}}}}}}<!--
 
-->{{#if:{{{4|}}}|{{#if:{{{3}}}|''' · '''}}{{Runes|{{{4}}}}}}}}}<!--
 
-->{{#if:{{{4|}}}|{{#if:{{{3}}}|''' · '''}}{{Runes|{{{4}}}}}}}}}<!--
 
-->{{#if:{{{5|}}}|{{#if:{{{3}}}|''' · '''}}{{{5|}}}}}}}</includeonly>
 
-->{{#if:{{{5|}}}|{{#if:{{{3}}}|''' · '''}}{{{5|}}}}}}}</includeonly>

Revision as of 07:41, 22 February 2020

The Objective template displays a single objective within an objectives table.

Parameters

Parameters are:

  • {{{1}}}: The name of the objective (e.g. "Speed").
  • {{{2}}}: The first variable in the objective definition (e.g. "3", for win within 3 turns).
  • {{{param2}}}: The second variable in the objective definition (Default: empty).
  • {{{param3}}}: The third variable in the objective definition (Default: empty).
  • {{{3}}}: The number of ribbons for meeting the objective. (Default: empty)
  • {{{4}}}: The number of runes for meeting the objective. (Default: empty)
  • {{{5}}}: Non-ribbon, non-runes reward for the objective. (Default: empty)
  • {{{bug}}}: The description of a bug affecting this objective, if any. (Default: empty)

Example

The following shorthand:

{{Objective table header}}
{{Objective|Win||5|200}}
{{Objective|Spell Caster|5|5}}
{{Objective|Weakstone|4|param2=3|5|bug=Bug text}}
|}

Produces:

Objectives Reward
Win the fight!  Win the fight against your opponent.
5Ribbons · 200 Mana Runes
Spell Caster:  Cast 5 or more spells during a single fight.
5Ribbons
Weakstone:  Cast 4 or more creatures with power 3 or less.
Bug: Bug text
5Ribbons