Template:Inform
Description | -file- | ||
Date | |||
Source | Own work | ||
Author | Username | ||
Permission (Reusing this file) |
|
en-1 | The description below was composed by a non-native English speaker. You are cordially invited to improve the literal quality of any textual expression. |
Information template - for file description with many useful defaultings
for e.g. SVG images the parameter "image" can be used, instead of abusing other fields
.[clarification needed]
Support: It can reduce upload work when a prefilled upload form is established.
keine vernünftigen Aliase anbietet für die unhandlichen, historisch gewachsenen Parameternamen.
alias razonables para los nombres de parámetros poco manejables y que han crecido históricamente.
proprement dit ne propose pas d'alias raisonnables pour les noms de paramètres
peu pratiques qui ont évolué au fil du temps.
non fornisce alias ragionevoli per i nomi dei parametri, ingombranti e storicamente cresciuti.
geen redelijke aliassen biedt voor de logge, historisch gegroeide namen van de parameters.
nie oferuje rozsądnych aliasów dla nieporęcznych, historycznie rozrośniętych nazw parametrów.
oferece pseudónimos razoáveis para os nomes de parâmetros complicados, historicamente crescidos.
Layouts
Equal-length parameter names allow a better table-like view. When parameter names are used, they are only accepted in lower case notation.
{{ Inform |
{{ Inform |
{{ Inform |
{{ Inform |
Copy whatever you want to use. The 4-letter-names may be a good compromise between name-shortness and clarity of parameter meaning.
Usage
{{Inform |1= |2= |3= |4= }}
Parameters passed by name need to use the name's exact case (generally fully lowercase).
The parameters date
and author
should always have values![clarification needed] For uploading, the prefilled upload form is suggested.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 de desc[ription] | Description (see description) When the field is empty: default is the filename | {{ F | F }} | optional | |
2 da date | Date The format should be yyyy-mm-dd When the value is ~~~~~: the next cleanup[clarification needed] corrects the format | prefilled upload form | suggested | |
3 so sour[ce] | Source When the field is empty: default is {{Own}} | {{ Own }} | optional | |
4 au auth[or] | Author (see more information) This field should never be empty | prefilled upload form | suggested | |
5 im imag[e] | Image The parameters for the Image generation template (the current {{Information}} requires to abuse other fields )[clarification needed] | empty | optional | |
6 ve vers[ion] | Other versions[clarification needed] | empty | optional | |
7 ol oloc | Object location/Geolocation also aliases: o[bject ]loc[ation] = oloc | empty | optional | |
cl cloc | Camera location/Geolocation also aliases: c[amera ]loc[ation] = cloc | empty | optional | |
8 fi fiel[ds] | Other fields[clarification needed] | empty | optional | |
9 f1 of 1 | Other fields 1[clarification needed] | empty | optional | |
pe perm[ission] | Permission A permission/license template inside the InfoBox | {{PD-self}} ("-" to avoid)[clarification needed] | optional | |
p2 per2 | more permission(s)[clarification needed] | empty | optional | |
li lice[nse] | License A license template below of the InfoBox | empty | optional | |
l2 lic2 | more license(s)[clarification needed] | empty | optional | |
a2 aut2 | Second text to "author"[clarification needed] | empty | optional | |
c2 col2 | Second column See information and examples | empty | optional | |
w2 wid2 | width of second column in percent, e.g. 14 | empty | optional | |
ca cate[gory] | category (with or without surrounding [[Category:...]] ) | empty | optional | |
cs cats[ort] | category or categories (without surrounding [[Category:...]] )[clarification needed] | empty | optional |
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: no user group specified
See also
Localization
This template is not intended to be localized.
|desc=
or|de=
is the neutraldescription
parameter.
For localizing the description
exist also short codes for some privileged languages,
|desd=
or|dd=
for German text,|dese=
for an English description,|desf=
or|df=
for French text,|desi=
or|di=
for Italian text,|desk=
or|dk=
for Korean text,|desn=
or|dn=
for Dutch text,|desp=
or|dp=
for Portuguese text,|desu=
or|du=
for Ukrainian text,|desE=
or|dE=
for Spanish text,|desP=
or|dP=
for Polish text,|desr=
or|dr=
for Russian text,|des2=
or|d2=
neutral but after all other languages.[clarification needed]
By the both neutral parameters any language can be used, with or without Language templates.
Default values
- desc: Often the filename (of course without the .extension) is a sufficient description
- date: Presetting for upload is possible with prefilled upload form
- sour: The default value {{Own}} is used
- auth: Presetting for upload is possible with prefilled upload form
- perm: The default value {{PD-self}} is used (when there is also no license)
The template gets a really advantage and useability when it is used with the prefilled form
- date cleanup will correct it. - with automatic value for upload date (which is often a good default); when ~~~~~ is used, the next
- author - the name of the uploading user (which in most cases will be a good default)
Future expansions
Completions
Some parameter values are automatically completed or substituted (no matter how the parameter name is written):
- |auth = xxxx is completed to
|auth = {{U|xxxx}}
- |lice = PD-… is completed to
|lice = {{PD-…}}
(same with perm=) - |lice = xxxx is completed to
|lice = {{PD-xxxx}}
(same with perm=) - |cloc = xx/xx: all "/" are replaced by "|" (same with oloc=)
The Author parameter
This parameter can be specified in various ways.
- For uploads very easy with the prefilled upload form.[clarification needed]
- When its first two characters are either
{{
or[[
it is passed as-is.[clarification needed] - Otherwise, when the first character is one of
& ( . < [ _ { ~
, a module is invoked to determine: when the first two characters
- are either
()
<>
[]
{}
, or&&
((
..
<<
__
~~
, this prefixing is removed and the remaining string is passed as-it-is; - character strings with a single leading character as e.g.
&
<
[
are passed without being changed.
- Any other character string is passed as parameter of the Template:{{U}}.
Licenses
It is expected that every file description contains either a permission or a license.
When neither is specified, the template defaults the permission with a PD-self. This default can be avoided with |permission=-
.
As a possible abbreviation, it is not necessary to write the parameter name for these often used simple licenses:
when the 5th or 6th parameter is just |self or |shape or |text, it becomes completed to |permission={{PD-...}};
when the 7th or 8th parameter is just |self or |shape or |text, it becomes completed to |license={{PD-...}}.
All other simple licenses, e.g. PD-chart, PD-chem, PD-font, PD-logo, PD-map, PD-scan, PD-sign, PD-simple, PD-wpdc, ... need named parameters pe/perm= resp.li/lice=. Parameter values become completed as told in #Completions.
With |per2=
resp. |lic2=
anything can added to a permission/license, e.g a plain text explanation or another template. When the only value is "i" or "t" (or "it"), the Insignia and/or Trademark template is generated.
Categorizations
The parameter catg
(ca
) serves for simple categorization, no module is invoked.
With cats
(cs
) also more complicated parameter values can be passed:
- slashes "/" are replaced by pipes, thus allowing sortkey-subparameters
- several categories, separated by linefeeds, can be specified (see example)
- Essential note:
- Be aware that with the current version of Cat-a-lot categories which are set by
catg
orcats
cannot be treated – a severe disadvantage!
Subtemplates
as e.g. {{Image generation}}, {{Location}}, {{Object location}} can be written either in the complete form, or just the parameters separated by slashes
|image={{Igen|U|+|gw|%|°|s=c|×|C=a/b/c}}
or|imag=U;c/gw/%/°/×/C~a¦b¦c
- "/" becomes substituted to "|"
- "~" becomes substituted to "+" (named parameters)
- "¦" becomes substituted to "/" (parameter lists, as for tinctures)
- A shortcutting is supported for
|s=
and/or|w=
tool;sss/...
is expanded to{{Igen|tool|...|s=sss}}
tool:www/...
is expanded to{{Igen|tool|...|w=www}}
tool;sss:www/...
is expanded to{{Igen|tool|...|s=sss|w=www}}
|location={{Location|9°10′11.8″N 12°13′14.8″E|dim:200}}
or|cloc=9°10′11.8″N, 12°13′14.8″E/dim:200
|oloc={{Object location|9|10|11.8|N|12|13|14.8|E|dim:200_heading:SW}}
or|oloc=9/10/11.8/N/12/13/14.8/E/dim:200_heading:SW
- "/" becomes substituted to "|"
See an example for the coding of geo-locations, and the compass values for the headimg.
Layout comparison
{{ Inform |
{{ Inform |
{{ Inform |
{{ Inform |
but |
{{ Inform |
Example
An invocation without parameters ({{Inform}}) generates:
Description | {{F|F}} | ||
Date | |||
Source | Own work | ||
Author | Username | ||
Permission (Reusing this file) |
|
Minimum
With the parameters or their abbreviations
date
(optional)auth
catg
(optional)
a complete file description can be performed, whith useful defaults of desc
, perm
and sour
.