Toggle menu
3
389
1
853
Seul En Groupe
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 16:23, 5 September 2024 by pzwiki>Vaileasys (changed default date format to ISO 8601 and respect user preference)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Protection

File:Notebook.pngDocumentation

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

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

Blogs

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

Wiki news

{{News/core|type=wiki
	|date=
	|text=
}}

Parameters

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

1
Defines the formatting and parameters used.
Can be either one of release, blog or wiki.
text
Used as a brief description of the article. Displayed as the announcement heading.
link
External URL.
Only used with release and blog.
date
Used to display the date the article was published.

Examples

Releases

{{News/core
  | release
  | date = 2022-12-12
  | text = Hotfix 41.78.16
  | link = 61699-4178-released
  }}
Displays:
2022-12-12
Hotfix 41.78.16

Blogs

{{News/core
  | blog
  | date = 2024-06-27
  | text = The Biomic Man
  | link = 2024/06/the-biomic-man
  }}
Displays:
2024-06-27
The Biomic Man

Wiki news

{{News/core
  | wiki
  | date = 2024-06-02
  | text = May 2024 summary
  }}
Displays:
2024-06-02
May 2024 summary

How to translate

This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. Copy the code wrapped in the <noinclude> tag in this template into the page you created.
    {{Translation guide}} template should be removed from the translated documentation.
  3. Translate the page according to the translation requirements of normal pages.

See also

Editors can experiment in this template's sandbox.