• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Signpost/Deadline/dateswrap

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Signpost/Deadline
Template documentation

Contents

  • 1 Purpose
    • 1.1 Input parameters
      • 1.1.1 previous-issue
      • 1.1.2 next-issue
      • 1.1.3 template
    • 1.2 Passthrough parameters
    • 1.3 Output parameters
      • 1.3.1 writing-previous, writing-next
      • 1.3.2 next-year, next-month, next-day, next-hour, next-minute
      • 1.3.3 writing-next-year, writing-next-month, writing-next-day, writing-next-hour, writing-next-minute
  • 2 History

Purpose

Part of this:

Deadlines (UTC) Current time is 2025-08-25 15:29:56 (
  • v
  • t
  • e
)

Writing: 31 August 00:00 (6 days left; 27%)
Publishing: 1 September 00:00 (7 days left; 30%)
There are 5 days, 8 hours, 30 minutes and 4 seconds until deadline. (refresh)


Convenience wrapper around {{Signpost/Deadline/core}} to generate formatted template parameters. This template primarily operates on two date/time input parameters, which may be defined using any standard notation supported by the #time parser function. Several other passthrough parameters are also accepted.

Input parameters

previous-issue

Recommended format: previous-issue=YYYY-MM-DD

The date when the most recent Signpost issue was released. (Year, month, and day; time components may be included but will be silently ignored.)

next-issue

Recommended format: next-issue=YYYY-MM-DD HH:NN UTC

The future date on which the next Signpost will be released (the deadline). (Should include time of release, in 24-hour format with timezone identifier.)

template

Name of template to call. Optional, defaults to Signpost/Deadline/core.

Passthrough parameters

Defined by Template:Signpost/Deadline/core. Forwarded unchanged by this wrapper.

  • draft
  • short
  • refresh
  • previous-issue
  • next-issue

Output parameters

Additional parameters are generated from the |previous-issue= and |next-issue= inputs.

writing-previous, writing-next

Computed from |previous-issue= and |next-issue=, respectively, by subtracting "1 day" using the {{#time:}} parser function.

next-year, next-month, next-day, next-hour, next-minute

Individual component values split out from |next-issue= using the {{#time:}} mw:parser function. Passed to {{countdown}} by {{Signpost/Deadline/core}}.

writing-next-year, writing-next-month, writing-next-day, writing-next-hour, writing-next-minute

The same as the above, but for the writing deadline (one day before) instead of the publication deadline.

History

{{Signpost/Deadline/core}} previously required separate parameters for each year, month, day, hour, minute parameter, then manipulated them into other values or formats required. This created huge redundancy in the template code and made updating its parameters tedious. This wrapper accepts concise, human-friendly parameters, then manipulates them in advance to produce the values required for {{Signpost/Deadline/core}}, leaving its own code much cleaner and simpler.

Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Signpost/Deadline/dateswrap&oldid=1183372600"
Last edited on 3 November 2023, at 22:08

Languages

    • বাংলা
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 3 November 2023, at 22:08 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop