Difference between revisions of "Template:Current event inline/doc"
Jump to navigation
Jump to search
imported>SUM1 m (→Usage: Heading) |
(Add Template:Inline tags) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
| − | + | {{Tlx|Current event inline}} creates {{Current event inline}}. | |
| + | |||
| + | {{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 == | == 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 == | ||
| Line 14: | Line 19: | ||
{ | { | ||
"description": "Use this inline template indicate that a statement may be outdated and in need of updating.", | "description": "Use this inline template indicate that a statement may be outdated and in need of updating.", | ||
| + | "format": "inline", | ||
"params": { | "params": { | ||
"date": { | "date": { | ||
"label": "Month and year", | "label": "Month and year", | ||
| − | "description": "Month and year of tagging; e.g., 'January 2013', but not 'jan13'", | + | "description": "Month and year of tagging; e.g., 'January 2013', but not 'jan13'. Adds this to the template text, after 'as of'.", |
"type": "string", | "type": "string", | ||
"autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", | "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", | ||
"example": "January 2013", | "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 | "suggested": true | ||
} | } | ||
| − | } | + | }, |
| + | "paramOrder": [ | ||
| + | "date", | ||
| + | "hide" | ||
| + | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
<!-- == See also == --> | <!-- == See also == --> | ||
| + | {{Inline tags}} | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- Categories and interwikis go here: --> | <!-- Categories and interwikis go here: --> | ||
[[Category:Inline cleanup templates]] | [[Category:Inline cleanup templates]] | ||
[[Category:Time and date maintenance templates]] | [[Category:Time and date maintenance templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 22:49, 15 July 2020
| This is a documentation subpage for Template:Current event inline. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{Current event inline}} creates [may be outdated].
{{Current event inline|date=December 2025}} creates [may be outdated as of December 2025].
{{Current event inline|date=December 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Month and year | date | Month and year of tagging; e.g., 'January 2013', but not 'jan13'. Adds this to the template text, after 'as of'.
| String | suggested |
| Hide date from text | hide | Enter any text in this parameter to hide the date from the template text. For use in conjunction with 'date'.
| String | suggested |