Template:Where/doc

From CAPipedia
Revision as of 17:56, 26 December 2023 by en>Tom.Reding (→‎top: {{High-use}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[[Category:Template documentation pages{{#translation:}}]]

Usage

Put {{Where|date=November 2024}} next to a statement which does not specify the place at which an event took place or to which the statement applies.

This template takes three parameters:

  • |date= Since when the tag has been in place. Must be in the following format: {{Where|date=November 2024}}.
  • |talk= Whether to display a link to the talk page. Can take values "yes" or "no". If "yes", then will exhibit a link to a talk page discussion you are supposed to open.
  • The name of the specific section on the talk page where you opened a discussion.

Full example:

{{Where|talk=yes|Example|date=November 2024}} results in [where? ]

(Please click the links to see where they lead.)

This template automatically adds tagged pages to Category:Vague or ambiguous geographic scope, or a dated subcategory thereof.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Where in articles based on its TemplateData.

TemplateData for Where

<TemplateData> { "description": "Use this template next to a statement which does not specify the place at which an event took place or to which the statement applies", "params": { "date": { "description": "Date", "description": "Month and year", "example": "February 2018", "type": "date", "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "suggested": true }, "talk": { "label": "Talk", "description": "Whether to display a link to the talk page. Can take values 'yes' or 'no'.", "example": "yes", "type": "string", "required": false }, "1": { "label": "Name of talk page section", "description": "Use if talk = yes. Do not wikilink.", "example": "Example", "type": "string", "required": false } } } </TemplateData>

See also