Template:HorizontalRuleImage: Difference between revisions
Jump to navigation
Jump to search
some text and things
other text and things
some text and things
other text and things
No edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="nomobile" style="user-select: none;">[[File:{{#switch:{{{2|}}}|ns=bg3_content_hr_no_shadow.png|bg3_content_hr.png}}|{{{1|460}}}px|center|frameless|link=]]</div></includeonly><noinclude> | <includeonly><div class="bg3wiki-hrule nomobile" style="user-select: none;">[[File:{{#switch:{{{2|}}}|ns=bg3_content_hr_no_shadow.png|bg3_content_hr.png}}|{{{1|460}}}px|center|frameless|link=]]</div></includeonly><noinclude>{{Documentation|content= | ||
Insert a center-aligned horizontal rule image, similar to a normal HR (wiki markup: {{code|<nowiki>----</nowiki>}}), but more subtle. Useful when you need to visually break apart some content without creating a new heading/subheading. | Insert a center-aligned horizontal rule image, similar to a normal HR (wiki markup: {{code|<nowiki>----</nowiki>}}), but more subtle. Useful when you need to visually break apart some content without creating a new heading/subheading. | ||
{{Template demo | |||
< | | style = list | ||
| caption 1 = Default implementation | |||
| <nowiki>some text and things | |||
{{HorizontalRuleImage}} | {{HorizontalRuleImage}} | ||
other text and things</ | other text and things</nowiki> | ||
| caption 2 = Specify a set width: | |||
| <nowiki>some text and things | |||
< | |||
{{HorizontalRuleImage|300}} | {{HorizontalRuleImage|300}} | ||
other text and things</ | other text and things</nowiki> | ||
| caption 3 = Remove the shadow: | |||
| <nowiki>{{HorizontalRuleImage|300|ns}}</nowiki> | |||
}} | |||
Remove shadow | |||
< | |||
}} | |||
[[Category:Templates]] | |||
</noinclude> |
Latest revision as of 12:09, 19 January 2025
Template documentation
Insert a center-aligned horizontal rule image, similar to a normal HR (wiki markup: ----
), but more subtle. Useful when you need to visually break apart some content without creating a new heading/subheading.
Default implementation
Markupsome text and things {{HorizontalRuleImage}} other text and thingsRenders as
some text and things
![Bg3 content hr.png](/w/images/b/be/Bg3_content_hr.png)
Specify a set width:
Markupsome text and things {{HorizontalRuleImage|300}} other text and thingsRenders as
some text and things
![Bg3 content hr.png](/w/images/thumb/b/be/Bg3_content_hr.png/300px-Bg3_content_hr.png)
Remove the shadow:
Markup{{HorizontalRuleImage|300|ns}}Renders as
![Bg3 content hr no shadow.png](/w/images/thumb/c/cc/Bg3_content_hr_no_shadow.png/300px-Bg3_content_hr_no_shadow.png)