Template:Places by decade/doc
Jump to navigation
Jump to search
Usage for 'Places by decade': |
Sample for category named 'Berlin in the 1930s'
|
Sample for Image to be added to category 'Paris in the 1880s', optionally also indicating: 1) a close placename is 'Palais Garnier', and 2) that the date depicted is June 18, 1882.
|
Overview: This family of templates sets up a navigation box for moving between categories for Places or Things of the same decade. The color scheme changes from blue to sepia tone if the decade is 1910 or earlier. Optionally, up to 3 notable images from the period may used to illustrate the breadth of the category's contents.
Related:
- Template:Events by decade identical functionality except recognizes the event parameter, and does not auto categorize the same way.
- Template:Things by decade performs the similar functions, but recognizes thing categories such as for fashion, ships, paintings, and automobiles. This template currently has not been upgraded and it's syntax may vary substantially from the current version.
- See also: Template:Places by decade/faq
Simple example
[edit]{{Places by decade |Mexico City |1890 |image=MexicoCityc1890.jpg}}
- Yields:
|
Parameter list
[edit]- First parameter (required) place
- The place. Categories are listed for the given place if they obey the naming convention form: <placename> in the <decade>s. Example:Category:Paris in the 1880s
- Second parameter (required) decade
- First year of the decade desired.
- Third parameter (optional) geoPosition
- Landmark, address or place name (eg. Eiffel Tower, Rue Soufflot, Natzweiler-Struthof). Used by Google/Yahoo maps, so the more precise, the better.
- image, Image2, Image3 optional
- Notable image(s) from the collection. Up to 3 images may be indicated. Omit "Image:" prefix.
- width, width2, width3 optional. example value for large image: [
width = 450px
] - Used for changing image size. Default width is 500 pixels. Multiple images can be adjusted to the same height by adjusting these smaller or larger.
- width, width2, width3 optional. example value for large image: [
- event (For events by decade only) This name appears next to the calendar icon, and in a Toolbar such as Operator for all event applications.
- partof1, partof2... these define the list of elements of the group boxes, and usually correspond to template pages in the form Template:Place info placeName. placeNames should correspond to a Commons category page name. The existence of these pages is optional, and these can be used to identify ambiguous placenames for Google/Yahoo maps. EG if placename is St. Petersburg, placeof1=Florida would allow the map application to know you didn't mean the city in Russia.
- partof1 = in practice, this is set to the location geographically nearest the point of interest. EG: Tour Eiffel
- partof2,3 these are set to more general locations. eg: partof2=Paris|partof3=France
- partof8,9 These will override the toplevel Countries and cities groups. defaults= partof8=major cities; partof9=countries.
- cat=no Supresses automatic addition of categories. Eg. Use this when an image is already nested in a place category for that decade.
- showImage=no if set to no, then images are not displayed.
- noEdit=X if non null, then Image addition edit link is suppressed.
- collapsed values=(collapsed, auto, uncollapsed). More info may be found on documentation for Template:Navbox's state parameter
- Styles - optional. Used for formatting the Navbox colors, alignments and other options. See navigation box documentation for more information.
Example value for a green title bar: [titlestyle = background:#89F92F;
]
- titlestyle - the title bar
- groupstyle - the side bar
- liststyle - the format of the lists
- bodystyle - the default formating for the navbox
- Styles - optional. Used for formatting the Navbox colors, alignments and other options. See navigation box documentation for more information.
- Map search terms (optional) authors should use {{Location}} if they have precise location information. This information is relevant only if the author wants to override default vaules sent to Map applications such as Google and Yahoo Maps. Users may override the default search terms passed by setting them as parameters.
- term1: default:geoPosition; if none then parameter 1.
- term2: default:partof1 (empty if = geoPosition)
- term3: default:partof2 (empty if = geoPosition)
- term4: default:partof3 (empty if = geoPosition)
- term5: default:parameter 1 (place) if not = geoPosition, partof1, 2 or 3.
Complex examples
[edit]Images can be adjusted in width so that their height is equal:
{{Places by decade |Paris |1890 |image = Almeida Júnior - Arredores do Louvre, 1880.jpg | width = 275px |image2 = Jean Beraud, Parisienne place de la Concorde.jpg | width2 = 230px |image3 = Camille Pissarro 007.jpg | width3 = 245px }}
- Yields:
|
Events
[edit]Example use of Events on an image page. See File:Horace Vernet-Barricade rue Soufflot.jpg
{{Events by decade |Paris |1840 |Rue Soufflot |event=Battle at Soufflot barricades-1848 |date=1848-06-01}}
Empty syntax
[edit]{{Places by decade | <place> | <decade> | <landmark> |image = | width = |image2 = | width2 = |image3 = | width3 = }}
{{Events by decade | <place> | <decade> | <landmark> |event = |image = | width = |image2 = | width2 = |image3 = | width3 = }}
__