Template:User own photos/doc

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Merge-short arrows 2.svg
It has been suggested that this template should be merged with Template:User Files. (Discuss)
Reason: There is no rational reason for two of the same template. User: Perhelion06:35, 27 June 2014 (UTC)

Deutsch | English | magyar | svenska | +/−

As a user box for users who have uploaded one or more own photos to Commons.

Correct work with some languages, have more than one plural form.

See also:
Gnome-emblem-documents.svg {{User Files 2}} Gnome-emblem-photos.svg {{User own photos}} Quality images logo.svg {{User QI 2}} Gnome-audio-input-microphone.svg {{User Sounds 2}}

And also (not correct work with some languages, have more than one plural form):
Gnome-emblem-documents.svg {{User Files}}, Gnome-emblem-photos.svg {{User Images}}, Quality images logo.svg {{User QI}}, Valued image seal.svg {{User VI}}, Cscr-featured.svg {{User FP}}, Gnome-video-x-generic.svg {{User Videos}} and Gnome-audio-input-microphone.svg {{User Sounds}}

Usage

{{User Files 2 |number= |category= |colors= |gender= |subtract= |username= }}

Template parameters

Parameter Description Default Status
number Synonym: 1.
Specifies the amount of the files. Not used if category is defined.
0 optional
category Specifies the category, in which the files are counted. empty optional
colors Uses a different color scheme. Possible values are: golden, light-blue and light-grey. light-grey optional
gender Gender of the user. Is used only in some languages (e.g. German, Russian). Possible values are: n (not defined, default value), f (female) and m (male). n optional
subtract Subtracts a constant from the displayed number. 0 optional
username Name of the user. empty optional

Additional information

The template is intended to be used in the following namespaces: the User namespace

The template is intended to be used by the following user groups: all users

Català | Deutsch | Ελληνικά | English | Français | Galego | Magyar | Norsk bokmål | Polski | Português do Brasil | Română | Русский | Українська |

To add your language to the list of languages supported by this template, please copy the code of Template:User own photos/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.


Parameter objname consists of several parts (2, 3 or 4 - depending of language), separated by symbol "/":

  • first part contains singular form
  • second part contains plural form
  • third part contains second plural form (used in some language, for most of languages can be omitted)
  • fourth part contains text for empty or zero number (at most of languages coincides with the second part and can be omitted)

Examples:

  • English: /file/files
  • Russian: /файл/файла/файлов/файлы

See also the description of template {{Plural}}.

Usage

Without any parameters you would get:

{{User own photos}}
Gnome-emblem-photos.svg This user has uploaded own photos to Commons.



Customizing the displayed number

If you want to specify the number of uploaded files you could do that this way:

{{User own photos|42}}
{{User own photos|number=42}}
Gnome-emblem-photos.svg This user has uploaded 42 own photos to Commons.



It can be used as a live counter, if all the files have been categorized to a suitable user category:

{{User own photos|category=Photographs by Alvesgaspar}}
Gnome-emblem-photos.svg This user has uploaded 2307 own photos to Commons.



You can also subtract a constant if you need e.g. some subcategories not to be counted:

{{User own photos|category=Photographs by Alvesgaspar|subtract=5}}
Gnome-emblem-photos.svg This user has uploaded 2302 own photos to Commons.



Customizing the appereance

You can also change the color scheme of the userbox:

{{User own photos|number=42|colors=golden}}
Gnome-emblem-photos.svg This user has uploaded 42 own photos to Commons.



{{User own photos|number=42|colors=light-blue}}
Gnome-emblem-photos.svg This user has uploaded 42 own photos to Commons.



{{User own photos|number=42|colors=light-grey}}
Gnome-emblem-photos.svg This user has uploaded 42 own photos to Commons.



Customizing the username

If you want you can display your username in this userbox:

{{User own photos|number=42|username=UnreifeKirsche}}
Gnome-emblem-photos.svg UnreifeKirsche has uploaded 42 own photos to Commons.



Some languages distinguish between the gender of the user. If your language doesn't you can look at the example with the German interface.

{{User own photos|number=42|gender=n}}
Gnome-emblem-photos.svg This user has uploaded 42 own photos to Commons.



{{User own photos|number=42|gender=f}}
Gnome-emblem-photos.svg This user has uploaded 42 own photos to Commons.



{{User own photos|number=42|gender=m}}
Gnome-emblem-photos.svg This user has uploaded 42 own photos to Commons.