m copy paste err |
m fix documentation for including a category |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
==Usage== | ==Usage== | ||
''Note: examples have to be displayed using manual HTML to avoid adding this documentation page and itself to the category.'' | |||
<pre> | <pre> | ||
{{race rule|The reason it is a race rule}} | {{race rule|The reason it is a race rule}} | ||
</pre> | </pre> | ||
{{race rule|The reason it is a race rule}} | <div class="tag-header noprint bg-danger text-danger race-rule"><p><b>This is an important racing rule!</b> If you do not follow it, you may be disqualified from a race.</p><p style="font-size:smaller"><b>Reason</b>: The reason it is a race rule</p><div style="clear: both;"></div></div> | ||
<pre> | |||
{{race rule|The reason it is a race rule|rule=The important rule}} | |||
</pre> | |||
<div class="tag-header noprint bg-danger text-danger race-rule"><p><b>This is an important racing rule!</b> If you do not follow it, you may be disqualified from a race.</p><p style="font-size:smaller"><b>The important rule</b>: The reason it is a race rule</p><div style="clear: both;"></div></div> | |||
===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> | |||
<div class="tag-header noprint bg-danger text-danger race-rule"><p><b>This is an important racing rule!</b> If you do not follow it, you may be disqualified from a race.</p><p style="font-size:smaller"><b>The important rule</b>: The reason it is a race rule. This Rule = Important</p><div style="clear: both;"></div></div> |
Latest revision as of 11:11, 27 February 2022
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}}
{{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 1=
{{race rule|1=The reason it is a race rule. This Rule = Important|rule=The important rule}}