Template:Update list: Difference between revisions
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- Clean update param if it starts with Update: |
<includeonly><!-- Clean update param if it starts with Update: |
||
-->{{#vardefine:update|{{#ifeq:{{#sub:{{{update|}}}|0|7}}||{{#sub:{{{update|}}}|7}}|{{{update|}}}}}}}<!-- |
-->{{#vardefine:update|{{#ifeq:{{#sub:{{{update|}}}|0|7}}|Update:|{{#sub:{{{update|}}}|7}}|{{{update|}}}}}}}<!-- |
||
--><span class="update-list"><span class="update-type {{#if:{{{type|}}}|{{{type}}}-update|}}">{{#switch:{{{type|update}}}|update=[[Game updates|update]]|patch=[[Patch Notes|patch]]|ninja=[[Ninja updates|ninja]]|hotfix=[[Patch Notes|hotfix]]|coldfix=[[Patch Notes|coldfix]]|warmfix=[[Patch Notes|warmfix]]|hidden=[[Hidden updates|hidden]]|nxt=[[NXT|nxt]]|beta=[[Beta|beta]]}}</span> '''{{{date|{{#dpl:namespace= |
--><span class="update-list"><span class="update-type {{#if:{{{type|}}}|{{{type}}}-update|}}">{{#switch:{{{type|update}}}|update=[[Game updates|update]]|patch=[[Patch Notes|patch]]|ninja=[[Ninja updates|ninja]]|hotfix=[[Patch Notes|hotfix]]|coldfix=[[Patch Notes|coldfix]]|warmfix=[[Patch Notes|warmfix]]|hidden=[[Hidden updates|hidden]]|nxt=[[NXT|nxt]]|beta=[[Beta|beta]]}}</span> '''{{{date|{{#dpl:namespace=Main|title={{#var:update}}|include={Update}:date,{Patch Notes}:date|format=,,,|noresultsheader=Unknown date}}}}}{{#if:{{{update|}}}| ([[{{#ifeq:{{#sub:{{{update}}}|0|14}}|Hidden updates||Game updates/}}{{#var:update}}|Update]])|{{Mainonly|[[Category:Missing update]]}}}}:'''</span></includeonly><noinclude>{{/doc}}</noinclude> |
Latest revision as of 10:36, 7 November 2024
This template creates an entry for an article's update history. You must only put this template inside of {{Update history}}
, as it acts as a wrapper container. See BS:HISTORY for guidance. You should use {{UL}}
as an alias for this template.
Usage
type
must be one of the following:- empty (defaults to
update
) update
ninja
patch
coldfix
hotfix
warmfix
hidden
nxt
beta
- empty (defaults to
update
is the name of the update page, without the Update: prefix included. This parameter may be left empty.date
uses the format 23 November 2024
Example
{{UH| * {{UL|type=hidden|update=2024-11-06|date=6 November 2024}} ** Winkled Starfish has been recoloured. * {{UL|update=2024-11-06|date=6 November 2024}} ** Added to game. * {{UL|type=patch|update=2024-11-06|date=6 November 2024}} ** The level required to catch Wrinkled Starfish has been decreased. * {{UL|type=hotfix|update=2024-11-06|date=6 November 2024}} ** Characters with very long names can now be deleted. * {{UL|type=ninja|update=2024-11-06|date=6 November 2024}} ** Wrinkled Starfish now have less wrinkles. }}
Produces:
- Update):
6 November 2024 (
- Winkled Starfish has been recoloured.
Template data
Show/hide template's data | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date. This template creates an entry for an article's update history. It must be placed inside of an {{Update history}} template. It takes three parameters. The first is the type of the update (update, ninja, patch, coldfix, hotfix, warmfix, hidden, or nxt). The next is the update name (the article name of the update without the Update: prefix included. This parameter may be left empty for Hidden updates or other updates without an update article on the wiki. The last is the date parameter in the format (DD MMMM YYYY, ex. 14 November 2016)
|