Template:Current event inline/doc: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
m (1 revision imported)
en>SUM1
(Added inline formatting notice to TemplateData and fixed usage notes grammar)
Line 4: Line 4:
== Usage ==
== Usage ==


{{Tlx|Current event inline}} creates {{Current event inline}}.
== See also ==

{{Tlx|Current event inline|date{{=}}{{Currentmonthname}} {{Currentyear}}}} creates {{Current event inline|date={{Currentmonthname}} {{Currentyear}}}}.

{{Tlx|Current event inline|date{{=}}{{Currentmonthname}} {{Currentyear}}|hide{{=}}y}} creates {{Current event inline|date={{Currentmonthname}} {{Currentyear}}|hide=y}}.

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

== TemplateData ==
{{TemplateData header}}
<templatedata>
{
"description": "Use this inline template indicate that a statement may be outdated and in need of updating.",
"format": "inline",
"params": {
"date": {
"label": "Month and year",
"description": "Month and year of tagging; e.g., 'January 2013', but not 'jan13'. Adds this to the template text, after 'as of'.",
"type": "string",
"autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}",
"example": "January 2013",
"suggested": true
},
"hide": {
"label": "Hide date from text",
"description": "Enter any text in this parameter to hide the date from the template text. For use in conjunction with 'date'.",
"type": "string",
"example": "y",
"suggested": true
}
},
"paramOrder": [
"date",
"hide"
]
}
</templatedata>

<!-- == See also == -->


<includeonly>
<includeonly>
<!-- Categories and interwikis go here: -->
<!-- Categories and interwikis go here: -->
[[Category:Inline cleanup templates]]
[[Category:Inline cleanup templates]]
[[Category:Time and date maintenance templates]]
</includeonly>
</includeonly>

Revision as of 01:05, 6 February 2020

Usage

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

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

{{Current event inline|date=June 2024|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