Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Newsletter: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(40 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)}}};
<div style="background: #120312; border: 4px solid #ff0080; padding: 1.5em; font-family: {{{font|Arial, sans-serif}}}; color: white; max-width: 850px; margin: auto; box-shadow: 0 0 15px #ff0080;">
--template-arg-color:{{{color|var(--color-amaranth-legacy-scope)}}};

{{yesno|{{yesno-no|{{{glow|}}}}}|yes=box-shadow: var(--template-arg-color) 0 0 10px;}}
<!-- Header -->
">
<div style="display: flex; justify-content: center; align-items: center; font-size: 2em; font-weight: bold; color: #ff0080; text-shadow: 0 0 5px #ff0080;">
{{Hatnote2
<span style="margin-right: 0.5em;">[[File:{{{leftimage|glypht.png}}}|40px]]</span>
|file1={{{file|Glypht.png}}}
<span style="letter-spacing: 3px;">{{{title|AMARANTH WEEKLY}}}</span>
|file2={{{file|Glypht.png}}}
<span style="margin-left: 0.5em;">[[File:{{{rightimage|glypht.png}}}|40px]]</span>
|color={{{color|}}}
|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__
<!-- Timestamp or Author Slot -->
<div style="text-align: center; font-size: 1em; margin-top: 0.2em; font-weight: bold;">{{{subtitle|}}}</div>

<hr style="border: none; border-top: 2px solid #ff0080; margin: 1.5em 0;" />

<!-- Dynamic Sections Grid -->
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 2em;">

<!-- LEFT COLUMN -->
<div>
{{#if:{{{section1_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold;">{{{section1_title}}}</div><hr style="border: none; border-top: 1px solid {{{section1_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section1_text}}}</div>}}

{{#if:{{{section2_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section2_title}}}</div><hr style="border: none; border-top: 1px solid {{{section2_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section2_text}}}</div>}}

{{#if:{{{section3_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section3_title}}}</div><hr style="border: none; border-top: 1px solid {{{section3_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section3_text}}}</div>}}

{{#if:{{{section4_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section4_title}}}</div><hr style="border: none; border-top: 1px solid {{{section4_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section4_text}}}</div>}}

{{#if:{{{section5_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section5_title}}}</div><hr style="border: none; border-top: 1px solid {{{section5_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section5_text}}}</div>}}

{{#if:{{{section6_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section6_title}}}</div><hr style="border: none; border-top: 1px solid {{{section6_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section6_text}}}</div>}}

{{#if:{{{section7_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section7_title}}}</div><hr style="border: none; border-top: 1px solid {{{section7_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section7_text}}}</div>}}

{{#if:{{{section8_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section8_title}}}</div><hr style="border: none; border-top: 1px solid {{{section8_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section8_text}}}</div>}}

{{#if:{{{section9_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section9_title}}}</div><hr style="border: none; border-top: 1px solid {{{section9_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section9_text}}}</div>}}

{{#if:{{{section10_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section10_title}}}</div><hr style="border: none; border-top: 1px solid {{{section10_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section10_text}}}</div>}}

{{#if:{{{section11_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section11_title}}}</div><hr style="border: none; border-top: 1px solid {{{section11_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section11_text}}}</div>}}

{{#if:{{{section12_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section12_title}}}</div><hr style="border: none; border-top: 1px solid {{{section12_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section12_text}}}</div>}}

{{#if:{{{section13_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section13_title}}}</div><hr style="border: none; border-top: 1px solid {{{section13_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section13_text}}}</div>}}

{{#if:{{{section14_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section14_title}}}</div><hr style="border: none; border-top: 1px solid {{{section14_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section14_text}}}</div>}}

{{#if:{{{section15_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section15_title}}}</div><hr style="border: none; border-top: 1px solid {{{section15_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section15_text}}}</div>}}

{{#if:{{{section16_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section16_title}}}</div><hr style="border: none; border-top: 1px solid {{{section16_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section16_text}}}</div>}}

{{#if:{{{section17_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section17_title}}}</div><hr style="border: none; border-top: 1px solid {{{section17_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section17_text}}}</div>}}

{{#if:{{{section18_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section18_title}}}</div><hr style="border: none; border-top: 1px solid {{{section18_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section18_text}}}</div>}}

{{#if:{{{section19_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section19_title}}}</div><hr style="border: none; border-top: 1px solid {{{section19_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section19_text}}}</div>}}

{{#if:{{{section20_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section20_title}}}</div><hr style="border: none; border-top: 1px solid {{{section20_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section20_text}}}</div>}}

</div>

<!-- RIGHT COLUMN -->
<div>
{{#if:{{{section1_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold;">{{{section1_title}}}</div><hr style="border: none; border-top: 1px solid {{{section1_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section1_text}}}</div>}}

{{#if:{{{section2_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section2_title}}}</div><hr style="border: none; border-top: 1px solid {{{section2_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section2_text}}}</div>}}

{{#if:{{{section3_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section3_title}}}</div><hr style="border: none; border-top: 1px solid {{{section3_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section3_text}}}</div>}}

{{#if:{{{section4_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section4_title}}}</div><hr style="border: none; border-top: 1px solid {{{section4_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section4_text}}}</div>}}

{{#if:{{{section5_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section5_title}}}</div><hr style="border: none; border-top: 1px solid {{{section5_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section5_text}}}</div>}}

{{#if:{{{section6_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section6_title}}}</div><hr style="border: none; border-top: 1px solid {{{section6_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section6_text}}}</div>}}

{{#if:{{{section7_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section7_title}}}</div><hr style="border: none; border-top: 1px solid {{{section7_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section7_text}}}</div>}}

{{#if:{{{section8_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section8_title}}}</div><hr style="border: none; border-top: 1px solid {{{section8_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section8_text}}}</div>}}

{{#if:{{{section9_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section9_title}}}</div><hr style="border: none; border-top: 1px solid {{{section9_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section9_text}}}</div>}}

{{#if:{{{section10_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section10_title}}}</div><hr style="border: none; border-top: 1px solid {{{section10_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section10_text}}}</div>}}

{{#if:{{{section11_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section11_title}}}</div><hr style="border: none; border-top: 1px solid {{{section11_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section11_text}}}</div>}}

{{#if:{{{section12_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section12_title}}}</div><hr style="border: none; border-top: 1px solid {{{section12_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section12_text}}}</div>}}

{{#if:{{{section13_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section13_title}}}</div><hr style="border: none; border-top: 1px solid {{{section13_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section13_text}}}</div>}}

{{#if:{{{section14_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section14_title}}}</div><hr style="border: none; border-top: 1px solid {{{section14_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section14_text}}}</div>}}

{{#if:{{{section15_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section15_title}}}</div><hr style="border: none; border-top: 1px solid {{{section15_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section15_text}}}</div>}}

{{#if:{{{section16_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section16_title}}}</div><hr style="border: none; border-top: 1px solid {{{section16_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section16_text}}}</div>}}

{{#if:{{{section17_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section17_title}}}</div><hr style="border: none; border-top: 1px solid {{{section17_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section17_text}}}</div>}}

{{#if:{{{section18_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section18_title}}}</div><hr style="border: none; border-top: 1px solid {{{section18_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section18_text}}}</div>}}

{{#if:{{{section19_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section19_title}}}</div><hr style="border: none; border-top: 1px solid {{{section19_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section19_text}}}</div>}}

{{#if:{{{section20_title|}}}|<div style="font-size: 1.5em; color: #ff0055; font-weight: bold; margin-top: 2em;">{{{section20_title}}}</div><hr style="border: none; border-top: 1px solid {{{section20_color|#ff0080}}}; margin: 0.5em 0;" /><div>{{{section20_text}}}</div>}}

</div>

</div>

</div>
</includeonly>

<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"description": "Generates a newsletter block styled in the 'Amaranth Weekly' visual style. All sections, title, divider colors, font, and images are customizable.",
"params": {
"background-color": {
"label": "Background color",
"title": {
"type": "string",
"type": "string",
"default": "var(--color-surface-2)"
"description": "Main header title text",
},
"default": "AMARANTH WEEKLY"
"color": {
},
"label": "Color",
"subtitle": {
"description": "Applies to the border, headers, and box shadow (glow)",
"type": "string",
"type": "string",
"description": "Optional subtitle or author/timestamp slot"
"default": "var(--color-amaranth-legacy-scope)"
},
},
"leftimage": {
"glow": {
"type": "string",
"label": "Enable glow",
"description": "Image on the left side of the title",
"type": "boolean",
"default": "glypht.png"
"default": "false",
},
"example": "true"
"rightimage": {
},
"type": "string",
"file": {
"description": "Image on the right side of the title",
"label": "Hatnote image",
"default": "glypht.png"
"type": "wiki-file-name",
},
"default": "Glypht.png"
"font": {
},
"type": "string",
"for": {
"description": "CSS font-family for all text",
"label": "For",
"default": "Arial, sans-serif"
"type": "string",
}
"default": "Amaranth Legacy"
,
},
"section1_title": { "type": "string", "description": "Title for Section 1" },
"schedule": {
"section1_text": { "type": "string", "description": "Main content of Section 1" },
"label": "Schedule",
"section1_color": { "type": "string", "description": "Divider line color for Section 1", "default": "#ff0080" },
"type": "string",
"suggestedvalues": [
"section2_title": { "type": "string", "description": "Title for Section 2" },
"Monthly",
"section2_text": { "type": "string", "description": "Main content of Section 2" },
"Weekly",
"section2_color": { "type": "string", "description": "Divider line color for Section 2", "default": "#ff0080" },
"Daily"
],
"section3_title": { "type": "string", "description": "Title for Section 3" },
"suggested": true
"section3_text": { "type": "string", "description": "Main content of Section 3" },
},
"section3_color": { "type": "string", "description": "Divider line color for Section 3", "default": "#ff0080" },
"date": {
"label": "Date",
"section4_title": { "type": "string", "description": "Title for Section 4" },
"type": "string",
"section4_text": { "type": "string", "description": "Main content of Section 4" },
"required": true,
"section4_color": { "type": "string", "description": "Divider line color for Section 4", "default": "#ff0080" },
"example": "April 2025"
},
"section5_title": { "type": "string", "description": "Title for Section 5" },
"author": {
"section5_text": { "type": "string", "description": "Main content of Section 5" },
"label": "Author",
"section5_color": { "type": "string", "description": "Divider line color for Section 5", "default": "#ff0080" },
"type": "string",
"required": true
"section6_title": { "type": "string", "description": "Title for Section 6" },
},
"section6_text": { "type": "string", "description": "Main content of Section 6" },
"overview": {
"section6_color": { "type": "string", "description": "Divider line color for Section 6", "default": "#ff0080" },
"label": "Overview",
"type": "content",
"section7_title": { "type": "string", "description": "Title for Section 7" },
"required": true
"section7_text": { "type": "string", "description": "Main content of Section 7" },
},
"section7_color": { "type": "string", "description": "Divider line color for Section 7", "default": "#ff0080" },
"sections": {
"label": "Sections",
"section8_title": { "type": "string", "description": "Title for Section 8" },
"section8_text": { "type": "string", "description": "Main content of Section 8" },
"type": "content",
"required": true
"section8_color": { "type": "string", "description": "Divider line color for Section 8", "default": "#ff0080" },
}
},
"section9_title": { "type": "string", "description": "Title for Section 9" },
"format": "block",
"section9_text": { "type": "string", "description": "Main content of Section 9" },
"description": "Creates a newsletter issue (available for use by everyone)"
"section9_color": { "type": "string", "description": "Divider line color for Section 9", "default": "#ff0080" },
"section10_title": { "type": "string", "description": "Title for Section 10" },
"section10_text": { "type": "string", "description": "Main content of Section 10" },
"section10_color": { "type": "string", "description": "Divider line color for Section 10", "default": "#ff0080" },
"section11_title": { "type": "string", "description": "Title for Section 11" },
"section11_text": { "type": "string", "description": "Main content of Section 11" },
"section11_color": { "type": "string", "description": "Divider line color for Section 11", "default": "#ff0080" },
"section12_title": { "type": "string", "description": "Title for Section 12" },
"section12_text": { "type": "string", "description": "Main content of Section 12" },
"section12_color": { "type": "string", "description": "Divider line color for Section 12", "default": "#ff0080" },
"section13_title": { "type": "string", "description": "Title for Section 13" },
"section13_text": { "type": "string", "description": "Main content of Section 13" },
"section13_color": { "type": "string", "description": "Divider line color for Section 13", "default": "#ff0080" },
"section14_title": { "type": "string", "description": "Title for Section 14" },
"section14_text": { "type": "string", "description": "Main content of Section 14" },
"section14_color": { "type": "string", "description": "Divider line color for Section 14", "default": "#ff0080" },
"section15_title": { "type": "string", "description": "Title for Section 15" },
"section15_text": { "type": "string", "description": "Main content of Section 15" },
"section15_color": { "type": "string", "description": "Divider line color for Section 15", "default": "#ff0080" },
"section16_title": { "type": "string", "description": "Title for Section 16" },
"section16_text": { "type": "string", "description": "Main content of Section 16" },
"section16_color": { "type": "string", "description": "Divider line color for Section 16", "default": "#ff0080" },
"section17_title": { "type": "string", "description": "Title for Section 17" },
"section17_text": { "type": "string", "description": "Main content of Section 17" },
"section17_color": { "type": "string", "description": "Divider line color for Section 17", "default": "#ff0080" },
"section18_title": { "type": "string", "description": "Title for Section 18" },
"section18_text": { "type": "string", "description": "Main content of Section 18" },
"section18_color": { "type": "string", "description": "Divider line color for Section 18", "default": "#ff0080" },
"section19_title": { "type": "string", "description": "Title for Section 19" },
"section19_text": { "type": "string", "description": "Main content of Section 19" },
"section19_color": { "type": "string", "description": "Divider line color for Section 19", "default": "#ff0080" },
"section20_title": { "type": "string", "description": "Title for Section 20" },
"section20_text": { "type": "string", "description": "Main content of Section 20" },
"section20_color": { "type": "string", "description": "Divider line color for Section 20", "default": "#ff0080" }
}
}
}
</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)

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Background colorbackground-color

no description

Default
var(--color-surface-2)
Stringoptional
Colorcolor

Applies to the border, headers, and box shadow (glow)

Default
var(--color-amaranth-legacy-scope)
Stringoptional
Enable glowglow

no description

Default
false
Example
true
Booleanoptional
Hatnote imagefile

no description

Default
Glypht.png
Fileoptional
Forfor

no description

Default
Amaranth Legacy
Stringoptional
Scheduleschedule

no description

Suggested values
Monthly Weekly Daily
Stringsuggested
Datedate

no description

Example
April 2025
Stringrequired
Authorauthor

no description

Stringrequired
Overviewoverview

no description

Contentrequired
Sectionssections

no description

Contentrequired

Example

See Amaranth Legacy:Newsletter/2025/April.