Template:HorizontalRuleImage: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
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.


Usage:
{{Template demo
<pre>some text and things
| style = list
| caption 1 = Default implementation
| <nowiki>some text and things
{{HorizontalRuleImage}}
{{HorizontalRuleImage}}
other text and things</pre>
other text and things</nowiki>
 
| caption 2 = Specify a set width:
Result:
| <nowiki>some text and things
 
some text and things
{{HorizontalRuleImage}}
other text and things
----
Set width like this:
<pre>some text and things
{{HorizontalRuleImage|300}}
{{HorizontalRuleImage|300}}
other text and things</pre>
other text and things</nowiki>
 
| caption 3 = Remove the shadow:
Result:
| <nowiki>{{HorizontalRuleImage|300|ns}}</nowiki>
 
}}
some text and things
{{HorizontalRuleImage|300}}
other text and things
----
Remove shadow like this:
<pre>{{HorizontalRuleImage|300|ns}}</pre>
 
Result:


{{HorizontalRuleImage|300|ns}}
}}
----
[[Category:Templates]]
''See the [[Arcane Trickster]] article for an example usage of this template in the wild.''</noinclude>
</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

Markup
some text and things
{{HorizontalRuleImage}}
other text and things
Renders as
some text and things
Bg3 content hr.png
other text and things

Specify a set width:

Markup
some text and things
{{HorizontalRuleImage|300}}
other text and things
Renders as
some text and things
Bg3 content hr.png
other text and things

Remove the shadow:

Markup
{{HorizontalRuleImage|300|ns}}
Renders as
Bg3 content hr no shadow.png