Template:News/doc: Difference between revisions

From PZwiki
m (Update release/blog/wiki)
(Add links)
Line 7: Line 7:


===Game releases===
===Game releases===
Can display up to three different announcements. Differentiated with the <code>index</code> parameter [1 to 3].  
Can display up to three different [https://theindiestone.com/forums/index.php?/forum/35-pz-updates/&sortby=start_date&sortdirection=desc game releases]. Differentiated with the <code>index</code> parameter [1 to 3].  
<pre>{{News/core|type=release
<pre>{{News/core|type=release
|index=
|index=
Line 16: Line 16:


===Blog posts===
===Blog posts===
Can display up to six different official news articles. Differentiated with the <code>index</code> parameter [1 to 6].  
Can display up to six different [https://projectzomboid.com/blog/news/ blog news] articles. Differentiated with the <code>index</code> parameter [1 to 6].  
<pre>{{News/core|type=blog
<pre>{{News/core|type=blog
|index=
|index=
Line 26: Line 26:


===Wiki news===
===Wiki news===
Can display up to three different community news articles. Differentiated with the <code>index</code> parameter [1 to 3].  
Can display up to three different [[PZwiki:Community News|wiki news]] articles. Differentiated with the <code>index</code> parameter [1 to 3].  
<pre>{{News/core|type=wiki
<pre>{{News/core|type=wiki
|index=
|index=

Revision as of 20:17, 19 May 2023

Notebook.png
This is a documentation subpage for Template:News.
It contains usage information and other content that is not part of the original template page.

This template is used on the main page of the wiki for displaying the news.

This template uses {{News/core}} for the styling.

Usage

For more information about editing the parameters within this template, see Template:News/core.

Game releases

Can display up to three different game releases. Differentiated with the index parameter [1 to 3].

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

Blog posts

Can display up to six different blog news articles. Differentiated with the index parameter [1 to 6].

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

Wiki news

Can display up to three different wiki news articles. Differentiated with the index parameter [1 to 3].

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

Examples

Announcement

{{News|announcement}}
Displays:

Official

{{News|official}}
Displays:

Community

{{News|community}}
Displays:


See also