Template:Newsletter: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
||
| (15 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>__NOTOC__<templatestyles src="Template: |
<includeonly>__NOTOC__<templatestyles src="Template:Newsletter/styles.css"/><div class="amaranth-legacy-newsletter" style=" |
||
--template-arg-background-color:{{{background-color|var(--color-surface-2)}}}; |
|||
--template-arg-color:{{{color|var(--color-amaranth-legacy-scope)}}}; |
|||
{{yesno|{{yesno-no|{{{glow|}}}}}|yes=box-shadow: var(--template-arg-color) 0 0 10px;}} |
|||
"> |
|||
{{Hatnote2 |
{{Hatnote2 |
||
|file1={{{file|Glypht.png}}} |
|file1={{{file|Glypht.png}}} |
||
|file2={{{file|Glypht.png}}} |
|file2={{{file|Glypht.png}}} |
||
|color={{{color|}}} |
|||
|primary=<h2 class="amaranth-legacy-newsletter-title">{{{for|Amaranth Legacy}}}{{#if: {{{schedule|}}}|<nowiki> </nowiki>{{{schedule}}}}} Newsletter</h2> |
|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= |
|secondary=Issued '''{{{date}}}'''<br>By '''{{{author}}}''' |
||
}} |
}} |
||
<div class="amaranth-legacy-newsletter-overview"> |
<div class="amaranth-legacy-newsletter-overview"> |
||
| Line 10: | Line 15: | ||
</div> |
</div> |
||
<div class="amaranth-legacy-newsletter-sections">{{{sections}}}</div> |
<div class="amaranth-legacy-newsletter-sections">{{{sections}}}</div> |
||
</div></includeonly> |
</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)
| 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 |