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
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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>
<includeonly>
<div class="scene-break" style="
text-align:{{{align|center}}};
color:{{{color|#ffffff}}};
font-family:var(--font-family-header-custom), serif;
font-size: 1.4em;
margin: 1em auto;
{{#ifeq: {{{glow|yes}}} | yes | text-shadow: 0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#ccc}}}; | text-shadow: none;}}
">
⸻⸻⸻⸻
{{#if: {{{image|}}}
| [[File:{{{image}}}|{{{imagesize|32px}}}|baseline]]
| ✦
}}
⸻⸻⸻⸻
</div>
</includeonly>

<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"color": {
"image": {
"label": "Text Color",
"label": "Image",
"type": "string",
"type": "wiki-file-name",
"description": "Replaces the ✦ with an image (provide filename)",
"default": "#ffffff"
"suggested": true
},
},
"glow": {
"imagesize": {
"label": "Glow Effect",
"type": "string",
"label": "Image size",
"default": "yes",
"type": "string",
"default": "30px"
"description": "Enable glow around text (yes/no)"
},
},
"glowcolor": {
"glow": {
"label": "Glow Color",
"label": "Glow",
"type": "string",
"type": "boolean",
"description": "If the lines should glow",
"default": "#ccc",
"default": "false"
"description": "Color of the glow (if enabled)"
},
},
"align": {
"color": {
"label": "Text Alignment",
"label": "Color",
"type": "string",
"type": "string",
"default": "center",
"default": "var(--color-amaranth-legacy-scope)"
},
"description": "left, center, or right"
"glowcolor": {
},
"label": "Glow color",
"image": {
"label": "Image Name",
"type": "string",
"default": "var(--color-amaranth-legacy-scope)"
"type": "string",
},
"description": "Image to appear in place of the ✦"
"linesize": {
},
"label": "Line height",
"imagesize": {
"label": "Image Size",
"type": "string",
"type": "string",
"default": "1px"
}
"default": "32px",
},
"description": "Size of image if one is used"
"description": "Creates a stylized scene or section break using glowing lines and a centered symbol or image, fully customizable including line size.",
}
"format": "inline"
},
"description": "A stylish line-based scene break with optional image replacing the center star.",
"format": "inline"
}
}
</templatedata>
</templatedata>
==Examples==
{{Sequence/Scene Break|image=Amaranth.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