Template:User own photos

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
This user has uploaded own photos to Commons.


Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:User own photos/doc.

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:
{{User Files}} {{User QI 2}} {{User Sounds 2}}

And also (not correct work with some languages, have more than one plural form):
{{User Files}}, {{User Images}}, {{User QI}}, {{User VI}}, {{User FP}}, {{User Videos}} and {{User Sounds}}

Usage

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

Template parameters

ParameterDescriptionDefaultStatus
numberSynonym: 1.
Specifies the amount of the files. Not used if category is defined.
0optional
categorySpecifies the category, in which the files are counted.emptyoptional
colorsUses a different color scheme. Possible values are: golden, light-blue and light-grey.light-greyoptional
genderGender 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).noptional
subtractSubtracts a constant from the displayed number.0optional
usernameName of the user.emptyoptional

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

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}}

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}}

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}}

This user has uploaded 3959 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}}

This user has uploaded 3954 own photos to Commons.

Customizing the appereance

You can also change the color scheme of the userbox:

{{User own photos|number=42|colors=golden}}

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

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

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}}

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}}

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

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

This user has uploaded 42 own photos to Commons.