Difference between revisions of "Template:Current event inline"

From blackwiki
Jump to navigation Jump to search
imported>SUM1
(Attempted fix to bug if only hide has data)
imported>SUM1
(Reverted to revision 939317752 by SUM1 (talk): My mistake there wasn't a bug (TW))
Line 2: Line 2:
 
| subst = <includeonly>{{subst:substcheck}}</includeonly>
 
| subst = <includeonly>{{subst:substcheck}}</includeonly>
 
| link  = Portal:Current events  
 
| link  = Portal:Current events  
| text  = {{#if:{{{date|}}}|{{#if:{{{hide|}}}|may be outdated|may be outdated as of {{{date}}}}}|{{#if:{{{hide|}}}|may be outdated|may be outdated}}}}
+
| text  = {{#if:{{{date|}}}|{{#if:{{{hide|}}}|may be outdated|may be outdated as of {{{date}}}}}|may be outdated}}
 
| class = noprint Template-Fact
 
| class = noprint Template-Fact
 
| title = This statement refers to current events and needs references to newer reliable sources.
 
| title = This statement refers to current events and needs references to newer reliable sources.

Revision as of 18:58, 5 February 2020

[may be outdated]

Template documentation[view] [edit] [history] [purge]

Usage

{{Current event inline}} creates [may be outdated].

{{Current event inline|date=November 2025}} creates [may be outdated as of November 2025].

{{Current event inline|date=November 2025|hide=y}} creates [may be outdated].

Parameters

  • |date=: the date the tag was added. This gets added to the template text, after "as of".
  • |hide=: enter any text in this parameter to hide the date from the template text. For use in conjunction with "date".

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Current event inline

Use this inline template indicate that a statement may be outdated and in need of updating.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Month and yeardate

Month and year of tagging; e.g., 'January 2013', but not 'jan13'. Adds this to the template text, after 'as of'.

Example
January 2013
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Stringsuggested
Hide date from texthide

Enter any text in this parameter to hide the date from the template text. For use in conjunction with 'date'.

Example
y
Stringsuggested