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
Created page with "<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;"> <!-- 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;"> <span style="margin-right: 0.5em;">[[File:{{{leftimage|glypht.png}}}|40px]]</span> <span style="letter-sp..."
Tag: 2017 source edit
 
No edit summary
Tag: 2017 source edit
 
(44 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="
<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-background-color:{{{background-color|var(--color-surface-2)}}};

--template-arg-color:{{{color|var(--color-amaranth-legacy-scope)}}};
<!-- Header -->
{{yesno|{{yesno-no|{{{glow|}}}}}|yes=box-shadow: var(--template-arg-color) 0 0 10px;}}
<div style="display: flex; justify-content: center; align-items: center; font-size: 2em; font-weight: bold; color: #ff0080; text-shadow: 0 0 5px #ff0080;">
">
<span style="margin-right: 0.5em;">[[File:{{{leftimage|glypht.png}}}|40px]]</span>
{{Hatnote2
<span style="letter-spacing: 3px;">{{{title|AMARANTH WEEKLY}}}</span>
|file1={{{file|Glypht.png}}}
<span style="margin-left: 0.5em;">[[File:{{{rightimage|glypht.png}}}|40px]]</span>
|file2={{{file|Glypht.png}}}
|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__
<templatedata>
{
"params": {
"background-color": {
"label": "Background color",
"type": "string",
"default": "var(--color-surface-2)"
},
"color": {
"label": "Color",
"description": "Applies to the border, headers, and box shadow (glow)",
"type": "string",
"default": "var(--color-amaranth-legacy-scope)"
},
"glow": {
"label": "Enable glow",
"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>


==Example==
<!-- Timestamp or Author Slot -->
See [[Amaranth Legacy:Newsletter/2025/April]].
<div style="text-align: center; font-size: 1em; margin-top: 0.2em; font-weight: bold;">{{{subtitle|}}}</div>
[[Category:Templates: tesinormed]]

<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>


<noinclude>
{{TemplateData
|description=Generates a newsletter block styled in the "Amaranth Weekly" visual style. All sections, title, divider colors, font, and images are customizable.
|params={
"title": {"type":"string","description":"Main header title text","default":"AMARANTH WEEKLY"},
"subtitle": {"type":"string","description":"Optional subtitle or author/timestamp slot"},
"leftimage": {"type":"string","description":"Image on the left side of the title","default":"glypht.png"},
"rightimage": {"type":"string","description":"Image on the right side of the title","default":"glypht.png"},
"font": {"type":"string","description":"CSS font-family for all text","default":"Arial, sans-serif"},

"section1_title": {"type":"string","description":"Title for Section 1"},
"section1_text": {"type":"string","description":"Main content of Section 1"},
"section1_color": {"type":"string","description":"Divider line color for Section 1","default":"#ff0080"},

"section2_title": {"type":"string"},
"section2_text": {"type":"string"},
"section2_color": {"type":"string","default":"#ff0080"},

"section3_title": {"type":"string"},
"section3_text": {"type":"string"},
"section3_color": {"type":"string","default":"#ff0080"},

"section4_title": {"type":"string"},
"section4_text": {"type":"string"},
"section4_color": {"type":"string","default":"#ff0080"},

"section5_title": {"type":"string"},
"section5_text": {"type":"string"},
"section5_color": {"type":"string","default":"#ff0080"},

"section6_title": {"type":"string"},
"section6_text": {"type":"string"},
"section6_color": {"type":"string","default":"#ff0080"},

"section7_title": {"type":"string"},
"section7_text": {"type":"string"},
"section7_color": {"type":"string","default":"#ff0080"},

"section8_title": {"type":"string"},
"section8_text": {"type":"string"},
"section8_color": {"type":"string","default":"#ff0080"},

"section9_title": {"type":"string"},
"section9_text": {"type":"string"},
"section9_color": {"type":"string","default":"#ff0080"},

"section10_title": {"type":"string"},
"section10_text": {"type":"string"},
"section10_color": {"type":"string","default":"#ff0080"},

"section11_title": {"type":"string"},
"section11_text": {"type":"string"},
"section11_color": {"type":"string","default":"#ff0080"},

"section12_title": {"type":"string"},
"section12_text": {"type":"string"},
"section12_color": {"type":"string","default":"#ff0080"},

"section13_title": {"type":"string"},
"section13_text": {"type":"string"},
"section13_color": {"type":"string","default":"#ff0080"},

"section14_title": {"type":"string"},
"section14_text": {"type":"string"},
"section14_color": {"type":"string","default":"#ff0080"},

"section15_title": {"type":"string"},
"section15_text": {"type":"string"},
"section15_color": {"type":"string","default":"#ff0080"},

"section16_title": {"type":"string"},
"section16_text": {"type":"string"},
"section16_color": {"type":"string","default":"#ff0080"},

"section17_title": {"type":"string"},
"section17_text": {"type":"string"},
"section17_color": {"type":"string","default":"#ff0080"},

"section18_title": {"type":"string"},
"section18_text": {"type":"string"},
"section18_color": {"type":"string","default":"#ff0080"},

"section19_title": {"type":"string"},
"section19_text": {"type":"string"},
"section19_color": {"type":"string","default":"#ff0080"},

"section20_title": {"type":"string"},
"section20_text": {"type":"string"},
"section20_color": {"type":"string","default":"#ff0080"}
}
}}
</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.