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
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="scene-break" style="
<div style="
display: flex;
text-align:{{{align|center}}};
align-items: center;
color:{{{color|#ffffff}}};
justify-content: {{{align|center}}};
font-family:var(--font-family-header-custom), serif;
gap: 1em;
margin: 1.5em 0;
font-family: var(--font-family-header-custom), serif;
font-size: 1.4em;
font-size: 1.4em;
color: {{{color|#ffffff}}};
margin: 1em auto;
{{#ifeq: {{{glow|yes}}} | yes | text-shadow: 0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#ccc}}}; | text-shadow: none;}}
{{#ifeq: {{{glow|yes}}} | yes | text-shadow: 0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#ccc}}}; | text-shadow: none;}}
">
">
<span style="flex-grow: 1; border-top: 2px solid {{{color|#ffffff}}}; opacity: 0.7;"></span>
⸻⸻⸻⸻
<span>
{{#if: {{{image|}}}
| [[File:{{{image}}}|{{{imagesize|32px}}}|baseline]]
{{#if: {{{image|}}}
| [[File:{{{image}}}|{{{imagesize|32px}}}|baseline]]
| ✦
| ✦
}}
}}
⸻⸻⸻⸻
</span>
<span style="flex-grow: 1; border-top: 2px solid {{{color|#ffffff}}}; opacity: 0.7;"></span>
</div>
</div>
</includeonly>
</includeonly>
Line 22: Line 27:
"params": {
"params": {
"color": {
"color": {
"label": "Text Color",
"label": "Line and Text Color",
"type": "string",
"type": "string",
"default": "#ffffff"
"default": "#ffffff"
Line 30: Line 35:
"type": "string",
"type": "string",
"default": "yes",
"default": "yes",
"description": "Enable glow around text (yes/no)"
"description": "yes or no for glowing lines and center text"
},
},
"glowcolor": {
"glowcolor": {
"label": "Glow Color",
"label": "Glow Color",
"type": "string",
"type": "string",
"default": "#ccc",
"default": "#ccc"
"description": "Color of the glow (if enabled)"
},
},
"align": {
"align": {
"label": "Text Alignment",
"label": "Alignment",
"type": "string",
"type": "string",
"default": "center",
"default": "center",
Line 45: Line 49:
},
},
"image": {
"image": {
"label": "Image Name",
"label": "Center Image",
"type": "string",
"type": "string",
"description": "Image to appear in place of the ✦"
"description": "Image to use instead of ✦ (no formatting needed)"
},
},
"imagesize": {
"imagesize": {
Line 53: Line 57:
"type": "string",
"type": "string",
"default": "32px",
"default": "32px",
"description": "Size of image if one is used"
"description": "Size of the image (e.g., 24px, 40px)"
}
}
},
},
"description": "A stylish line-based scene break with optional image replacing the center star.",
"description": "A centered scene or section break with lines and an optional image in the center.",
"format": "inline"
"format": "inline"
}
}

Revision as of 14:50, April 2, 2025


A centered scene or section break with lines and an optional image in the center.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Line and Text Colorcolor

no description

Default
#ffffff
Stringoptional
Glow Effectglow

yes or no for glowing lines and center text

Default
yes
Stringoptional
Glow Colorglowcolor

no description

Default
#ccc
Stringoptional
Alignmentalign

left, center, or right

Default
center
Stringoptional
Center Imageimage

Image to use instead of ✦ (no formatting needed)

Stringoptional
Image Sizeimagesize

Size of the image (e.g., 24px, 40px)

Default
32px
Stringoptional