Template:HorizontalRuleImage: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(new template for inserting HR image)
 
No edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>[[File:bg3_content_hr.png|460px|center|frameless|link=]]</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>
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.


Line 12: Line 12:
{{HorizontalRuleImage}}
{{HorizontalRuleImage}}
other text and things
other text and things
----
Set width like this:
<pre>some text and things
{{HorizontalRuleImage|300}}
other text and things</pre>
Result:
some text and things
{{HorizontalRuleImage|300}}
other text and things
----
Remove shadow like this:
<pre>{{HorizontalRuleImage|300|ns}}</pre>
Result:
{{HorizontalRuleImage|300|ns}}
----
----
''See the [[Arcane Trickster]] article for an example usage of this template in the wild.''</noinclude>
''See the [[Arcane Trickster]] article for an example usage of this template in the wild.''</noinclude>

Latest revision as of 04:21, 25 February 2024

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.

Usage:

some text and things
{{HorizontalRuleImage}}
other text and things

Result:

some text and things

Bg3 content hr.png

other text and things


Set width like this:

some text and things
{{HorizontalRuleImage|300}}
other text and things

Result:

some text and things

Bg3 content hr.png

other text and things


Remove shadow like this:

{{HorizontalRuleImage|300|ns}}

Result:

Bg3 content hr no shadow.png

See the Arcane Trickster article for an example usage of this template in the wild.