Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Race rule: Difference between revisions

Template page
add rule to replace "Reason" prefix if specified
m fix if
Line 3: Line 3:
|shorttext=This is an important racing rule!
|shorttext=This is an important racing rule!
|description=If you do not follow it, you may be disqualified from a race.
|description=If you do not follow it, you may be disqualified from a race.
|smalltext={{#if:{{{1|}}}|'''{{#if{{{rule|}}}|{{{rule|}}}|Reason}}''': {{{1|{{{reason|}}}}}}|No reason or rule has been specified. If you know it, please add it using the ''first'' parameter for the {{t|race rule}} template on this page.}}
|smalltext={{#if:{{{1|}}}|'''{{#if:{{{rule|}}}|{{{rule|}}}|Reason}}''': {{{1|{{{reason|}}}}}}|No reason or rule has been specified. If you know it, please add it using the ''first'' parameter for the {{t|race rule}} template on this page.}}
}}<noinclude>
}}<noinclude>
{{Documentation}}[[Category:Header box templates]]</noinclude>
{{Documentation}}[[Category:Header box templates]]</noinclude>

Revision as of 21:59, 9 February 2022

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

No reason or rule has been specified. If you know it, please add it using the first parameter for the {{race rule}} template on this page.

This page has been transcluded from Template:Race rule/Documentation.


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

Usage

Note: examples have to be displayed using manual HTML to avoid adding this documentation page and itself to the category.

{{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