Template:News Header: Difference between revisions

From aquila
Jump to navigation Jump to search
mNo edit summary
Tag: Manual revert
mNo edit summary
Line 31: Line 31:


<!-- Main Article Title Inside Box -->
<!-- Main Article Title Inside Box -->
<div style="font-size: 180%; font-family: 'Georgia', serif; font-weight: normal; margin-bottom: 8px; line-height: 1.2; color: #202122;">{{#titleparts:{{FULLPAGENAME}}|1|-1}}</div>
<div style="font-size: 180%; font-family: 'Georgia', serif; font-weight: normal; margin-bottom: 12px; border-bottom: 1px solid #c8ccd1; padding-bottom: 8px; line-height: 1.2; color: #202122;">{{#titleparts:{{FULLPAGENAME}}|1|-1}}</div>
 
<!-- Optional Subheading with Conditional Divider -->
{{#if: {{{Subheading|}}}|<div style="font-size: 130%; font-weight: bold; margin-bottom: 12px; border-top: 1px solid #c8ccd1; padding-top: 8px; border-bottom: 1px solid #c8ccd1; padding-bottom: 6px; color: #1a1a1a;">{{{Subheading}}}</div>}}


<!-- Metadata Section -->
<!-- Metadata Section -->
<div style="font-size: 92%; color: #54595d; line-height: 1.6; {{#if: {{{Subheading|}}}||border-top: 1px solid #c8ccd1; padding-top: 12px;}}"><b>In-universe date:</b> Era Nova, {{#switch: {{#expr: 1 + ( floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 86400) mod 14 ) }}
<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 = Early January
| 1 = Early January
| 2 = January--February
| 2 = January--February
Line 81: Line 78:
<pre>
<pre>
{{News Header
{{News Header
| 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
| 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 105: Line 101:
"Domestic News"
"Domestic News"
]
]
},
"Subheading": {
"label": "Subheading / Headline",
"description": "Optional title or headline displayed at the top of the header box.",
"type": "string",
"required": false,
"suggested": true
},
},
"RealDate": {
"RealDate": {

Revision as of 20:11, 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.

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
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