Template:Character Relationship Box: Difference between revisions
Template page
More actions
Content deleted Content added
LordSkorne7 (talk | contribs) No edit summary Tag: 2017 source edit |
LordSkorne7 (talk | contribs) No edit summary Tag: 2017 source edit |
||
| Line 2: | Line 2: | ||
<span style="display:block; border:2px solid {{{border-color|#137dc4}}}; border-radius:15px; background:{{{background|linear-gradient(180deg, #2e0e19 0%, #1c070f 100%)}}}; padding:15px; max-width:750px; width:100%; font-family:Varela Round, sans-serif; color:#e2d1e5; position:relative; box-sizing:border-box; box-shadow:0 0 12px {{{border-color|#137dc4}}}; overflow:hidden;"> |
<span style="display:block; border:2px solid {{{border-color|#137dc4}}}; border-radius:15px; background:{{{background|linear-gradient(180deg, #2e0e19 0%, #1c070f 100%)}}}; padding:15px; max-width:750px; width:100%; font-family:Varela Round, sans-serif; color:#e2d1e5; position:relative; box-sizing:border-box; box-shadow:0 0 12px {{{border-color|#137dc4}}}; overflow:hidden;"> |
||
<span style="position:absolute; top:15px; right:15px;"> |
<span style="position:absolute; top:15px; right:15px;">[[File:{{{image|Glypht.png}}}|127x127px]]</span> |
||
[[File:{{{image|Glypht.png}}}|90px]] |
|||
</span> |
|||
<span style=" |
<span style="font-size:130%; font-weight:bold; color:{{{heart-color|#a38bd3}}};"> |
||
{{{hearts-display|{{#switch:{{{hearts|5}}} |
{{{hearts-display|{{#switch:{{{hearts|5}}} |
||
| 1 = {{{heart-type|♥}}} |
| 1 = {{{heart-type|♥}}} |
||
| Line 15: | Line 13: | ||
| default = {{{heart-type|♥}}}{{{heart-type|♥}}}{{{heart-type|♥}}}{{{heart-type|♥}}}{{{heart-type|♥}}} |
| default = {{{heart-type|♥}}}{{{heart-type|♥}}}{{{heart-type|♥}}}{{{heart-type|♥}}}{{{heart-type|♥}}} |
||
}} }}} {{{name|Hope}}} |
}} }}} {{{name|Hope}}} |
||
</span> |
</span> |
||
| ⚫ | |||
<span style=" |
<span style="font-weight:bold; color:{{{section-color|#c7b5e5}}};">Meeting Date:</span> {{{meeting-date|}}} |
||
<span style=" |
<span style="font-weight:bold; color:{{{section-color|#c7b5e5}}};">Meeting Location:</span> {{{meeting-location|}}} |
||
<span style=" |
<span style="font-weight:bold; color:{{{section-color|#c7b5e5}}};">Met Through:</span> {{{met-through|}}} |
||
<span style=" |
<span style="font-weight:bold; color:{{{section-color|#c7b5e5}}};">Description:</span> {{{description|}}} |
||
| ⚫ | |||
{{{description|}}} |
|||
</span> |
</span> |
||
| Line 32: | Line 28: | ||
"description": "Creates a customizable character relationship box with full fitting for image and text, optional custom hearts string, and dynamic formatting.", |
"description": "Creates a customizable character relationship box with full fitting for image and text, optional custom hearts string, and dynamic formatting.", |
||
"params": { |
"params": { |
||
| ⚫ | |||
"background": { |
|||
"label": " |
"border-color": { "label": "Border Color", "type": "string", "default": "#137dc4" }, |
||
"type": "string", |
"section-color": { "label": "Section Label Color", "type": "string", "default": "#c7b5e5" }, |
||
"heart-color": { "label": "Heart Color", "type": "string", "default": "#a38bd3" }, |
|||
| ⚫ | |||
"heart-type": { "label": "Heart Symbol", "type": "string", "default": "♥" }, |
|||
"description": "Background color or gradient." |
|||
| ⚫ | |||
}, |
|||
| ⚫ | |||
"border-color": { |
|||
"label": " |
"name": { "label": "Name next to Hearts", "type": "string", "default": "Hope" }, |
||
"type": "string", |
"image": { "label": "Image File Name", "type": "string", "default": "Glypht.png" }, |
||
"default": " |
"relationship": { "label": "Relationship", "type": "string", "default": "Light of His Life!" }, |
||
| ⚫ | |||
"description": "Border color around the box." |
|||
| ⚫ | |||
}, |
|||
| ⚫ | |||
"section-color": { |
|||
"label": " |
"description": { "label": "Description", "type": "string" } |
||
"type": "string", |
|||
"default": "#c7b5e5", |
|||
"description": "Color of the section labels (e.g., 'Relationship', 'Meeting Date')." |
|||
}, |
|||
"heart-color": { |
|||
"label": "Heart Color", |
|||
"type": "string", |
|||
"default": "#a38bd3", |
|||
"description": "Color of the hearts displayed at the top." |
|||
}, |
|||
"heart-type": { |
|||
"label": "Heart Symbol", |
|||
"type": "string", |
|||
"default": "♥", |
|||
"description": "Default heart symbol if hearts-display isn't used." |
|||
}, |
|||
"hearts": { |
|||
| ⚫ | |||
"type": "number", |
|||
"default": "5", |
|||
"description": "Number of hearts to show (1–5) if no custom string given." |
|||
}, |
|||
"hearts-display": { |
|||
| ⚫ | |||
"type": "string", |
|||
"description": "Custom exact heart string (example: ♥♡♡♥♥). Overrides hearts number." |
|||
}, |
|||
"name": { |
|||
"label": "Name next to Hearts", |
|||
"type": "string", |
|||
"default": "Hope", |
|||
"description": "Name that appears next to the hearts." |
|||
}, |
|||
"image": { |
|||
"label": "Image File Name", |
|||
"type": "string", |
|||
"default": "Glypht.png", |
|||
"description": "Filename of the image to display (without File:)." |
|||
}, |
|||
"relationship": { |
|||
"label": "Relationship", |
|||
"type": "string", |
|||
"default": "Light of His Life!", |
|||
"description": "Short description of the relationship." |
|||
}, |
|||
"meeting-date": { |
|||
| ⚫ | |||
"type": "string", |
|||
"description": "Date they met." |
|||
}, |
|||
"meeting-location": { |
|||
| ⚫ | |||
"type": "string", |
|||
"description": "Where they met." |
|||
}, |
|||
"met-through": { |
|||
| ⚫ | |||
"type": "string", |
|||
"description": "How they met (event, person, etc.)." |
|||
}, |
|||
"description": { |
|||
"label": "Description", |
|||
"type": "string", |
|||
"description": "Full description text about the relationship." |
|||
} |
|||
} |
} |
||
} |
} |
||
</templatedata> |
</templatedata> |
||
{{Character Relationship Box}} |
|||
</noinclude> |
</noinclude> |
||
Revision as of 21:26, May 1, 2025
Creates a customizable character relationship box with full fitting for image and text, optional custom hearts string, and dynamic formatting.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Background | background | no description
| String | optional |
| Border Color | border-color | no description
| String | optional |
| Section Label Color | section-color | no description
| String | optional |
| Heart Color | heart-color | no description
| String | optional |
| Heart Symbol | heart-type | no description
| String | optional |
| Number of Hearts | hearts | no description
| Number | optional |
| Custom Hearts Display | hearts-display | no description | String | optional |
| Name next to Hearts | name | no description
| String | optional |
| Image File Name | image | no description
| String | optional |
| Relationship | relationship | no description
| String | optional |
| Meeting Date | meeting-date | no description | String | optional |
| Meeting Location | meeting-location | no description | String | optional |
| Met Through | met-through | no description | String | optional |
| Description | description | no description | String | optional |