Template:News/doc: Difference between revisions
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 | ||
|index= | |||
| | |date= | ||
| | |text= | ||
| | |link= | ||
| | |||
| | |||
}}</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 | ||
|index= | |||
|title= | |||
|date= | |||
|text= | |||
|link= | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}}</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 | ||
|index= | |||
|month= | |||
|day= | |||
| | |year= | ||
| | |text= | ||
| | |||
| | |||
| | |||
| | |||
}}</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
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: