Difference between revisions of "Template:BabelBoxCommons"
imported>Magioladitis (File:) |
imported>WOSlinker (use userbox) |
||
Line 1: | Line 1: | ||
− | + | {{userbox | |
− | + | | border-c = {{{color 1|#C0C0C0}}} | |
− | | | + | | id = [[File:Commons-logo.svg|32px]] |
− | | | + | | id-c = {{{color 2|#FFF}}} |
− | |} | + | | info = {{{who|{{BabelBoxCommons/languages|{{{language|{{{lang|{{{1}}}<noinclude></noinclude>}}}<noinclude></noinclude>}}}|1}}<noinclude></noinclude>}}} {{{verb|{{BabelBoxCommons/languages|{{{language|{{{lang|{{{1}}}<noinclude></noinclude>}}}<noinclude></noinclude>}}}|2}}<noinclude></noinclude>}}} {{{pronoun|{{{2|{{BabelBoxCommons/languages|{{{language|{{{lang|{{{1}}}<noinclude></noinclude>}}}<noinclude></noinclude>}}}|3}}<noinclude></noinclude>}}}<noinclude></noinclude>}}} {{{restofmessage|{{BabelBoxCommons/languages|{{{language|{{{lang|{{{1}}}<noinclude></noinclude>}}}<noinclude></noinclude>}}}|4}}<noinclude></noinclude>}}} |
+ | | info-c = {{{color 2|#FFF}}} | ||
+ | | info-fc = {{{text color|#000}}} | ||
+ | | info-s = {{{text size| .86em}}} | ||
+ | }}<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 18:07, 16 July 2019
![]() | This user is a Commonist and has a user page at Commons. |
![]() | If you are looking for the language file, please go to Template:BabelBoxCommons/languages. |
Contents
Usage
Full usage:
{{BabelBoxCommons|language=|who=|verb=|pronoun=|restofmessage=}}
Using all parameters simultaneously is only useful if you want to indicate the language the message is in. This might be useful to others who have no idea what all those funny symbols are about, and might be used by bots to add new language defaults to the template. Far, far into the future. Really, really, far.
In all other cases, you'll never need to specify more than four parameters.
Use the optional parameter lang
/language
to specify the default message's language. If not specified, the first unnamed parameter is used. If neither is specified, the default is English.
Use the optional parameter who
to replace "This user". Examples: "This Wikipedian", "This Commonist", "I", your username, "This European".
Use the optional parameter pronoun
to provide your favorite pronoun, usually one of "his", "her", "its", "my". If not provided, the second unnamed parameter is used. Defaults to no pronoun used.
If that's not enough for you, the optional parameters verb
and restofmessage
let you replace the entire message by a text of your own choice. Takes the pain out of translating template source text. ;)
Examples
{{BabelBoxCommons|who=This user|verb=uploads all of|pronoun=his|restofmessage=images on Commons and has a userpage there.}} | |||
{{BabelBoxCommons|who=Ich bin [[John F. Kennedy|ein Berliner]] und|verb=halte|pronoun=meine|restofmessage=Rede vor dem Rathaus Schöneberg.}} |
| ||
{{BabelBoxCommons}} produces the default English message |
|
Default messages
For the default messages in the various languages, look at the /languages subpage. Currently, they are:
{{BabelBoxCommons}} |
| ||
{{BabelBoxCommons|en}} |
| ||
{{BabelBoxCommons|de}} |
| ||
{{BabelBoxCommons|en_image_page}} | |||
{{BabelBoxCommons|de_bilder_seite}} |
| ||
{{BabelBoxCommons|en_nopage}} |
| ||
{{BabelBoxCommons|en_card}} |
|
Tasks
- Babel box forces the template into user space even if template: is specified
- default category and category suppression
- improve documentation, and make it localizable, too
The above documentation is transcluded from Template:BabelBoxCommons/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |