Familypedia
(More useful example)
(More scope and more detail)
Line 1: Line 1:
 
;Description
 
;Description
:Template gives an "event in" category two parent categories, one for the place, one for the event over a wider area. 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 -->
+
:Template gives to a "'''something''' (e.g. an event) '''in'''" category two parent categories, one for the place, one for the "something" over a wider area. Use on categories that contain an '''Event''' (Born, Died, Married, Resided) '''in''' '''''a certain place''''', or any other category covering something that is '''''IN''''' the place, such as businesses, cemeteries, and settlements.
   
;Usage (choose one)
+
;Usage
:(1) Template with just pipes (for adding data after each "|")
+
:Paste this expanded template and add data after each "="
<pre>{{EventPlaceCat|||}}</pre>
 
:(2) Expanded template (for adding data after each "=")
 
 
<pre>{{EventPlaceCat
 
<pre>{{EventPlaceCat
  +
|Event = <!-- or other, e.g. "Cemeteries" -->
|Event =
 
 
|CurPlace =
 
|CurPlace =
|Place =
+
|Place = <!-- larger inclusive place -->
 
}}</pre>
 
}}</pre>
*'''Event''' - specify the event ('''"Born"''', '''"Died"''', etc).
+
*'''Event''' - First word of the category name ('''"Born"''', '''"Died"''', etc).
  +
*'''CurPlace''' - specify the '''Cur'''rent '''place''', copied from the name of the category (see example below) but without any initial "the".
 
*'''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, ...).
 
*'''Place''' - use next broader place name, adding "the" if applicable (e.g. "the Netherlands", UK, US, ...)
 
   
 
;Example input
 
;Example input
Line 34: Line 30:
 
;Notes
 
;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.
 
: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.
  +
:If the place is a continent, do not use this; instead use a variant of the method noted below to put the category in its continent category and in a category such as "<nowiki>[[Category:People by death continent|''Continentname'']]</nowiki>". The latter group will be rarely used but may be the key to someone's brick wall if great-grandfather's last letter said Aunt Zoe emigrated to America.
:In many cases (perhaps depending on your browser) 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 (cutting all but the place out of the first, and inserting the larger place plus a pipe into the second).
+
:In many cases (perhaps depending on your browser and settings) '''it may be quicker to drag/copy&paste the category name''', convert it to a link, paste a second copy of that (e.g. Control plus successively A, C, V, V), then modify the two (cutting all but the place out of the first, and inserting the larger place plus a pipe into the second).
<noinclude>[[Category:template documentation]]</noinclude>
+
<includeonly>Category:Geography and place templates</includeonly><noinclude> [[Category:template documentation]]</noinclude>

Revision as of 03:45, 8 March 2009

Description
Template gives to a "something (e.g. an event) in" category two parent categories, one for the place, one for the "something" over a wider area. Use on categories that contain an Event (Born, Died, Married, Resided) in a certain place, or any other category covering something that is IN the place, such as businesses, cemeteries, and settlements.
Usage
Paste this expanded template and add data after each "="
{{EventPlaceCat
|Event = <!-- or other, e.g. "Cemeteries" -->
|CurPlace = 
|Place = <!-- larger inclusive place -->
}}
  • Event - First word of the category name ("Born", "Died", etc).
  • CurPlace - specify the Current place, copied from the name of the category (see example below) but without any initial "the".
  • Place - use next broader place name, adding "the" if applicable (e.g. "the Netherlands", UK, US, ...).
Example input
In the category name "Born in Ohio," use:
{{EventPlaceCat
|Event = Born
|CurPlace = Ohio
|Place = the United States
}}
Example output
Categorizes the category into the following:
*[[Category:Ohio]]
*[[Category:Born in the United States|Ohio]]
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.
If the place is a continent, do not use this; instead use a variant of the method noted below to put the category in its continent category and in a category such as "[[Category:People by death continent|''Continentname'']]". The latter group will be rarely used but may be the key to someone's brick wall if great-grandfather's last letter said Aunt Zoe emigrated to America.
In many cases (perhaps depending on your browser and settings) it may be quicker to drag/copy&paste the category name, convert it to a link, paste a second copy of that (e.g. Control plus successively A, C, V, V), then modify the two (cutting all but the place out of the first, and inserting the larger place plus a pipe into the second).