Template:User Files 2/doc

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

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

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

See also:
{{User Files}} {{User own photos}} {{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

Deutsch  català  English  čeština  español  sicilianu  română  Esperanto  українська  日本語  ქართული  polski  മലയാളം  galego  Ελληνικά  中文(简体)  中文(繁體)  русский  suomi  norsk bokmål  中文(臺灣)  norsk  Nederlands  svenska  português do Brasil  français  magyar  italiano  português  বাংলা  +/−

To add your language to the list of languages supported by this template, please copy the code of Template:User Files 2/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 Files 2}}

This user has uploaded files to Commons.

Customizing the displayed number

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

{{User Files 2|42}}
{{User Files 2|number=42}}

This user has uploaded 42 files to Commons.

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

{{User Files 2|category=Files by User:UnreifeKirsche}}

This user has uploaded 178 files to Commons.

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

{{User Files 2|category=Files by User:UnreifeKirsche|subtract=5}}

This user has uploaded 173 files to Commons.

Customizing the appereance

You can also change the color scheme of the userbox:

{{User Files 2|number=42|colors=golden}}

This user has uploaded 42 files to Commons.
{{User Files 2|number=42|colors=light-blue}}

This user has uploaded 42 files to Commons.
{{User Files 2|number=42|colors=light-grey}}

This user has uploaded 42 files to Commons.

Customizing the username

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

{{User Files 2|number=42|username=UnreifeKirsche}}

UnreifeKirsche has uploaded 42 files 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 Files 2|number=42|gender=n}}

This user has uploaded 42 files to Commons.
{{User Files 2|number=42|gender=f}}

This user has uploaded 42 files to Commons.
{{User Files 2|number=42|gender=m}}

This user has uploaded 42 files to Commons.