Familypedia
(creation)
 
(Update and standardise)
Line 1: Line 1:
  +
;Description
==Blank template==
 
  +
: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 -->
 
;Blank template
 
<pre>
 
<pre>
 
{{EventPlaceCat
 
{{EventPlaceCat
Line 8: Line 10:
 
</pre>
 
</pre>
   
==Usage==
+
;Usage
Use on categories that contain an '''Event''' (Born, Died, Married, etc.) '''in''' '''''a certain place'''''
+
: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 (either '''"Born"''', '''"Died"''', or '''"Married"'''.
+
*'''Event''' - specify the event ('''"Born"''', '''"Died"''', etc).
   
*'''CurPlace''' - specify the current place, which is the name of the article (see example below)
+
*'''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==
+
;Example input
 
:In the category name "Born in Kent," use:
===Input===
 
In the category name "Born in Centre County, Pennsylvania, United States," use:
 
 
<pre>
 
<pre>
 
{{EventPlaceCat
 
{{EventPlaceCat
 
|Event = Born
 
|Event = Born
|CurPlace = Centre County, Pennsylvania, United States
+
|CurPlace = Kent
|Place = Pennsylvania, United States
+
|Place = England
 
}}
 
}}
 
</pre>
 
</pre>
   
  +
;Example output
===Output===
 
Categorizes the category into the following:
+
:Categorizes the category into the following:
*[[:Category:Born in Pennsylvania, United States]]
+
<pre>*[[Category:Kent]]
*[[:Category:Centre County, Pennsylvania, United States]]
+
*[[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.