Template:Hr with image: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
||
| (10 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}}} |
<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": { |
|||
"image": { |
|||
"label": "Image", |
|||
"type": "wiki-file-name", |
|||
| ⚫ | |||
| ⚫ | |||
"suggested": true |
|||
}, |
|||
| ⚫ | |||
"glow": { |
|||
"imagesize": { |
|||
"label": "Glow Effect", |
|||
"label": "Image size", |
|||
"type": "string", |
|||
| ⚫ | |||
"description": "yes or no to apply glow around the line and icon" |
|||
}, |
|||
"glow": { |
|||
"label": "Glow", |
|||
"type": "boolean", |
|||
"description": "If the lines should glow", |
|||
"default": "false" |
|||
}, |
|||
}, |
|||
"align": { |
|||
"color": { |
|||
"label": "Alignment", |
|||
"label": "Color", |
|||
"type": "string", |
|||
"default": "var(--color-amaranth-legacy-scope)" |
|||
"description": "Choose left, center, or right alignment" |
|||
}, |
|||
"glowcolor": { |
|||
"label": "Glow color", |
|||
"type": "string", |
|||
"default": "var(--color-amaranth-legacy-scope)" |
|||
| ⚫ | |||
}, |
|||
"linesize": { |
|||
"label": "Line height", |
|||
"type": "string", |
|||
"default": "1px" |
|||
} |
|||
}, |
|||
}, |
|||
"linesize": { |
|||
| ⚫ | |||
"label": "Line Text Size", |
|||
"format": "inline" |
|||
"default": "1.4em", |
|||
"description": "Set the size of the line text (e.g. 16px, 2em)" |
|||
} |
|||
| ⚫ | |||
| ⚫ | |||
"format": "inline" |
|||
} |
} |
||
</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
✦
✦
✦