Thread:AxlPrototype/@comment-25542469-20180610135240/@comment-25077685-20180611084444

There are some parameters built-in with the wikia that helps you to configure a template's property. Most of them look like this:. In the example of Template:GB, it uses the. Another example is Template:Rescue.

This is how it works. For example, with Template:Spellbind, you use it by typing with X being the number of cards bound. When you include a value behind a template's name, you tell the template to display things differently according to the custom value you put in. The Spellbind template uses a structure like this:

The will check the value after a semicolon. In this case, checks for the 1st value of the template:. In another example, checks for the 2nd value of the template:.

Once the knows what to look for, it compares the value you give it to one of the lines under it, separated by |. In the example structure, it checks if you input 1. If so, the text will display "one". If you input 2, the text will display "two". And so on. If you input something on the left of the euqal sign '=', it'll display whatever on the right side of the same line. If it doesn't find any match (either you input an invalid value, or the value is left blank), it'll display the #default line.

So, if you put the in between other things like the example below:

This ability is active when you have or more cards in your bind zone.

Then, you'll have a template that function like this:

and give "This ability is active when you have one or more cards in your bind zone." because the 1st value wasn't specified. Therefore, it calls for |#default display, which is #default = one.

and give "This ability is active when you have two or more cards in your bind zone." because the 1st value is set to 2. Therefore, it calls for |2 display, which is 2 = two.

gives "This ability is active when you have one or more cards in your bind zone." because the 1st value is set to E. There are no equation lines telling the parameter what to do when an E is input. It doesn't recognize this value. Therefore, it calls for |#default display, which is #default = one.