Template:News Header: Difference between revisions

From aquila
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{DISPLAYTITLE:{{#titleparts:{{FULLPAGENAME}}|1|-1}}}}{{#cargo_store: _table=NewsPosts
<!-- FORCED CUSTOM DISPLAY TITLE -->
{{DISPLAYTITLE:{{{Title}}}}}
 
<!-- CARGO STORAGE CALL -->
{{#cargo_store: _table=NewsPosts
|Page_Name={{FULLPAGENAME}}
|Page_Name={{FULLPAGENAME}}
|Type={{{Type|Character News}}}
|Type={{{Type|Character News}}}
|Subheading={{{Subheading|}}}
|Subheading={{{Subheading|}}}
|RealDate={{{RealDate|}}}
|RealDate={{{RealDate|}}}
|Author={{{Author|}}}
|Author={{{Author|{{{Publisher|{{{Agency|{{{Publication|}}}}}}}}}}}
|Publisher={{{Publisher|{{{Agency|{{{Publication|Global News}}}}}}}}}
|Publisher={{{Publisher|{{{Author|{{{Agency|{{{Publication|Global News}}}}}}}}}}}
|Year=Era Nova, Year {{#expr: 1 + floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 1209600 )}}
|Year=Era Nova, Year {{#expr: 1 + floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 1209600 )}}
|Period={{#switch: {{#expr: 1 + ( floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 86400) mod 14 ) }}
|Period={{#switch: {{#expr: 1 + ( floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 86400) mod 14 ) }}
| 1 = January
| 1 = January
| 2 = January--February
| 2 = January-February
| 3 = February--March
| 3 = February-March
| 4 = March--April
| 4 = March-April
| 5 = April--May
| 5 = April-May
| 6 = May--June
| 6 = May-June
| 7 = June--July
| 7 = June-July
| 8 = July--August
| 8 = July-August
| 9 = August--September
| 9 = August-September
| 10 = September--October
| 10 = September-October
| 11 = October
| 11 = October
| 12 = October--November
| 12 = October-November
| 13 = November--December
| 13 = November-December
| 14 = Late December
| 14 = Late December
| #default = January
| #default = January
}}
}}
}}
}}<div style="border: 1px solid #1a1a1a; background-color: #f8f9fa; padding: 16px 20px; margin-bottom: 1.5em; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); font-size: 105%;">{{#if: {{{Subheading|}}}|<div style="font-size: 140%; font-weight: bold; margin-bottom: 10px; border-bottom: 1px solid #c8ccd1; padding-bottom: 6px; color: #1a1a1a;">{{{Subheading}}}</div>}}<div style="font-size: 92%; color: #54595d; line-height: 1.6;"><b>In-universe date:</b> Era Nova, {{#switch: {{#expr: 1 + ( floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 86400) mod 14 ) }}
 
<div style="border: 1px solid #1a1a1a; background-color: #f8f9fa; padding: 16px 20px; margin-bottom: 1.5em; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); font-size: 105%;">{{#if: {{{Subheading|}}}|<div style="font-size: 140%; font-weight: bold; margin-bottom: 10px; border-bottom: 1px solid #c8ccd1; padding-bottom: 6px; color: #1a1a1a;">{{{Subheading}}}</div>}}<div style="font-size: 92%; color: #54595d; line-height: 1.6;"><b>In-universe date:</b> Era Nova, {{#switch: {{#expr: 1 + ( floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 86400) mod 14 ) }}
| 1 = January
| 1 = January
| 2 = January--February
| 2 = January-February
| 3 = February--March
| 3 = February-March
| 4 = March--April
| 4 = March-April
| 5 = April--May
| 5 = April-May
| 6 = May--June
| 6 = May-June
| 7 = June--July
| 7 = June-July
| 8 = July--August
| 8 = July-August
| 9 = August--September
| 9 = August-September
| 10 = September--October
| 10 = September-October
| 11 = October
| 11 = October
| 12 = October--November
| 12 = October-November
| 13 = November--December
| 13 = November-December
| 14 = Late December
| 14 = Late December
| #default = January
| #default = January
}}, Year {{#expr: 1 + floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 1209600 )}}<br>
}}, [[:Category:Era Nova, Year {{#expr: 1 + floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 1209600 )}}|Year {{#expr: 1 + floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 1209600 )}}]]<br>
<b>Real-world date:</b> {{{RealDate}}}<br>
<b>Real-world date:</b> {{{RealDate}}}<br>
<b>{{#if: {{{Author|}}} | Author | Publisher }}:</b> {{#if: {{{Author|}}} | [[{{{Author}}}]] | {{{Publisher|{{{Agency|{{{Publication|Global News}}}}}}}}} }}
<b>{{#if: {{{Author|}}} | Author | Publisher }}:</b> {{#if: {{{Author|}}} | [[{{{Author}}}]] | {{{Publisher|{{{Agency|{{{Publication|Global News}}}}}}}}} }}
Line 53: Line 46:


<!-- AUTOMATED CATEGORIZATION WITH SWITCH LOGIC -->
<!-- AUTOMATED CATEGORIZATION WITH SWITCH LOGIC -->
[[Category:events]]
[[Category:{{#switch: {{{Type|Character News}}}
[[Category:{{#switch: {{{Type|Character News}}}
| Global = Global News
| Global = Global News
Line 67: Line 61:
<div style="background-color: #ffe6e6; border: 2px solid #ff0000; padding: 15px; margin-bottom: 15px; border-radius: 5px;">
<div style="background-color: #ffe6e6; border: 2px solid #ff0000; padding: 15px; margin-bottom: 15px; border-radius: 5px;">
<span style="color: #cc0000; font-weight: bold; font-size: 110%;">CRITICAL DATE FORMAT WARNING</span><br>
<span style="color: #cc0000; font-weight: bold; font-size: 110%;">CRITICAL DATE FORMAT WARNING</span><br>
When using the <b>RealDate</b> parameter, you <b>MUST</b> write it in strict <b>YYYY-MM-DD</b> format (e.g., <tt>2026-08-26</tt>).<br>
When using the <b>RealDate</b> parameter, you <b>MUST</b> write it in strict <b>YYYY-MM-DD</b> format (e.g., <tt>2026-09-15</tt>).<br>
<u>DO NOT</u> use slashes or short-hand like <tt>26/08/26</tt>, or the wiki math engine will crash with an error!
<u>DO NOT</u> use slashes or short-hand like <tt>15/09/26</tt>, or the wiki math engine will crash with an error!
</div>
</div>


Line 74: Line 68:
<pre>
<pre>
{{News Header
{{News Header
| Title      = The Goldman Company
| Type      = Character News  <!-- Options: Character News, Global News, Domestic News -->
| Type      = Character News  <!-- Options: Character News, Global News, Domestic News -->
| Subheading = Basil's Story, Part I
| Subheading = Basil's Story, Part I
| RealDate  = 2026-07-29
| 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 88: Line 81:
"description": "Universal automated news and dispatch header for Project Aquila.",
"description": "Universal automated news and dispatch header for Project Aquila.",
"params": {
"params": {
"Title": {
"label": "Page Title (REQUIRED)",
"description": "The clean title displayed at the top of the page (hiding the character subpage prefix).",
"type": "string",
"required": true,
"suggested": true
},
"Type": {
"Type": {
"label": "News Category Type",
"label": "News Category Type",
Line 116: Line 102:
"RealDate": {
"RealDate": {
"label": "Real-world date (REQUIRED)",
"label": "Real-world date (REQUIRED)",
"description": "MUST BE YYYY-MM-DD (e.g. 2026-07-29). Do NOT use slashes!",
"description": "MUST BE YYYY-MM-DD. Do NOT use slashes!",
"type": "string",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true,
"example": "2026-09-15"
},
},
"Author": {
"Author": {

Latest revision as of 09:27, 15 September 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 -->
| Subheading = Basil's Story, Part I
| 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
News Category TypeType

Defines the main category. Suggested values: Character News, Global News, Domestic News

Suggested values
Character News Global News Domestic News
Default
Character News
Stringrequired
Subheading / HeadlineSubheading

Optional title or headline displayed at the top of the header box.

Stringsuggested
Real-world date (REQUIRED)RealDate

MUST BE YYYY-MM-DD. Do NOT use slashes!

Example
2026-09-15
Stringrequired
Author (Character)Author

Character author name (creates an author category and wiki link). Leave blank if using a news Publisher/Agency.

Page namesuggested
Publisher / AgencyPublisher

Name of the news outlet (use this instead of Author for Global/Domestic news).

Stringsuggested