This template allows you to mark pages as "new".
Importing the Template
The import file is included in the archive file HW-New.zip. Unpack the zip file first.
On the page Special:Import follow these steps:
- Select file and choose HW-New.xml.
- Enter an Interwiki prefix. Since this field is required, simply add hw (for hallowelt).
- Keep the selection Import to default locations.
- Click Upload file... .
The template is now available in your wiki.
Parameter
| Parameter | Bezeichnung | Value | Description | |
|---|---|---|---|---|
| 1 | newfrom | New from | Date
(Format: yyyy-mm-dd) |
Optional. Time at which the "new" label should appear. If no date is specified, the "new" label is displayed immediately. |
| 2 | newuntil | New until | Date
(Format: yyyy-mm-dd) |
Mandatory. Each "new" lable requires an end date until which the change is marked as "new." |
| 3 | newtext | Description | Text | Mandatory. Description of the content change. The description can be linked in a list of all new content (default). |
| 4 | pagemarker | Page marker | Boolean | Optional. The value can be set to 1 or 0. If the value is set to 1, the “new” label is not generated on the page, but it does appear in the list. In this case, the template is typically placed at the top of the page rather than next to a heading. |
Marking New Content
This is how you mark a section of a page as “new”:
- In the visual editor, go to Insert Template and add the New Template at the end of a section heading.
- Enter the parameters.
- Save the page.
The "new" label is displayed to users until the specified end date.

Removing the Label
Although the label is no longer displayed after the end date has passed, the template remains embedded on the page. It can be removed manually at any time. A list of all pages containing labels can be found on the Template:New page.
In edit mode, expired labels are shown in gray.

Listing New Content
A list of all labels with links to the corresponding pages can be generated on any wiki page using the following semantic query:
{{#ask:[[New/until::>>{{#time:Y-m-d|now - 1 day}}]]
|?New/from
|?New/until
|?New/text
|format=plainlist
|template=New/format
|link=none
|default=There are no announced changes.
}}
Pages included in the import
The xml import creates the following files in your wiki:
- Template:New
- Template:New/format
- Template:New/outputformat
- Template:New/outputintro
- Template:New/outputoutro
- Template:New/styles.css
- Property:New
- Property:New/from
- Property:New/text
- Property:New/until