Template:News/doc: Difference between revisions

From PZwiki
mNo edit summary
(updated documentation for template changes)
Line 4: Line 4:
This template uses {{tlx|News/core}} for the styling.
This template uses {{tlx|News/core}} for the styling.
==Usage==
==Usage==
For more information about editing the parameters within this template, see [[Template:News/core]].
===Announcement===
===Announcement===
<pre>
Can display up to three different announcements. Differentiated with the <code>index</code> parameter [1 to 3].
{{News/core
<pre>{{News/core|type=announcement
| ann_date1 =
|index=
| ann_text1 =  
|date=
| ann_date2 =  
|text=
| ann_text2 =  
|link=
| ann_date3 =  
| ann_text3 =  
}}</pre>
}}</pre>
===Official===
===Official===
<pre>
Can display up to six different official news articles. Differentiated with the <code>index</code> parameter [1 to 6].
{{News/core
<pre>{{News/core|type=official
| off_date1 =
|index=
| off_text1 =
|title=
| off_link1 =
|date=
| off_date2 =
|text=
| off_text2 =
|link=
| off_link2 =
| off_date3 =
| off_text3 =
| off_link3 =
| off_date4 =
| off_text4 =
| off_link4 =
| off_date5 =  
| off_text5 =  
| off_link5 =  
| off_date6 =  
| off_text6 =  
| off_link6 =  
}}</pre>
}}</pre>
===Community===
===Community===
<pre>
Can display up to three different community news articles. Differentiated with the <code>index</code> parameter [1 to 3].
{{News/core
<pre>{{News/core|type=community
| comm_date1 =
|index=
| comm_text1 =
|month=
| comm_link1 =
|day=
| comm_date2 =  
|year=
| comm_text2 =  
|text=
| comm_link2 =  
| comm_date3 =  
| comm_text3 =  
| comm_link3 =  
}}</pre>
}}</pre>
==Examples==
==Examples==
===Announcement===
===Announcement===
<pre>{{News|announcement}}</pre>{{News|announcement}}
<pre>{{News|announcement}}</pre>
:<b>Displays</b>:
{{News|announcement}}
----
----
===Official===
===Official===
<pre>{{News|official}}</pre>
<pre>{{News|official}}</pre>
:<b>Displays</b>:
{{News|official}}
{{News|official}}
----
----
===Community===
===Community===
<pre>{{News|community}}</pre>
<pre>{{News|community}}</pre>
:<b>Displays</b>:
{{News|community}}
{{News|community}}
==See also==
*[[Template:Current version]]
*[[Template:MainPage News]]
*[[Template:MainPage Community]]
*[[PZwiki:Community News]]

Revision as of 15:29, 19 February 2021

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.

Announcement

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

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

Official

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

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

Community

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

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

Examples

Announcement

{{News|announcement}}
Displays:

Official

{{News|official}}
Displays:

Community

{{News|community}}
Displays:


See also