Template:Hr with image: Difference between revisions
Template page
More actions
Content deleted Content added
LordSkorne7 (talk | contribs) Created page with "<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|100px}}}|center]] | ⸻⸻⸻⸻ ✦ ⸻⸻⸻⸻ }} </div> </includeo..." Tag: 2017 source edit |
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
||
| (25 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|100px}}}|center]] |
|||
| ⸻⸻⸻⸻ ✦ ⸻⸻⸻⸻ |
|||
}} |
|||
</div> |
|||
</includeonly> |
|||
<noinclude> |
|||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"params": { |
|||
"image": { |
|||
"label": "Image", |
|||
"type": "wiki-file-name", |
|||
"description": "Replaces the ✦ with an image (provide filename)", |
|||
| ⚫ | |||
"suggested": true |
|||
}, |
|||
| ⚫ | |||
"glow": { |
|||
| ⚫ | |||
| ⚫ | |||
"label": "Image size", |
|||
"type": "string", |
|||
| ⚫ | |||
"description": "Use glow? (yes/no)" |
|||
}, |
|||
"glow": { |
|||
"label": "Glow", |
|||
"type": "boolean", |
|||
| ⚫ | |||
"default": "false" |
|||
"description": "Color of glow (if enabled)" |
|||
}, |
|||
"color": { |
|||
"label": "Color", |
|||
"type": "string", |
|||
"default": "var(--color-amaranth-legacy-scope)" |
|||
}, |
|||
"description": "left, center, or right" |
|||
"glowcolor": { |
|||
}, |
|||
| ⚫ | |||
"image": { |
|||
"type": "string", |
|||
"default": "var(--color-amaranth-legacy-scope)" |
|||
"type": "string", |
|||
}, |
|||
"description": "Optional: show an image instead of the divider" |
|||
"linesize": { |
|||
}, |
|||
"label": "Line height", |
|||
| ⚫ | |||
"type": "string", |
|||
"default": "1px" |
|||
} |
|||
"default": "100px", |
|||
}, |
|||
| ⚫ | |||
"description": "Creates a stylized scene or section break using glowing lines and a centered symbol or image, fully customizable including line size.", |
|||
} |
|||
| ⚫ | |||
| ⚫ | |||
"description": "Inserts a centered scene break with customizable glow, color, alignment, and optional image replacement.", |
|||
| ⚫ | |||
} |
} |
||
</templatedata> |
</templatedata> |
||
==Examples== |
|||
{{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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | image | Replaces the ✦ with an image (provide filename) | File | suggested |
| Image size | imagesize | no description
| String | optional |
| Glow | glow | If the lines should glow
| Boolean | optional |
| Color | color | no description
| String | optional |
| Glow color | glowcolor | no description
| String | optional |
| Line height | linesize | no description
| String | optional |
Examples
✦
✦
✦