Template:News Header: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 30: | Line 30: | ||
<!-- Top Header / Article Title --> | <!-- Top Header / Article Title --> | ||
<h2 style="border-bottom: 2px solid # | <h2 style="border-bottom: 2px solid #d1d5db; color: #0b132b; margin-top: 0; padding-bottom: 0.4em; font-family: 'Georgia', serif;">{{#titleparts:{{FULLPAGENAME}}|1|-1}}</h2> | ||
<!-- | <!-- News Metadata Stats Table (Full Width) --> | ||
<div style="background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 0.8em; font-size: 0.95em; line-height: 1.5; color: #374151; margin-top: 1.2em;"> | |||
<div style=" | |||
<table style="width: 100%; border-collapse: collapse;"> | <table style="width: 100%; border-collapse: collapse;"> | ||
<tr> | <tr> | ||
<td style="padding: 0.3em 0.5em; font-weight: bold; width: | <td style="padding: 0.3em 0.5em; font-weight: bold; width: 25%; border-bottom: 1px solid #e2e8f0;">In-universe date</td> | ||
<td style="padding: 0.3em 0.5em; border-bottom: 1px solid #e2e8f0;">Era Nova, {{#switch: {{#expr: 1 + ( floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 86400) mod 14 ) }} | <td style="padding: 0.3em 0.5em; border-bottom: 1px solid #e2e8f0;">Era Nova, {{#switch: {{#expr: 1 + ( floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 86400) mod 14 ) }} | ||
| 1 = Early January | | 1 = Early January | ||
| Line 57: | Line 54: | ||
| 14 = Late December | | 14 = Late December | ||
| #default = Early January | | #default = Early January | ||
}}, [[:Category:Era Nova, Year | }}, [[:Category:Era Nova, Year 5|Year 5]]</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
| Line 72: | Line 69: | ||
</tr> | </tr> | ||
</table> | </table> | ||
</div> | </div> | ||
| Line 95: | Line 85: | ||
| #default = Character News | | #default = Character News | ||
}}]] | }}]] | ||
[[Category:Era Nova, Year | [[Category:Era Nova, Year 5]] | ||
{{#if: {{{Author|}}} | [[Category:{{{Author}}}]] | }} | {{#if: {{{Author|}}} | [[Category:{{{Author}}}]] | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
| Line 110: | Line 100: | ||
| RealDate = 2026-09-15 | | RealDate = 2026-09-15 | ||
| Author = Basil Blight <!-- Use 'Author' for character news, or 'Publisher'/'Agency' for news outlets --> | | Author = Basil Blight <!-- Use 'Author' for character news, or 'Publisher'/'Agency' for news outlets --> | ||
}} | }} | ||
| Line 118: | Line 107: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Universal automated news and dispatch header for Project Aquila | "description": "Universal automated news and dispatch header for Project Aquila.", | ||
"params": { | "params": { | ||
"Type": { | "Type": { | ||
| Line 150: | Line 139: | ||
"label": "Publisher / Agency", | "label": "Publisher / Agency", | ||
"description": "Name of the news outlet (use this instead of Author for Global/Domestic news).", | "description": "Name of the news outlet (use this instead of Author for Global/Domestic news).", | ||
"type": "string", | "type": "string", | ||
"required": false, | "required": false, | ||
Revision as of 20:15, 5 October 2026
CRITICAL DATE FORMAT WARNING
When using the RealDate parameter, you MUST write it in strict YYYY-MM-DD format (e.g., 2026-09-15).
DO NOT use slashes or short-hand like 15/09/26, or the wiki math engine will crash with an error!
Usage
{{News Header
| Type = Character News <!-- Options: Character News, Global News, Domestic News -->
| RealDate = 2026-09-15
| Author = Basil Blight <!-- Use 'Author' for character news, or 'Publisher'/'Agency' for news outlets -->
}}
== The Story Begins ==
Write your raw text, add multiple images, use custom headers, or layout the page however you want below the header!
Universal automated news and dispatch header for Project Aquila.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| News Category Type | Type | Defines the main category. Suggested values: Character News, Global News, Domestic News
| String | required |
| Real-world date (REQUIRED) | RealDate | MUST BE YYYY-MM-DD. Do NOT use slashes!
| String | required |
| Author (Character) | Author | Character author name (creates an author category and wiki link). Leave blank if using a news Publisher/Agency. | Page name | suggested |
| Publisher / Agency | Publisher | Name of the news outlet (use this instead of Author for Global/Domestic news). | String | suggested |