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
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Template:Amaranth Legacy Newsletter/styles.css"/><div class="amaranth-legacy-newsletter">
<includeonly>__NOTOC__<templatestyles src="Template:Newsletter/styles.css"/><div class="amaranth-legacy-newsletter" style="
--template-arg-background-color:{{{background-color|var(--color-surface-2)}}};
<h2 class="amaranth-legacy-newsletter-title">Amaranth Legacy {{{schedule}}} Newsletter: {{{date}}}</h2>
--template-arg-color:{{{color|var(--color-amaranth-legacy-scope)}}};
<div class="amaranth-legacy-newsletter-overview>{{{overview}}}</div>
{{yesno|{{yesno-no|{{{glow|}}}}}|yes=box-shadow: var(--template-arg-color) 0 0 10px;}}
</div></includeonly>
">
{{Hatnote2
|file1={{{file|Glypht.png}}}
|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 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==
See [[Amaranth Legacy:Newsletter/2025/April]].
[[Category:Templates: tesinormed]]
</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.