Jump to content

Template:Prepare

From Wikinews, the free news source you can write!
(Redirected from Template:Prepared)
[edit] Template documentation

This template marks an article as a prepared story — a page describing a scheduled or anticipated event that has not yet occurred.

Prepared stories must be created as subpages of Wikinews:Story preparation (for example: Wikinews:Story preparation/Example headline). They must not exist in article mainspace.

Unless nocat is set, the template automatically categorizes pages into Category:Prepared stories.

Usage

[edit]

Place the template at the very top of the page:

{{prepare}}

Optional parameters

[edit]
  • event= — describes the scheduled or anticipated event.
  • date= — specifies the expected date of the focal event.
  • nocat= — any non-blank value suppresses categorization.

Automatic location checks

[edit]

The template automatically verifies that the page is correctly located.

It checks two independent conditions:

  1. Whether the page is in article mainspace.
  2. Whether the page is a subpage of Wikinews:Story preparation.

Based on those checks:

  • If the page is already a proper subpage of Wikinews:Story preparation, no additional instructions are shown.
  • If the page is in article mainspace, the template displays instructions explaining how to:
    • Use the Move tab
    • Select Wikinews from the namespace dropdown
    • Rename the page to:
Story preparation/CURRENT PAGE TITLE
  • If the page is not in mainspace but is not under Story preparation, the template displays instructions to move it under:
Wikinews:Story preparation/CURRENT PAGE TITLE

These checks help prevent prepared stories from being created or left in article mainspace.

Examples

[edit]
Markup Result
{{prepare}}


{{prepare|event=Example event}}


{{prepare|date=September 17, 2020}}


{{prepare|event=Example event|date=September 17, 2020}}


Internals

[edit]

Non-blank parameter handling is delegated to {{prepare/event}} and {{prepare/date}}.

Location detection relies on:

  • 10 — detects article mainspace (namespace 0)
  • Prepare
  • Template:Prepare

See also

[edit]