Template:News/core

From PZwiki
Jump to: navigation, search
This page has been put into protection by a PZwiki administrator.
Reason: "This template is used on the Main Page of the wiki, therefore is considered to be High Risk."
[view] [edit] [history] [purge] Template documentation
This is the core template used in {{News}} to control all the styling.

Usage

This template has three different types, used with the title parameter.
These are:

  • announcement
  • official
  • community

Announcement

There can be a maximum of 3 different entries, identified with the index [1 to 3].

{{News/core|type=announcement
	|index=
	|date=
	|text=
	|link=
}}

Official

There can be a maximum of 6 different entries, identified with the index [1 to 6].

{{News/core|type=official
	|index=
	|title=
	|date=
	|text=
	|link=
}}

Community

There can be a maximum of 3 different entries, identified with the index [1 to 3].

{{News/core|type=community
	|index=
	|month=
	|day=
	|year=
	|text=
}}

Parameters

Each parameter with have a different styling, depending on the type.

Parameter Description
type Defines the formatting and parameters used.
Can be either one of announcement, official or community.
index A unique identifier for a page to determine which template should be used.
Any number from 1 to 3 for announcement and community, or 1 to 6 for official.
title Displays the title of an article.
Only used with official.
text Used as a brief description of the article. Displayed as the announcement heading.
Used for all types.
link External URL to the article.
Can only
date Used to display the date the article was published.
Only used with announcement and official.
month The month the article was published. Used in the link to PZwiki:Community_News to determine the anchor point.
Only used with community.
day The day (number) the article was published. Used in the link to PZwiki:Community_News to determine the anchor point.
Only used with community
year The year the article was published.
Only used with community

Examples

Announcement

{{News/core|type=announcement
	|index=1
	|date={{Translation|October}} 16, 2019
	|text=Build 41 released to IWBUMS beta branch!
	|link=https://projectzomboid.com/blog/2019/10/build-41-iwbums-out/
}}
Displays:
October 16, 2019
Build 41 released to IWBUMS beta branch! [Read more]

Official

{{News/core|type=official
	|index=1
	|title=Zedrum
	|date={{Translation|February}} 18, 2021
	|text=It’s been an up and down week in terms of MP development for Build 41. Last week’s moderately successful Wednesday…
	|link=https://projectzomboid.com/blog/news/2021/02/zedrum/
}}
Displays:

Zedrum ⟩ February 18, 2021
It’s been an up and down week in terms of MP development for Build 41. Last week’s moderately successful Wednesday… [Read more]

Community

{{News/core|type=community
	|index=1
	|month=October
	|day=16
	|year=2019
	|text=It’s been several months since the last update, however a lot of both minor and major updates have been made
}}
Displays:
October 16, 2019
It’s been several months since the last update, however a lot of both minor and major updates have been made… [Read more]

See also

Documentation transcluded from Template:News/core/doc.
Editors can experiment in this template's sandbox (create)