Template:News Header: Difference between revisions

From aquila
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 #e0a96d; color: #0b132b; margin-top: 0; padding-bottom: 0.4em; font-family: 'Georgia', serif;">{{#titleparts:{{FULLPAGENAME}}|1|-1}}</h2>
<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>


<!-- Split Flex Container matching Player Profile style -->
<!-- News Metadata Stats Table (Full Width) -->
<div style="display: flex; flex-wrap: wrap; gap: 2em; align-items: flex-start; margin-top: 1.2em;">
<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;">
 
<!-- Left Column: News Metadata Stats Table -->
<div style="flex: 1; min-width: 280px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 0.8em; font-size: 0.95em; line-height: 1.5; color: #374151;">


<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: 45%; border-bottom: 1px solid #e2e8f0;">In-universe date</td>
   <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 {{#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 )}}]]</td>
}}, [[:Category:Era Nova, Year 5|Year 5]]</td>
</tr>
</tr>
<tr>
<tr>
Line 72: Line 69:
</tr>
</tr>
</table>
</table>
</div>
<!-- Right Column: Optional Excerpt / Summary Box (or Intro note) -->
<div style="flex: 1.5; min-width: 280px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 1.2em; display: flex; flex-direction: column; justify-content: center; color: #4b5563; line-height: 1.6;">
{{{Intro|{{{Summary|{{{Excerpt|This post has no summary excerpt provided.}}}}}}}}}
</div>


</div>
</div>
Line 95: Line 85:
| #default = Character News
| #default = Character News
}}]]
}}]]
[[Category:Era Nova, Year {{#expr: 1 + floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 1209600 )}}]]
[[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 -->
| Excerpt  = Optional short hook or summary text for the right-hand box.
}}
}}


Line 118: Line 107:
<templatedata>
<templatedata>
{
{
"description": "Universal automated news and dispatch header for Project Aquila, styled after the Player Profile template.",
"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",
"required": false,
"suggested": true
},
"Excerpt": {
"label": "Excerpt / Summary / Intro",
"description": "Optional introductory text or hook displayed in the right-hand column box.",
"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.

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