• Home
  • Random
  • Log in
  • Settings
  • About Safer nicotine wiki
  • Disclaimers
Safer nicotine wiki

Template:Show by

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
This template should always be substituted (i.e., use {{subst:Show by}}). Any accidental transclusions will be automatically substituted by a bot.

Contents

  • 1 Usage
    • 1.1 Warnings
    • 1.2 Limitations
    • 1.3 Examples
    • 1.4 Related templates
    • 1.5 See also

Usage

{{Show by}} is a wrapper for {{Show by date}} that will automatically display one of two statements based on whether a particular date/time has been reached.

{{subst:show by|date/time|text before|text after|demo=}}

  • Parameter 1 (date/time) is the date and/or time that the template should show the text after. Until that date and time, the text before is shown. The date/time parameter can be in any format accepted by PHP's strtotime() function. See mw:Help:Extension:ParserFunctions#.23time for more information.
  • Parameter 2 (text before) is the text to be shown if the current date is before the date specified in the previous parameters; it may be left empty if only the text after needs to be displayed at the specified date
  • Parameter 3 (text after) is the text to be shown if the current date is on or after the date specified in the previous parameters; it may be left empty if only the text before needs to be displayed until the specified date
  • The demo parameter (demo=yes) can be used to prevent automatic substitution of the template.

This template should always be substituted ({{subst:Show by}}). This will insert the {{Show by date}} template using separate parameters for year, month, date, and time.

The {{ show by date}} template inserted by this template is particularly useful on low-activity articles where dated statements may not receive prompt attention. A WP:BOT, User:AnomieBOT, will substitute the {{Show by date}} template with just the text after as the given dates elapse.

Warnings

  • Be certain that the "before" and "after" versions of the statement are both reliably supported by the cited sources. For example, "Mr. Smith will take office on 1 January 2027" to "Mr. Smith took office on 1 January 2027" are both normally citable to the results of the election or announcement of the appointment. But the source for "The movie is scheduled for release on 1 January 2027" does not usually support a statement "The movie was released on 1 January 2027" since movie dates often slip; on the other hand, it could support "The movie was scheduled for release on 1 January 2027" or the template could be used to remove the text entirely, and {{update after}} could be used to request an update.
  • Be careful that the article does not contain awkward grammar before the date and will not contain awkward grammar when the "after" text is displayed.
  • This template supports both absolute (e.g. 20 December 2000) and relative (e.g. +20 hours) times, but relative times should only be used if the template is manually substituted. If the template is bot substituted, the time will be relative to the time that the bot edited the page.

Limitations

  • Unless date/time specifies a time zone, statements will be switched on the date according to Wikipedia time (00:00 UTC). If the actual event point is a few hours before or after this, it probably makes little difference in the grander scheme of time. However, it will make a significant difference if the actual event is more than 12 hours before or after this. For example, an event that takes place on September 26 at 8:00 pm Pacific Standard Time (UTC−08:00) corresponds to 04:00, September 27 (UTC).
  • The output of this template will not be changed until the page is purged. MediaWiki may or may not manage to do this automatically. Category membership and the output of Special:WhatLinksHere, if these are changed by the expiration of this template, will not be updated until the page is edited.
  • Neither the text before nor the text after may begin or end with whitespace. Workarounds include using an escape code for space (&#32;), using a non-breaking space (&nbsp;), or including invisible markup (e.g. <nowiki/>) to prevent the spaces from being stripped (see example below).
  • If the text before or text after contains an "=" or "|" character that is not inside another template invocation, use the templates {{}} or {{!}}.

Examples

Code Result
{{subst:show by|2027|Show this before 2027|Show this after 2027}} has started Show this before 2027 has started
{{subst:show by|2025|Show this before 2025|Show this after 2025}} has started Show this after 2025 has started
{{subst:show by|September 2023|Show this before September 2023|Show this after September 2023}} has started Show this after September 2023 has started
{{subst:show by|2027-09-06|Show this before 2027-09-06|Show this as of 2027-09-06}} Show this before 2027-09-06
{{subst:show by|2023-09-06 12:00pm EST|Before noon Eastern Standard Time on 2023 September 6|After noon Eastern Standard Time on 2023 September 6}} After noon Eastern Standard Time on 2023 September 6
{{subst:show by|06 Sep 2027|Show this before 06 Sep 2027|}} Show this before 06 Sep 2027
{{subst:show by|06 Sep 2027||Show this after 06 Sep 2027}}
{{subst:show by|2027|{{subst:show by|2023|Show this before 2023|Show this between 2023 and 2027}}|Show this as of 2027}} Show this between 2023 and 2027
{{subst:show by| -1 day |It is before yesterday|It is after yesterday}} It is after yesterday
{{subst:show by| +1 day |It is before tomorrow|It is after tomorrow}} It is before tomorrow
Note *{{subst:show by|2027| lost spacing }}*, and *{{subst:show by|2027|&#32;workaround&#32;}}* Note *lost spacing*, and * workaround *

Related templates

  • {{Show by date}} The template that this is a wrapper for, with separate parameters for year, month, and day
  • {{As of}}
  • {{Update}}
    • {{Update|inaccurate=y}} is used to mark an article whose factual accuracy may be compromised (although this may be disputed) due to out of date information. This template adds the article to Category:Articles with obsolete information.
  • {{Update after}}, which shows an inline upate maintenance tag when a specified date is reached.

See also

  • Wikipedia:Avoid statements that will date quickly
  • v
  • t
  • e
Inline cleanup tags
Attribution
  • {{According to whom}}
  • {{Attribution needed}}
  • {{By whom}}
  • {{From whom?}}
  • {{Like whom?}}
  • {{To whom?}}
  • {{Who}}
  • {{With whom}}
Clarity
  • {{Ambiguous}}
  • {{Clarify}}
  • {{Clarify span}}
  • {{Clarify timeframe}}
  • {{Context inline}}
  • {{Expand acronym}}
  • {{Incomprehensible inline}}
  • {{Incomprehensible span}}
  • {{Non sequitur}}
  • {{Sentence fragment}}
  • {{Which calendar}}
Miscellaneous
  • {{Chinese script needed inline}}
  • {{Copyright violation}}
  • {{Copyvio link}}
  • {{Data missing}}
  • {{Disambiguation needed}}
  • {{External links inline}}
  • {{Improve caption}}
  • {{Needs IPA}}
  • {{Original research inline}}
  • {{Original research span}}
  • {{Pronunciation needed}}
  • {{Spam link}}
  • {{Synthesis inline}}
  • {{Synthesis span}}
  • {{Under discussion inline}}
  • {{Verify spelling}}
  • {{Whose translation}}
Neutrality
  • {{Buzzword inline}}
  • {{Compared to?}}
  • {{Editorializing}}
  • {{Fact or opinion}}
  • {{Opinion}}
  • {{Peacock inline}}
  • {{POV statement}}
  • {{Promotion inline}}
  • {{Unbalanced opinion}}
  • {{Weasel inline}}
  • {{Weasel word some span}}
Precision
  • {{By how much}}
  • {{Definition}}
  • {{Definition needed}}
  • {{Example needed}}
  • {{Example needed span}}
  • {{Explain}}
  • {{How}}
  • {{How often}}
  • {{Misquoted}}
  • {{Quantify}}
  • {{Specify}}
  • {{Vague}}
  • {{When}}
  • {{Where}}
  • {{Which}}
  • {{Who else}}
  • {{Why}}
  • {{Year needed}}
Excessive
  • {{Duplication span}}
  • {{Importance inline}}
  • {{Relevance inline}}
  • {{Undue weight inline}}
  • {{Globalize inline}}
Time-sensitivity
  • {{Anachronism inline}}
  • {{Clarify timeframe}}
  • {{Current event inline}}
  • {{Is this date calibrated?}}
  • {{Update after}}
  • {{Update inline}}
  • {{Update span}}
Verifiability
Dubious
  • {{Contradictory inline}}
  • {{Disputed inline}}
  • {{Dubious}}
  • {{Dubious span}}
  • {{Inconsistent}}
  • {{Needs independent confirmation}}
  • {{Speculation inline}}
Bare URLs
  • {{Bare URL inline}}
  • {{Bare URL non-HTML}}
  • {{Bare URL AV media}}
  • {{Bare URL PDF}}
  • {{Bare URL image}}
  • {{Bare URL DOC}}
  • {{Bare URL plain text}}
  • {{Bare URL spreadsheet}}
Incomplete or
broken citation
  • {{Author incomplete}}
  • {{Author missing}}
  • {{Date missing}}
  • {{Dead link}}
  • {{Edition needed}}
  • {{Episode needed}}
  • {{Full citation needed}}
  • {{Incomplete short citation}}
  • {{ISBN missing}}
  • {{Moved resource}}
  • {{Page needed}}
  • {{Place missing}}
  • {{Publisher missing}}
  • {{Season needed}}
  • {{Time needed}}
  • {{Title incomplete}}
  • {{Title missing}}
  • {{Volume needed}}
  • {{Year missing}}
Missing or
problematic
reference
  • {{Additional citation needed}}
  • {{Better source needed}}
  • {{Better source needed example}}
  • {{Check quotation}}
  • {{Chronology citation needed}}
  • {{Citation needed}}
  • {{Citation needed span}}
  • {{Citation not found}}
  • {{COI source}}
  • {{Deprecated inline}}
  • {{Excessive citations inline}}
  • {{Failed verification}}
  • {{Failed verification span}}
  • {{Image reference needed}}
  • {{Irrelevant citation}}
  • {{Medical citation needed}}
  • {{Medical citation needed span}}
  • {{Nonspecific}}
  • {{Not verified in body}}
  • {{Obsolete source}}
  • {{Page range too broad}}
  • {{Primary source inline}}
  • {{Promotional source}}
  • {{Quote without source}}
  • {{Request quotation}}
  • {{Request quotation span}}
  • {{Retracted}}
  • {{Scientific citation needed}}
  • {{Self-published inline}}
  • {{Tertiary source inline}}
  • {{Third-party inline}}
  • {{Unreliable fringe source}}
  • {{Unreliable medical source}}
  • {{Unreliable source?}}
  • {{Verify quote}}
  • {{Verify source}}
Wording
  • {{Buzzword inline}}
  • {{Colloquialism}}
  • {{Copy edit inline}}
  • {{Neologism inline}}
  • {{Technical inline}}
  • {{Tone inline}}
General advice
  • Citing sources
  • Reliable sources
  • Maintenance template removal
  • Citation needed
  • Find sources
  • Combining sources
  • Referencing styles
  • Inline cleanup templates
  •  WikiProject Inline Templates
The above documentation is transcluded from Template:Show by/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://safernicotine.wiki/mediawiki/index.php?title=Template:Show_by&oldid=6804"
Last edited on 29 August 2021, at 05:18
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information

Languages

      This page is not available in other languages.

      Safer nicotine wiki
      • Creative Commons Attribution-ShareAlike
      • Powered by MediaWiki
      • Monitored by WikiApiary
      • ipv6 ready
      • Powered by Semantic MediaWiki
      • This page was last modified on 29 August 2021, at 05:18. Warning: Page may not contain recent updates.
      • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
      • Privacy policy
      • About Safer nicotine wiki
      • Disclaimers
      • Terms of Use
      • Desktop
      • Data access
      • Developers
      • Statistics
      • Cookie statement