Template:News/core

From PZwiki
Lock-locked.png
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."
Notebook.pngTemplate 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:

  • release
  • blog
  • wiki

Releases

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

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

Blogs

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

{{News/core|type=blog
	|index=
	|title=
	|date=
	|text=
	|link_blog=
}}

Wiki news

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

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

Parameters

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

type
Defines the formatting and parameters used.
Can be either one of release, blog or wiki.
index
A unique identifier for a page to determine which template should be used.
Any number from 1 to 3 for release and wiki, or 1 to 6 for blog.
title
Displays the title of an article.
Only used with blog.
text
Used as a brief description of the article. Displayed as the announcement heading.
Used for all types.
link
External URL. Entire URL must be entered, including protocol.
Only used with release and blog. Will only display if link_blog is empty for blog.
link_blog
External URL to the blog post. Only the page name must be entered. Will automatically link to projectzomboid.com/blog/news/.
Only used with blog.
date
Used to display the date the article was published.
Only used with release and blog.
month
The month the article was published. Used in the link to PZwiki:News to determine the anchor point.
Only used with wiki.
day
The day (number) the article was published. Used in the link to PZwiki:News to determine the anchor point.
Only used with wiki
year
The year the article was published.
Only used with wiki

Examples

Releases

{{News/core|type=release
	|index=1
	|date={{int: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]

Blogs

Using 'link_blog'

{{News/core|type=blog
	|index=1
	|title=Zedrum
	|date={{int: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_blog=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]

Using 'link'

{{News/core|type=blog
	|index=1
	|title=Zedrum
	|date={{int: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]

Wiki news

{{News/core|type=wiki
	|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]

How to translate

This template gets some of its translations from {{Translation string}}.

See also

Editors can experiment in this template's sandbox.