Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Hr with image: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Hr with image/styles.css"/>{{#if: {{{image|}}}|[[File:{{{image}}}|{{{imagesize|30px}}}|class=hr-with-imagelink=]]|<div class="hr-with-image">✦</div>}}</includeonly><noinclude>
<includeonly><templatestyles src="Hr with image/styles.css"/>{{yesno|{{yesno-yes|{{{glow}}}}}|yes=<templatestyles src="Hr with image/styles-glowing.css"/>}}<div class="hr-with-image" style="{{#if: {{{color|}}}|--template-arg-color:{{{color}}};}}{{#if: {{{glowcolor|}}}|--template-arg-glowcolor:{{{glowcolor}}};}}{{#if: {{{linesize|}}}|--template-arg-linesize:{{{linesize}}};}}">{{#if: {{{image|}}}|[[File:{{{image}}}|{{{imagesize|30px}}}|link=]]|✦}}</div></includeonly><noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"color": {
"image": {
"label": "Line & Icon Color",
"label": "Image",
"type": "string",
"type": "wiki-file-name",
"description": "Replaces the ✦ with an image (provide filename)",
"default": "#df0049"
"suggested": true
},
},
"glow": {
"imagesize": {
"label": "Glow Effect",
"type": "string",
"label": "Image size",
"default": "yes",
"type": "string",
"default": "30px"
"description": "yes or no to apply glow around the line and icon"
},
},
"glowcolor": {
"glow": {
"label": "Glow Color",
"label": "Glow",
"type": "string",
"type": "boolean",
"description": "If the lines should glow",
"default": "#df0049"
"default": "false"
},
},
"align": {
"color": {
"label": "Alignment",
"type": "string",
"label": "Color",
"default": "center",
"type": "string",
"default": "var(--color-amaranth-legacy-scope)"
"description": "Choose left, center, or right alignment"
},
},
"image": {
"glowcolor": {
"label": "Image in Center",
"label": "Glow color",
"type": "string",
"type": "string",
"default": "var(--color-amaranth-legacy-scope)"
"description": "Replaces the ✦ with an image (provide filename)"
},
},
"imagesize": {
"linesize": {
"label": "Image Size",
"label": "Line height",
"type": "string",
"type": "string",
"default": "30px"
"default": "1px"
}
},
},
"linesize": {
"description": "Creates a stylized scene or section break using glowing lines and a centered symbol or image, fully customizable including line size.",
"label": "Line Text Size",
"type": "string",
"format": "inline"
"default": "1.4em",
"description": "Set the size of the line text (e.g. 16px, 2em)"
}
},
"description": "Creates a stylized scene or section break using glowing lines and a centered symbol or image, fully customizable including line size.",
"format": "inline"
}
}
</templatedata>
</templatedata>
==Examples==
{{Sequence/Scene Break|linesize=2.5em|image=(Imagindarium) - Amaranth Scene Break.png}}
{{Hr with image|image=(Imagindarium) - Amaranth Scene Break.png|glow=yes}}
{{Hr with image|color=#aaaaaa}}
{{Hr with image|glow=yes|glowcolor=red}}
{{Hr with image|linesize=10px}}
</noinclude>
</noinclude>

Latest revision as of 16:43, April 2, 2025

Creates a stylized scene or section break using glowing lines and a centered symbol or image, fully customizable including line size.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Imageimage

Replaces the ✦ with an image (provide filename)

Filesuggested
Image sizeimagesize

no description

Default
30px
Stringoptional
Glowglow

If the lines should glow

Default
false
Booleanoptional
Colorcolor

no description

Default
var(--color-amaranth-legacy-scope)
Stringoptional
Glow colorglowcolor

no description

Default
var(--color-amaranth-legacy-scope)
Stringoptional
Line heightlinesize

no description

Default
1px
Stringoptional

Examples

Contents