Difference between revisions of "Template:BabelBoxCommons/doc"

From blackwiki
Jump to navigation Jump to search
imported>Magioladitis
(++)
imported>Funandtrvl
(add cat)
Line 1: Line 1:
 
{{notice|'''If you are looking for the language file, please go to [[Template:BabelBoxCommons/languages]].'''}}
 
{{notice|'''If you are looking for the language file, please go to [[Template:BabelBoxCommons/languages]].'''}}
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
  
=== Usage ===
+
== Usage ==
 
{{translated|de|Benutzer:Bjs/Babel/Commons||version=61557082}}
 
{{translated|de|Benutzer:Bjs/Babel/Commons||version=61557082}}
  
Line 22: Line 22:
 
If that's not enough for you, the optional parameters <code>verb</code> and <code>restofmessage</code> let you replace the entire message by a text of your own choice. Takes the pain out of translating template source text. ;)
 
If that's not enough for you, the optional parameters <code>verb</code> and <code>restofmessage</code> let you replace the entire message by a text of your own choice. Takes the pain out of translating template source text. ;)
  
=== Examples ===
+
== Examples ==
 
<table>
 
<table>
 
<tr><td><code><nowiki>{{BabelBoxCommons|who=This user|verb=uploads all of|pronoun=his|restofmessage=images on Commons and has a userpage there.}}</nowiki></code></td><td>{{BabelBoxCommons|who=This user |verb=uploads |pronoun= all of his |restofmessage=images on Commons and has a userpage there.}}</td></tr>
 
<tr><td><code><nowiki>{{BabelBoxCommons|who=This user|verb=uploads all of|pronoun=his|restofmessage=images on Commons and has a userpage there.}}</nowiki></code></td><td>{{BabelBoxCommons|who=This user |verb=uploads |pronoun= all of his |restofmessage=images on Commons and has a userpage there.}}</td></tr>
Line 29: Line 29:
 
</table>
 
</table>
  
=== Default messages ===
+
== Default messages ==
 
For the default messages in the various languages, look at the [[/languages]] subpage. Currently, they are:
 
For the default messages in the various languages, look at the [[/languages]] subpage. Currently, they are:
  
Line 42: Line 42:
 
</table>
 
</table>
  
=== Tasks ===
+
== Tasks ==
 
* Babel box forces the template into user space even if template: is specified
 
* Babel box forces the template into user space even if template: is specified
 
* default category and category suppression
 
* default category and category suppression
 
* improve documentation, and make it localizable, too
 
* improve documentation, and make it localizable, too
 
=== See also ===
 
  
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- CATEGORIES HERE, THANKS -->
[[Category:Userboxes| Commons]]
+
{{DEFAULTSORT:Babelboxcommons}}
 +
[[Category:Language user templates]]
 
</includeonly>
 
</includeonly>

Revision as of 22:56, 9 April 2015

Usage

Template:Translated

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.}}
Commons-logo.svgThis user uploads all of his 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.}}
Commons-logo.svgIch bin ein Berliner und halte meine Rede vor dem Rathaus Schöneberg.
{{BabelBoxCommons}} produces the default English message
Commons-logo.svgThis user is a Commonist and has a user page at Commons.

Default messages

For the default messages in the various languages, look at the /languages subpage. Currently, they are:

{{BabelBoxCommons}}
Commons-logo.svgThis user is a Commonist and has a user page at Commons.
{{BabelBoxCommons|en}}
Commons-logo.svgThis user is a Commonist and has a user page at Commons.
{{BabelBoxCommons|de}}
Commons-logo.svgDieser Benutzer ist ein Commonist.
{{BabelBoxCommons|en_image_page}}
Commons-logo.svgThis user uploads images on Commons and has a user page there.
{{BabelBoxCommons|de_bilder_seite}}
Commons-logo.svgDieser Benutzer lädt Bilder bei Commons hoch, und hat dort auch eine Benutzerseite.
{{BabelBoxCommons|en_nopage}}
Commons-logo.svgThis user is a Commonist.
{{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