Template:Newsletter: Difference between revisions
Template page
More actions
Content deleted Content added
LordSkorne7 (talk | contribs) No edit summary Tag: 2017 source edit |
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
||
| (34 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>__NOTOC__<templatestyles src="Template:Newsletter/styles.css"/><div class="amaranth-legacy-newsletter" style=" |
|||
<includeonly> |
|||
--template-arg-background-color:{{{background-color|var(--color-surface-2)}}}; |
|||
<templatestyles src="Template:Amaranth Legacy Newsletter/styles.css" /> |
|||
--template-arg-color:{{{color|var(--color-amaranth-legacy-scope)}}}; |
|||
<div style="background: {{{background|transparent}}}; border: 4px solid {{{bordercolor|#60add5}}}; padding: 1.5em; font-family: {{{font|Arial, sans-serif}}}; color: {{{textcolor|#60add5}}}; max-width: 1100px; margin: auto; {{#if:{{{glow|}}}|box-shadow: 0 0 15px {{{bordercolor|#60add5}}};|}}"> |
|||
{{yesno|{{yesno-no|{{{glow|}}}}}|yes=box-shadow: var(--template-arg-color) 0 0 10px;}} |
|||
"> |
|||
<!-- Header --> |
|||
{{Hatnote2 |
|||
<div style="display: flex; justify-content: center; align-items: center; font-size: {{{titlesize|2em}}}; font-weight: bold; color: {{{titlecolor|#60add5}}}; text-shadow: {{#if:{{{glow|}}}|0 0 5px {{{titlecolor|#60add5}}}|none}};"> |
|||
|file1={{{file|Glypht.png}}} |
|||
<span style="margin-right: 0.5em;">[[File:{{{leftimage|glypht.png}}}|40px]]</span> |
|||
|file2={{{file|Glypht.png}}} |
|||
<span style="letter-spacing: 3px;">{{{title|AMARANTH WEEKLY}}}</span> |
|||
|color={{{color|}}} |
|||
<span style="margin-left: 0.5em;">[[File:{{{rightimage|glypht.png}}}|40px]]</span> |
|||
|primary=<h2 class="amaranth-legacy-newsletter-title">{{{for|Amaranth Legacy}}}{{#if: {{{schedule|}}}|<nowiki> </nowiki>{{{schedule}}}}}{{yesno|{{yesno-yes|{{{is_newsletter|}}}}}|yes=<nowiki> </nowiki>Newsletter}}</h2> |
|||
|secondary=Issued '''{{{date}}}'''<br>By '''{{{author}}}''' |
|||
}} |
|||
<div class="amaranth-legacy-newsletter-overview"> |
|||
{{{overview}}} |
|||
</div> |
</div> |
||
<div class="amaranth-legacy-newsletter-sections">{{{sections}}}</div> |
|||
</div></includeonly><noinclude>__NOTOC__ |
|||
<!-- Subtitle --> |
|||
<div style="text-align: center; font-size: 1em; margin-top: 0.2em; font-weight: bold;">{{{subtitle|}}}</div> |
|||
<!-- Overview --> |
|||
<div style="text-align: center; font-size: 1.2em; margin-top: 1em; margin-bottom: 1em;">{{{overview|}}}</div> |
|||
<hr style="border: none; border-top: 2px solid {{{bordercolor|#60add5}}}; margin: 1.5em 0;" /> |
|||
<!-- Section Grid --> |
|||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 2em;"> |
|||
<!-- LEFT: Sections 21 - 40 --> |
|||
<div> |
|||
{{#forindex: i | 21 | 40 |}} |
|||
{{#if:{{{section{{i}}_title|}}}|<div style="font-size: 1.5em; color: {{{titlecolor|#60add5}}}; font-weight: bold; {{#ifexpr:{{i}} > 21|margin-top: 2em;}}">{{{section{{i}}_title}}}</div><hr style="border: none; border-top: 1px solid {{{section{{i}}_color|#60add5}}}; margin: 0.5em 0;" /><div>{{{section{{i}}_text}}}</div>}} |
|||
{{#endforindex}} |
|||
</div> |
|||
<!-- RIGHT: Sections 1 - 20 --> |
|||
<div> |
|||
{{#forindex: i | 1 | 20 |}} |
|||
{{#if:{{{section{{i}}_title|}}}|<div style="font-size: 1.5em; color: {{{titlecolor|#60add5}}}; font-weight: bold; {{#ifexpr:{{i}} > 1|margin-top: 2em;}}">{{{section{{i}}_title}}}</div><hr style="border: none; border-top: 1px solid {{{section{{i}}_color|#60add5}}}; margin: 0.5em 0;" /><div>{{{section{{i}}_text}}}</div>}} |
|||
{{#endforindex}} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</includeonly> |
|||
<noinclude> |
|||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"params": { |
|||
"description": "Generates a newsletter block styled in the 'Amaranth Legacy' style with customizable sections, colors, font, and layout.", |
|||
"background-color": { |
|||
"label": "Background color", |
|||
"title": { "type": "string", "description": "Main header title text", "default": "AMARANTH WEEKLY" }, |
|||
"type": "string", |
|||
"titlesize": { "type": "string", "description": "CSS size for title text", "default": "2em" }, |
|||
"default": "var(--color-surface-2)" |
|||
"subtitle": { "type": "string", "description": "Optional subtitle or author/timestamp slot" }, |
|||
}, |
|||
"overview": { "type": "string", "description": "Optional overview section displayed beneath subtitle" }, |
|||
"color": { |
|||
"leftimage": { "type": "string", "description": "Image on the left side of the title", "default": "glypht.png" }, |
|||
"label": "Color", |
|||
"rightimage": { "type": "string", "description": "Image on the right side of the title", "default": "glypht.png" }, |
|||
"description": "Applies to the border, headers, and box shadow (glow)", |
|||
"type": "string", |
|||
"bordercolor": { "type": "string", "description": "Hex color code for border and lines", "default": "#60add5" }, |
|||
"default": "var(--color-amaranth-legacy-scope)" |
|||
"titlecolor": { "type": "string", "description": "Color for the main title text", "default": "#60add5" }, |
|||
}, |
|||
"textcolor": { "type": "string", "description": "Color for all text", "default": "#60add5" }, |
|||
"glow": { |
|||
"background": { "type": "string", "description": "Background color of the newsletter box", "default": "transparent" }, |
|||
"label": "Enable glow", |
|||
"glow": { "type": "string", "description": "Set to any value to enable outer glow effect", "default": "" } |
|||
"type": "boolean", |
|||
} |
|||
"default": "false", |
|||
"example": "true" |
|||
}, |
|||
"file": { |
|||
"label": "Hatnote image", |
|||
"type": "wiki-file-name", |
|||
"default": "Glypht.png" |
|||
}, |
|||
"for": { |
|||
"label": "For", |
|||
"type": "string", |
|||
"default": "Amaranth Legacy" |
|||
}, |
|||
"schedule": { |
|||
"label": "Schedule", |
|||
"type": "string", |
|||
"suggestedvalues": [ |
|||
"Monthly", |
|||
"Weekly", |
|||
"Daily" |
|||
], |
|||
"suggested": true |
|||
}, |
|||
"date": { |
|||
"label": "Date", |
|||
"type": "string", |
|||
"required": true, |
|||
"example": "April 2025" |
|||
}, |
|||
"author": { |
|||
"label": "Author", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"overview": { |
|||
"label": "Overview", |
|||
"type": "content", |
|||
"required": true |
|||
}, |
|||
"sections": { |
|||
"label": "Sections", |
|||
"type": "content", |
|||
"required": true |
|||
} |
|||
}, |
|||
"format": "block", |
|||
"description": "Creates a newsletter issue (available for use by everyone)" |
|||
} |
} |
||
</templatedata> |
</templatedata> |
||
==Example== |
|||
See [[Amaranth Legacy:Newsletter/2025/April]]. |
|||
[[Category:Templates: tesinormed]] |
|||
</noinclude> |
</noinclude> |
||
Latest revision as of 02:38, May 27, 2025
Creates a newsletter issue (available for use by everyone)
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Background color | background-color | no description
| String | optional |
| Color | color | Applies to the border, headers, and box shadow (glow)
| String | optional |
| Enable glow | glow | no description
| Boolean | optional |
| Hatnote image | file | no description
| File | optional |
| For | for | no description
| String | optional |
| Schedule | schedule | no description
| String | suggested |
| Date | date | no description
| String | required |
| Author | author | no description | String | required |
| Overview | overview | no description | Content | required |
| Sections | sections | no description | Content | required |