Template:News Header: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="border: 1px solid #1a1a1a; background-color: #f8f9fa; padding: {{#if: {{{Subheading|}}} | 15px 22px | 10px 22px }}; margin-bottom: 1.5em; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); font-size: 105%;">
<div style="border: 1px solid #1a1a1a; background-color: #f8f9fa; padding: 12px 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: 8px; border-bottom: 1px solid #c8ccd1; padding-bottom: 6px; color: #1a1a1a;">{{{Subheading}}}</div>}}<div style="font-size: 92%; color: #54595d;"><b>In-universe date:</b> Era Nova, {{#switch: {{#expr: 1 + floor( (({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 86400) mod 14 )}}
 
<!-- OPTIONAL SUBHEADING / HEADLINE -->
{{#if: {{{Subheading|}}} |<div style="font-size: 140%; font-weight: bold; margin-bottom: 8px; border-bottom: 1px solid #c8ccd1; padding-bottom: 6px; color: #1a1a1a;">{{{Subheading}}}</div>|}}
 
<!-- HEADER / METADATA BLOCK -->
<div style="font-size: 92%; color: #54595d;">
<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
Line 26: Line 19:
<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}}}}}}}}} }}
</div>
</div></div>
 
</div>


<!-- AUTOMATED CATEGORIZATION WITH SWITCH LOGIC -->
<!-- AUTOMATED CATEGORIZATION WITH SWITCH LOGIC -->
Line 85: Line 76:
},
},
"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 (e.g. 2026-07-29). Do NOT use slashes!",
"type": "string",
"type": "string",

Revision as of 18:43, 26 August 2026

CRITICAL DATE FORMAT WARNING
When using the RealDate parameter, you MUST write it in strict YYYY-MM-DD format (e.g., 2026-08-26).
DO NOT use slashes or short-hand like 26/08/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-07-29
| 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 (e.g. 2026-07-29). Do NOT use slashes!

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