Familypedia
(More useful example)
(Tweaking)
 
(3 intermediate revisions by the same user not shown)
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, Burials, Resided) '''in''' '''''a certain place''''', or any other category covering something '''''IN''''' the place, such as businesses and settlements. ''Not for '''people''' in cemeteries because they use "at"''.
   
;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 = <!-- (smallest) larger inclusive place -->
|Place =
 
 
}}</pre>
 
}}</pre>
*'''Event''' - specify the event ('''"Born"''', '''"Died"''', etc).
+
*'''Event''' - First word of the category name ('''"Born"''', '''"Died"''', '''"Burials"''', 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, for example, 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>
 
  +
:Someone may feel inspired to do an equivalent that has "of" instead of "in", for use with most of the categories mentioned on [[Genealogy:County navigation templates]]. But maybe someone already has done one but has kept it a secret, uncategorised as this one was.
 
<includeonly>[[Category:Geography and place templates]]</includeonly><noinclude> [[Category:template documentation]]</noinclude>

Latest revision as of 11:11, 12 December 2020

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, Burials, Resided) in a certain place, or any other category covering something IN the place, such as businesses and settlements. Not for people in cemeteries because they use "at".
Usage
Paste this expanded template and add data after each "="
{{EventPlaceCat
|Event = <!-- or other, e.g. "Cemeteries" -->
|CurPlace = 
|Place = <!-- (smallest) larger inclusive place -->
}}
  • Event - First word of the category name ("Born", "Died", "Burials", 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, for example, 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).
Someone may feel inspired to do an equivalent that has "of" instead of "in", for use with most of the categories mentioned on Genealogy:County navigation templates. But maybe someone already has done one but has kept it a secret, uncategorised as this one was.