No edit summary |
mNo edit summary |
||
(50 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src=" | <templatestyles src="NewsArticle.css" /> | ||
<includeonly>{{# | <noinclude> | ||
{{#cargo_declare:_table=News | |||
|image=File | |||
|image_alt=String | |||
|tags=List (,) of String | |||
|targets=List (,) of Page | |||
|date=Datetime | |||
|author = Page | |||
|category= List (,) of String (hierarchy; allowed values= | |||
*Transfer Market | |||
*Drama | |||
*Business | |||
**Companies | |||
**Hires | |||
**Investments | |||
**Mergers and Acquisitions | |||
**Sponsorships | |||
*More | |||
) | |||
|game=List (,) of String (hierarchy; allowed values= | |||
*Age of Empires | |||
*Apex Legends | |||
*Brawl Stars | |||
*Call of Duty | |||
*Counter Strike | |||
*Dota 2 | |||
*FIFA | |||
*Fortnite | |||
*Hearthstone | |||
*League of Legends | |||
*Mobile Legends | |||
*NBA 2K | |||
*Overwatch | |||
*PUBG | |||
*PUBG Mobile | |||
*Rainbow Six | |||
*Rocket League | |||
*Smash | |||
*Starcraft II | |||
*Valorant | |||
*Warcraft III | |||
*World of Warcraft | |||
*Wild Rift | |||
) | |||
|content=Text}} | |||
</noinclude><includeonly>{{DISPLAYTITLE: {{{seo_title|}}} }}{{#if: {{{stub|}}} | {{Stub|type=News|comment={{{stub}}} }} }}{{#cargo_store:_table=News | |||
|image={{{image|}}} | |||
|image_alt={{{alt|}}} | |||
|tags={{{tags|}}} | |||
|targets={{{target|}}} | |||
|date={{{date|}}} | |||
|author={{{author|}}} | |||
|category={{{category|}}} | |||
|game={{{game|}}} | |||
|content={{{content|}}} | |||
}}{{#seo: | |||
|title={{{seo_title|}}} | |||
|description={{{seo_description|}}} | |||
|keywords={{{seo_keywords|}}} | |||
|image={{{image|}}} | |||
|image_alt={{{alt|}}} | |||
|tags={{{tags|}}} | |||
|targets={{{target|}}} | |||
|date={{{date|}}} | |||
|sources={{{sources|}}} | |||
|author={{{author|}}} | |||
|category={{{category|}}} | |||
|game={{{game|}}} | |||
|content={{{content|}}} | |||
}} | |||
{{NewsNav}} | |||
<div class="news__grid"> | |||
<div> | |||
Written by [[{{{author|}}}]] on {{#time: d F Y H:i | {{{date|}}} }} | |||
{{#if: {{{image|}}} | <div class="resp-img">[[File:{{{image|}}}|800x600px|link=]]</div> }} | |||
{{#if: {{{image|}}} | {{FileDescription|{{{image|}}}}} }} | |||
{{{content|}}} | |||
<div style="clear: both;"></div> | |||
{{#if: {{{tags|}}} | '''Tags:''' {{#arraymap: {{{tags|}}}|,|x|<span class="plainlinks">[{{SERVER}}/News/Search?tag={{urlencode: x}} x]</span>|\s }} }} | |||
{{#if: {{{sources|}}} | | |||
<div> | |||
<b>Sources:</b> <div style="display: inline-flex; flex-wrap: wrap; gap: var(--space-xs);>{{#arraymap: {{{sources|}}}|,|x|x| \s }} </div> | |||
</div> | |||
}} | |||
<div> | |||
<b>Categories:</b><ul class="catlinks" style="display: inline-flex; flex-wrap: wrap; margin: var(--space-xs) 0 0 10px; font-size: 0.8125rem; gap: var(--space-xs); letter-spacing: 0;"> | |||
{{#arraymap: {{{category|}}}|,|x|<li style="">[[News/x|x]]</li>|\s }} | |||
</ul> | |||
</div> | |||
</div> | |||
<div> | |||
{{RelatedNews|tags={{{tags|}}} |categories={{{category|}}} }} | |||
</div> | |||
</div> | |||
[[Category:News]] | |||
</includeonly> |
Latest revision as of 17:41, 29 April 2024
This template defines the table "News". View table.