Template:Race rule/Documentation: Difference between revisions

Template page
(update doc)
m (→‎Usage: add how to use equals)
Line 13: Line 13:


{{race rule|The reason it is a race rule|rule=The important rule}}
{{race rule|The reason it is a race rule|rule=The important rule}}
===Need to Use Equals===
If the reason you are including includes an equals sign, the easiest way to keep the template working is to explicitly number the unnamed parameter with <code>1=</code>
<pre>
{{race rule|1=The reason it is a race rule. This Rule = Important|rule=The important rule}}
</pre>
{{race rule|1=The reason it is a race rule. This Rule = Important|rule=The important rule}}

Revision as of 19:31, 13 February 2022

Marks a section of a page as a racing rule that if not followed will result in disqualification in a race.

Usage

{{race rule|The reason it is a race rule}}

This is an important racing rule! If you do not follow it, you may be disqualified from a race.

Reason: The reason it is a race rule

{{race rule|The reason it is a race rule|rule=The important rule}}

This is an important racing rule! If you do not follow it, you may be disqualified from a race.

The important rule: The reason it is a race rule

Need to Use Equals

If the reason you are including includes an equals sign, the easiest way to keep the template working is to explicitly number the unnamed parameter with 1=

{{race rule|1=The reason it is a race rule. This Rule = Important|rule=The important rule}}

This is an important racing rule! If you do not follow it, you may be disqualified from a race.

The important rule: The reason it is a race rule. This Rule = Important