Template:ANEFO photographer location/doc
Boilerplating template for location groups for ANEFO photographers, such as Category:Photographs by Joop van Bilsen in Amsterdam (1965)
This template creates nav bars for photographer and location by year, a simple header text, and also adds categorizations for the photographer and location by year. It will also attempt to categorize the upper-level categories into "Historical photographs of Amsterdam" etc., although the naming for these parent categories is inconsistent, and so it has to make a best-guess attempt if the usual names do not already exist.
Categorization
[edit]Dated categories will also be categorized into these non-photographer categories, depending on which already exist:
- Category:<year> at <location> (If "at", "on" etc. was used with
|loc_prefix=
) - Category:<year> in <location>
- Category:<location> in <year> (this will be redlinked if there's nothing better)
- Category:<location> by year
- Category:<location> (As this will usually already exist, it will often be linked, unless one of the preferred targets is available. If that is unwanted, create one of those targets, such as "<location> by year".)
For the overall undated topic cats, the favoured categorization is one of (in preference order):
- Category:Photographs of <location> by photographer
- Category:Historical images of <location> by photographer
- Category:Historical photographs of <location> (this will be redlinked as a suggestion for creations, if nothing else is available)
- Category:Historical photographs of the <location> (only if "of the", "at" etc. was used with
|loc_prefix=
) - Category:Historical images of <location>
- Category:Photographers in <location>
- Category:Photographs of <location>
- Category:History of <location>
- Category:<location> (only if nothing else is available)
Parameters
[edit]- 1 Photographer name
- optional
- If not specified, defaults to "unknown Anefo photographers"
- 2 Photographer name, sortable
- optional, defaults to name
- 3 Location
- required
- 4 Province or region
- optional
- Next navigational region upwards in the hierarchy
- Where this is an eponymous province, most use Groningen (for the city) and Groningen (province) to disambiguate, although this also needs the
|commons=
for the city as Commons disambiguates those (Groningen (city), Utrecht (city)) too. - 5 Decade
- optional
- If omitted, this gives the behaviour for the overall, undated, group category
- When only a few images are available, for a single year, the two-level hierarchy is not needed and would be excessive. However the template deals with this automatically. Always give the year (if known) and create the undated category if (and only if) there are images for multiple years, or undated images.
- 6 Year
7 Single year flag-
- deprecated – now automatic
optional, or else 'y'Should be set when the year is specified, but this is the only year for this location and so the navigation is flattened, e.g. Photographs by Joop van Bilsen in Bolsward (1964)|loc_prefix=
- Allows the linking text to be set manually, if this isn't the default "in Amsterdam"
- optional, usually 'at' or defaults to 'in'
- This only applies to the main location, not the secondary region. If the secondary region is able to contain the first, it's assumed that "in" is appropriate to apply to it.
|country=
- optional, defaults to 'the Netherlands' (These are generally ANEFO photographers)
|commons=
- optional, normally defaults as the location, but can be specified to over-ride this, if needed.
|en_wp=
- optional, normally defaults as the location, but can be specified to over-ride this, if needed.
|nl_wp=
- optional, as for
|en_wp=
, but to the Dutch language wikipedia
To do
[edit]Make single-level flattened navigation automatic, rather than parameterised.Make country parameterised, with optional named|country=
param.- Auto-default for names by sort order, based on the surname.
- Auto-pipe the in-text links to exclude bracketed discriminators. Mostly for the 'Utrecht problem', where these have to be used to distinguish the city and eponymous province of Utrecht.
- Doesn't cope well with "1947 in Limburg" / "Limburg (Netherlands)", where the
|commons=
param has to be different for the dated and undated calls from "Limburg (province)"
Examples
[edit]{{ANEFO photographer location|Joop van Bilsen|Bilsen, Joop, van|Amsterdam||196|6}}
- The basic categorisation. Use "by year" categories (with a date year provided) for the first images in that region, no matter how few.
{{ANEFO photographer location|Joop van Bilsen|Bilsen, Joop, van|Amsterdam}}
- Undated version, as a parent for all years in that location. This category is only needed when there are multiple years, or if there are undated images.
{{ANEFO photographer location|Joop van Bilsen|Bilsen, Joop, van|Bolsward||196|4}}
- An example of generating the flattened navigation, because there is no Category:Photographs by Joop van Bilsen in Bolsward as a parent
{{ANEFO photographer location|Hugo van Gelderen|Gelderen, Hugo, van|Dam Square|Amsterdam|196|4|loc_prefix=on}}
- Uses
|loc_prefix=
to give "on Dam Square"
{{ANEFO photographer location|Hugo van Gelderen|Gelderen, Hugo, van|Utrecht|Utrecht (province)|196|5|commons=Utrecht (city)}}
- Using
|commons=
as the Commons name differs from the en:WP name, which was used as the parameter.
{{ANEFO photographer location|Harry Pot|Pot, Harry|Zandvoort beach|North Holland|196|1|loc_prefix=on}}
[[Category:Photographs by Harry Pot in Zandvoort (1961)|Beach]]- Adding an additional category through wikitext, where the depth is deeper than usual and both are useful navigational paths. It's usually best to add the intermediate region as the additional one.
{{ANEFO photographer location|Harry Pot|Pot, Harry|Belgium||196|0|country=Belgium}}
[[Category:Photographs by Harry Pot|Belgium]]- Root category for a country other than the Netherlands. An additional line is used to link this into the photographer's overall tree.
To do
[edit]- Investigate Category:Photographs by Rob Bogaerts in Meer (1983) and lack of link to Category:Meer, Antwerp
- Investigate Category:Photographs by Marcel Antonisse at Ramstein Air Base (1983) and inappropriate link to Category:Ramstein Air Base by year