Difference between revisions of "Template:NewsHeader"

From ShadowHaven Reloaded
Jump to navigation Jump to search
Tag: visualeditor-wikitext
Tag: visualeditor-wikitext
Line 1: Line 1:
<includeonly>[[Category:News]]</includeonly>
<includeonly>[[Category:News]]</includeonly>
=={{{NewsSource}}}==
==[[NewsSource::{{{NewsSource}}}]]==
{{{Intro|}}}
{{{Intro|}}}
{{#if: {{{Image|}}}| [[{{{Image}}}{{!}}center|{{{ImageSizeOverride|}}}]] }}
{{#if: {{{Image|}}}| [[{{{Image}}}{{!}}center|{{{ImageSizeOverride|}}}]] }}
Date: [[hasDate::{{{Date}}}]] {{#if: {{{Reporter|}}}| By: [[HasReporter::{{{Reporter}}}]] }} __NOTOC__ __SHOWFACTBOX__ __NOEDITSECTION__ {{#if: {{{Metaplot|}}}| {{#set:hasMetaplot={{{Metaplot}}}}} }} {{#set:NewsSource={{{NewsSource}}}}}
Date: [[hasDate::{{{Date}}}]] {{#if: {{{Reporter|}}}| By: [[HasReporter::{{{Reporter}}}]] }} __NOTOC__ __SHOWFACTBOX__ __NOEDITSECTION__ {{#if: {{{Metaplot|}}}| {{#set:hasMetaplot={{{Metaplot}}}}} }}  
<noinclude>
<noinclude>
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"

Revision as of 00:37, 30 April 2020

{{{NewsSource}}}

Date: {{{Date}}}

Usage

This template is intended to be used along with the creation of news articles. It generates tags and ensures the page is set to Category:News.

The fields should be filled in as follows:

Field Use
Image Optional: Add file path for image you would like displayed at the top of the news article. e.g. File:Horizon.png
ImageSizeOverride Optional: Sets the size for the above image. For example, File:Horison.png works best when set to 660px
Date Required: The date must be added in YYYY-MM-DD format. If this field is not filled, it will not show up on The Story So Far or Category:News
NewsSource Required: This sets the header for the news source. e.g. Horizon News Network
Reporter Optional: Sets an IC reporter and credits them as the author of the story.
Metaplot Optional: If the news article is a part of a metaplot, note so here and it will show up on the metaplot page as well as its association on The Story So Far.
Intro Optional: Simply allows you to add additional text ahead of the image, if an image is selected.
{{NewsHeader|
|Image=
|ImageSizeOverride=
|Date=
|NewsSource=
|Reporter=
|Metaplot=
|Intro=
}}


Note that this Template may be duplicated multiple times on the same News Article without harming anything; however, the required fields must still be used. See Gas Leak Leads to Robbery at Tacoma Mall for an example of this.