(creation) |
(Update and standardise) |
||
Line 1: | Line 1: | ||
+ | ;Description |
||
⚫ | |||
+ | :Template gives an "event in" category two parent categories, one for the place, one for the event over a wider area. <!-- We should be able to extend this to a couple of dozen other types of category, such as cemeteries --> |
||
⚫ | |||
<pre> |
<pre> |
||
{{EventPlaceCat |
{{EventPlaceCat |
||
Line 8: | Line 10: | ||
</pre> |
</pre> |
||
− | + | ;Usage |
|
− | Use on categories that contain an '''Event''' (Born, Died, Married, |
+ | :Use on categories that contain an '''Event''' (Born, Died, Married, Resided) '''in''' '''''a certain place''''' <!-- We should be able to extend this to a couple of dozen other types of category, such as cemeteries --> |
− | *'''Event''' - specify the event ( |
+ | *'''Event''' - specify the event ('''"Born"''', '''"Died"''', etc). |
− | *'''CurPlace''' - specify the current place, |
+ | *'''CurPlace''' - specify the current place, copied from the name of the category (see example below) but with any initial "the" removed |
− | *'''Place''' - use next broader place name |
+ | *'''Place''' - use next broader place name, adding "the" if applicable (e.g. "the Netherlands", UK, US, ...) |
− | + | ;Example input |
|
⚫ | |||
− | ===Input=== |
||
⚫ | |||
<pre> |
<pre> |
||
{{EventPlaceCat |
{{EventPlaceCat |
||
|Event = Born |
|Event = Born |
||
− | |CurPlace = |
+ | |CurPlace = Kent |
− | |Place = |
+ | |Place = England |
}} |
}} |
||
</pre> |
</pre> |
||
+ | ;Example output |
||
− | ===Output=== |
||
− | Categorizes the category into the following: |
+ | :Categorizes the category into the following: |
− | *[[ |
+ | <pre>*[[Category:Kent]] |
− | *[[ |
+ | *[[Category:Born in England|Kent]]</pre> |
+ | |||
+ | ;Notes |
||
+ | :If the place is a county or equivalent (e.g.[[Regions of New South Wales]]), please instead use the series that includes {{T|d-uk}}) so as to add the county template etc. |
||
+ | :In many cases it may be quicker to copy&paste the category name, convert it to a link, paste a second copy of that, then modify the two. |
||
+ | <noinclude>[[Category:template documentation]]</noinclude> |
Revision as of 02:14, 8 March 2009
- Description
- Template gives an "event in" category two parent categories, one for the place, one for the event over a wider area.
- Blank template
{{EventPlaceCat |Event = |CurPlace = |Place = }}
- Usage
- Use on categories that contain an Event (Born, Died, Married, Resided) in a certain place
- Event - specify the event ("Born", "Died", etc).
- CurPlace - specify the current place, copied from the name of the category (see example below) but with any initial "the" removed
- Place - use next broader place name, adding "the" if applicable (e.g. "the Netherlands", UK, US, ...)
- Example input
- In the category name "Born in Kent," use:
{{EventPlaceCat |Event = Born |CurPlace = Kent |Place = England }}
- Example output
- Categorizes the category into the following:
*[[Category:Kent]] *[[Category:Born in England|Kent]]
- Notes
- If the place is a county or equivalent (e.g.Regions of New South Wales), please instead use the series that includes {{d-uk}}) so as to add the county template etc.
- In many cases it may be quicker to copy&paste the category name, convert it to a link, paste a second copy of that, then modify the two.