Difference between revisions of "Template:Hrule"
From Pathfinder Wiki
(Created page with "<noinclude> This template draws horizontal rules across the page. ;lines: The number of horizontal lines to draw (defaults to 3 if not specified) ;spacing: The number of <nowi...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
</noinclude> | </noinclude> | ||
− | <includeonly> | + | <includeonly>{{#vardefine:spacing|{{#switch:{{{spacing}}} |
− | {{#vardefine:spacing|{{#switch:{{{spacing}}} | ||
|1 | |1 | ||
|single=<br /> | |single=<br /> | ||
Line 18: | Line 17: | ||
|triple=<br /><br /><br/> | |triple=<br /><br /><br/> | ||
|#default=<br /><br /> | |#default=<br /><br /> | ||
− | }}}}{{#vardefine: i | 0 }} | + | }}}}{{#vardefine: i | 0 }}{{#while:|{{#ifexpr:{{#var: i }} < {{{lines|3}}} |true}} |
− | {{#while:|{{#ifexpr:{{#var: i }} < {{{lines|3}}} |true}} | ||
| <nowiki /> | | <nowiki /> | ||
{{#var:spacing}} | {{#var:spacing}} | ||
− | - | + | <hr style="width:80%;text-align:right"> |
{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} | {{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} | ||
}} | }} | ||
</includeonly> | </includeonly> |
Latest revision as of 04:47, 11 February 2021
This template draws horizontal rules across the page.
- lines
- The number of horizontal lines to draw (defaults to 3 if not specified)
- spacing
- The number of <br/>'s between each line (defaults to 2). This argument can be specified as the numbers 1,2, or 3, or the words single, double, or triple.
Example
{{Hrule|lines=5|spacing=single}}