Template:News Header: Difference between revisions

From aquila
Jump to navigation Jump to search
Created page with "<includeonly> <div style="border: 1px solid #1a1a1a; background-color: #f8f9fa; padding: 15px 22px; margin-bottom: 1.5em; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); font-size: 105%;"> <!-- OPTIONAL SUBHEADING / HEADLINE --> {{#if: {{{Subheading|}}} | <div style="font-size: 140%; font-weight: bold; margin-bottom: 3px; border-bottom: 1px solid #c8ccd1; padding-bottom: 6px; color: #1a1a1a;"> {{{Subheading}}} </div> |}} <!-- HEADER / METADATA BLOCK --> <div..."
 
mNo edit summary
Line 34: Line 34:
</div>
</div>


<!-- AUTOMATED CATEGORIZATION -->
<!-- AUTOMATED CATEGORIZATION WITH SWITCH LOGIC -->
[[Category:{{{Type|News}}}]]
[[Category:{{#switch: {{{Type|Character News}}}
| Global = Global News
| Global News = Global News
| Domestic = Domestic News
| Domestic News = Domestic News
| Character = Character News
| Character News = 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 {{#expr: 1 + floor( ({{#time:U|{{{RealDate}}}}} - {{#time:U|2026-07-28}}) / 1209600 )}}]]
{{#if: {{{Author|}}} | [[Category:{{{Author}}}]] | }}
{{#if: {{{Author|}}} | [[Category:{{{Author}}}]] | }}
</includeonly><noinclude>
</includeonly><noinclude>
<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-08-26</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>26/08/26</tt>, or the wiki math engine will crash with an error!
Line 63: Line 71:
"Type": {
"Type": {
"label": "News Category Type",
"label": "News Category Type",
"description": "Defines the main category. Options: Character News, Global News, Domestic News",
"description": "Defines the main category. Suggested values: Character News, Global News, Domestic News",
"type": "string",
"type": "string",
"required": true,
"required": true,
"default": "Character News"
"default": "Character News",
"suggestedvalues": [
"Character News",
"Global News",
"Domestic News"
]
},
},
"Subheading": {
"Subheading": {
Line 72: Line 85:
"description": "Optional title or headline displayed at the top of the header box.",
"description": "Optional title or headline displayed at the top of the header box.",
"type": "string",
"type": "string",
"required": false
"required": false,
"suggested": true
},
},
"RealDate": {
"RealDate": {
Line 85: Line 99:
"description": "Character author name (creates an author category and wiki link). Leave blank if using a news Publisher/Agency.",
"description": "Character author name (creates an author category and wiki link). Leave blank if using a news Publisher/Agency.",
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": false
"required": false,
"suggested": true
},
},
"Publisher": {
"Publisher": {
Line 91: Line 106:
"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,
"suggested": true
}
}
}
}

Revision as of 17:44, 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