Template:User Sounds 2/doc

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

As a user box for users who have uploaded one or more sound files 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

Deutsch | English | Français | Galego | Italiano | Norsk bokmål | Română | Русский |

To add your language to the list of languages supported by this template, please copy the code of Template:User Sounds 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 Sounds 2}}
Gnome-audio-input-microphone.svg This user has uploaded sound files to Commons.



Customizing the displayed number

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

{{User Sounds 2|42}}
{{User Sounds 2|number=42}}
Gnome-audio-input-microphone.svg This user has uploaded 42 sound files to Commons.



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

{{User Sounds 2|category=Sounds by GuentherZ}}
Gnome-audio-input-microphone.svg This user has uploaded 3 sound files to Commons.



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

{{User Sounds 2|category=Sounds by GuentherZ|subtract=5}}
Gnome-audio-input-microphone.svg This user has uploaded sound files to Commons.



Customizing the appereance

You can also change the color scheme of the userbox:

{{User Sounds 2|number=42|colors=golden}}
Gnome-audio-input-microphone.svg This user has uploaded 42 sound files to Commons.



{{User Sounds 2|number=42|colors=light-blue}}
Gnome-audio-input-microphone.svg This user has uploaded 42 sound files to Commons.



{{User Sounds 2|number=42|colors=light-grey}}
Gnome-audio-input-microphone.svg This user has uploaded 42 sound files to Commons.



Customizing the username

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

{{User Sounds 2|number=42|username=UnreifeKirsche}}
Gnome-audio-input-microphone.svg UnreifeKirsche has uploaded 42 sound 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 Sounds 2|number=42|gender=n}}
Gnome-audio-input-microphone.svg This user has uploaded 42 sound files to Commons.



{{User Sounds 2|number=42|gender=f}}
Gnome-audio-input-microphone.svg This user has uploaded 42 sound files to Commons.



{{User Sounds 2|number=42|gender=m}}
Gnome-audio-input-microphone.svg This user has uploaded 42 sound files to Commons.