Template:Babel: Difference between revisions

From MapleWiki
Jump to navigation Jump to search
(Created page with '<noinclude>{{Documentation subpage}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> __TOC__ ==Babel boxes== Your Babel box is for showing the languages that you...')
 
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Documentation subpage}}</noinclude>
{| class="userboxes" style="float: {{{align|right}}}; margin-left: {{{left|1}}}em; margin-bottom: {{{bottom|0.5}}}em; width: {{{width|248}}}px; border: {{{bordercolor|#99B3FF}}} solid {{{solid|1}}}px; clear: {{{align|right}}}; color: {{{textcolor|#000000}}}; {{{extra-css|}}}"
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
|-
__TOC__
! style="background-color: {{{color|inherit}}}; text-align: center" colspan="10" | {{{header|Wikipedia:Babel}}}
==Babel boxes==
|-
Your Babel box is for showing the languages that you know, as well as the operating system, keyboard layout, web browser, desktop environment, and text editor that you are most comfortable withDetails of how to use it for its original purpose -- showing the languages that you know -- are at [[Wikipedia:Babel]].
| style="vertical-align:middle !important" | {{#if:{{{1|}}}|{{User {{{1}}}}}|<div style="text-align:center">This user cannot read or write any languages. Assistance is required.</div>
}}{{#if:{{{2|}}}|{{User {{{2}}}}}
}}{{#if:{{{3|}}}|{{User {{{3}}}}}
}}{{#if:{{{4|}}}|{{User {{{4}}}}}
}}{{#if:{{{5|}}}|{{User {{{5}}}}}
}}{{#if:{{{6|}}}|{{User {{{6}}}}}
}}{{#if:{{{7|}}}|{{User {{{7}}}}}
}}{{#if:{{{8|}}}|{{User {{{8}}}}}
}}{{#if:{{{9|}}}|{{User {{{9}}}}}
}}{{#if:{{{10|}}}|{{User {{{10}}}}}
}}{{#if:{{{11|}}}|{{User {{{11}}}}}
}}{{#if:{{{12|}}}|{{User {{{12}}}}}
}}{{#if:{{{13|}}}|{{User {{{13}}}}}
}}{{#if:{{{14|}}}|{{User {{{14}}}}}
}}{{#if:{{{15|}}}|{{User {{{15}}}}}
}}{{#if:{{{16|}}}|{{User {{{16}}}}}
}}{{#if:{{{17|}}}|{{User {{{17}}}}}
}}{{#if:{{{18|}}}|{{User {{{18}}}}}
}}{{#if:{{{19|}}}|{{User {{{19}}}}}
}}{{#if:{{{20|}}}|{{User {{{20}}}}}
}}{{#if:{{{21|}}}|{{User {{{21}}}}}
}}{{#if:{{{22|}}}|{{User {{{22}}}}}
}}{{#if:{{{23|}}}|{{User {{{23}}}}}
}}{{#if:{{{24|}}}|{{User {{{24}}}}}
}}{{#if:{{{25|}}}|{{User {{{25}}}}}
}}{{#if:{{{26|}}}|{{User {{{26}}}}}
}}{{#if:{{{27|}}}|{{User {{{27}}}}}
}}{{#if:{{{28|}}}|{{User {{{28}}}}}
}}{{#if:{{{29|}}}|{{User {{{29}}}}}
}}{{#if:{{{30|}}}|{{User {{{30}}}}}
}}{{#if:{{{31|}}}|{{User {{{31}}}}}
}}{{#if:{{{32|}}}|{{User {{{32}}}}}
}}{{#if:{{{33|}}}|{{User {{{33}}}}}
}}{{#if:{{{34|}}}|{{User {{{34}}}}}
}}{{#if:{{{35|}}}|{{User {{{35}}}}}
}}{{#if:{{{36|}}}|{{User {{{36}}}}}
}}{{#if:{{{37|}}}|{{User {{{37}}}}}
}}{{#if:{{{38|}}}|{{User {{{38}}}}}
}}{{#if:{{{39|}}}|{{User {{{39}}}}}
}}{{#if:{{{40|}}}|{{User {{{40}}}}}
}}{{#if:{{{41|}}}|{{User {{{41}}}}}
}}{{#if:{{{42|}}}|{{User {{{42}}}}}
}}{{#if:{{{43|}}}|{{User {{{43}}}}}
}}{{#if:{{{44|}}}|{{User {{{44}}}}}
}}{{#if:{{{45|}}}|{{User {{{45}}}}}
}}{{#if:{{{46|}}}|{{User {{{46}}}}}
}}{{#if:{{{47|}}}|{{User {{{47}}}}}
}}{{#if:{{{48|}}}|{{User {{{48}}}}}
}}{{#if:{{{49|}}}|{{User {{{49}}}}}
}}{{#if:{{{50|}}}|{{User {{{50}}}}}
}}{{#if:{{{51|}}}|{{User {{{51}}}}}
}}{{#if:{{{52|}}}|{{User {{{52}}}}}
}}{{#if:{{{53|}}}|{{User {{{53}}}}}
}}{{#if:{{{54|}}}|{{User {{{54}}}}}
}}{{#if:{{{55|}}}|{{User {{{55}}}}}
}}{{#if:{{{56|}}}|{{User {{{56}}}}}
}}{{#if:{{{57|}}}|{{User {{{57}}}}}
}}{{#if:{{{58|}}}|{{User {{{58}}}}}
}}{{#if:{{{59|}}}|{{User {{{59}}}}}
}}{{#if:{{{60|}}}|{{User {{{60}}}}}
}}{{#if:{{{61|}}}|{{User {{{61}}}}}
}}{{#if:{{{62|}}}|{{User {{{62}}}}}
}}{{#if:{{{63|}}}|{{User {{{63}}}}}
}}{{#if:{{{64|}}}|{{User {{{64}}}}}
}}{{#if:{{{65|}}}|{{User {{{65}}}}}
}}{{#if:{{{66|}}}|{{User {{{66}}}}}
}}{{#if:{{{67|}}}|{{User {{{67}}}}}
}}{{#if:{{{68|}}}|{{User {{{68}}}}}
}}{{#if:{{{69|}}}|{{User {{{69}}}}}
}}{{#if:{{{70|}}}|{{User {{{70}}}}}
}}{{#if:{{{71|}}}|{{User {{{71}}}}}
}}{{#if:{{{72|}}}|{{User {{{72}}}}}
}}{{#if:{{{73|}}}|{{User {{{73}}}}}
}}{{#if:{{{74|}}}|{{User {{{74}}}}}
}}{{#if:{{{75|}}}|{{User {{{75}}}}}
}}{{#if:{{{76|}}}|{{User {{{76}}}}}
}}{{#if:{{{77|}}}|{{User {{{77}}}}}
}}{{#if:{{{78|}}}|{{User {{{78}}}}}
}}{{#if:{{{79|}}}|{{User {{{79}}}}}
}}{{#if:{{{80|}}}|{{User {{{80}}}}}
}}{{#if:{{{81|}}}|{{User {{{81}}}}}
}}{{#if:{{{82|}}}|{{User {{{82}}}}}
}}{{#if:{{{83|}}}|{{User {{{83}}}}}
}}{{#if:{{{84|}}}|{{User {{{84}}}}}
}}{{#if:{{{85|}}}|{{User {{{85}}}}}
}}{{#if:{{{86|}}}|{{User {{{86}}}}}
}}{{#if:{{{87|}}}|{{User {{{87}}}}}
}}{{#if:{{{88|}}}|{{User {{{88}}}}}
}}{{#if:{{{89|}}}|{{User {{{89}}}}}
}}{{#if:{{{90|}}}|{{User {{{90}}}}}
}}{{#if:{{{91|}}}|{{User {{{91}}}}}
}}{{#if:{{{92|}}}|{{User {{{92}}}}}
}}{{#if:{{{93|}}}|{{User {{{93}}}}}
}}{{#if:{{{94|}}}|{{User {{{94}}}}}
}}{{#if:{{{95|}}}|{{User {{{95}}}}}
}}{{#if:{{{96|}}}|{{User {{{96}}}}}
}}{{#if:{{{97|}}}|{{User {{{97}}}}}
}}{{#if:{{{98|}}}|{{User {{{98}}}}}
}}{{#if:{{{99|}}}|{{User {{{99}}}}}
}}{{#if:{{{100|}}}|{{User {{{100}}}}}
}}{{{special-boxes|}}}
|-
| style="background-color: {{{color|inherit}}}; text-align: center;" colspan="10" |
|}


*[[Template:Babel]] - Allows 1 to 100 boxes.<br />Format: <nowiki>{{Babel|<box1>|<box2>|<box3>...}}</nowiki>
<noinclude>


==Passing parameters to included user boxes==
==Usage==
The trick is to use the {{tl|!}} template. See below for an example.


==User boxes from the "User:" namespaces==
The Babel template is meant to let other users see what languages a user knows, and what level of that language they can speak.
The Babel box prefixes its arguments with "User ", so it will work with the User: namespace. For example, this would include the <nowiki>{{</nowiki>[[:User:Urhixidur/Userboxes/Asteroid|User:Urhixidur/Userboxes/Asteroid]]}} user box, and pass it a parameter as well:
<pre>
{{Babel|<box1>|<box2>|:Urhixidur/Userboxes/Asteroid{{!}}<parameter>|<box 4>|...}}
</pre>


==Custom headers, footers etc.==
To use the Babel box on your user page, start by typing
To customize the appearance you can add the optional parameters header=''HEADER'' (default: [[Wikipedia:Babel]]), footer=''FOOTER'' (default: [[:Category:Wikipedians by language|Search user languages]]), bordercolor=''BORDERCOLOR'' (default: #99B3FF), color=''COLOR'' (default: white), textcolor=''TEXTCOLOR'' (default: black), left=''Left margin'' (default: 1), bottom=''Bottom margin'' (default: 0.5), solid=''Solid border width'' (default: 1), width=''Box width'' (default: 248), and/or extra-css=<any other formatting>. Call the '!' userbox to start a new column after that point or the '-' userbox to insert a blank row. You may also use '|align=left' to display the babel box on the left side of the screen rather than the default right. Boxes with parameters can be added at the end with the format, "|special-boxes=<nowiki>{{box page name|param1|param2}}{{second page name|param1|param2|param3}}</nowiki>". Any number of additional boxes can be added this way and will display below the others.


Example: <nowiki>{{Babel|align=left|color=yellow|en|fr|de|!|tl|ru|:UBX/1337}}</nowiki> produces:
<nowiki>
{{babel|</nowiki>
on your user page.


{{Babel|align=left|color=yellow|en|fr|de|!|tl|ru|:UBX/1337}}
Then, you can add the languages you know by inserting the language code and number:
<nowiki>
{{babel|xx-#</nowiki>
Here, xx stands for the two letter language code of that language. To see a list of the languages that are available and completed, see below.
For example, en-N would mean that the user is a native (N) speaker of English (en).
<nowiki>
{{babel|en-N</nowiki>
If you want to add more languages, type a pipe (|), then add more language codes:
<nowiki>
{{babel|en-N|es-N|fr-3|it-4</nowiki>
Then end with }}.
<nowiki>
{{babel|en-N|es-N|fr-3|it-4}}</nowiki>


{{-}}
You can have up to 100 language boxes.
<nowiki>{{babel|en-N|es-N|fr-3|it-4}} produces something like this:</nowiki>


==How to get Babel boxes to work on other Wikipedias==
{{babel|en-N|es-N|fr-3|it-4}}
The page you are now reading is the actual Babel template.  If you click "edit this page", you will see a bunch of computer code that makes the Babel boxes work.  What you're now reading is just comments in that code, inside "&lt;noinclude&gt;" tags so it doesn't interfere with the computer code.


In order to have Babel boxes on another Wikimedia project, just copy this page to that project. Click "view source" and use your computer mouse to copy all the contents, including the computer code. Create a page called "Template:Babel" on the other Wikimedia project and put the content into it.
You can also add color:
  <nowiki>
{{babel|color=xxxxxx|xx-#|xx-#}}</nowiki>
   


You also need to copy over a bunch of files with names like "Template:User en", "Template:User en-1", "Template:User fr", etc. etc.  Once you've done that, users can put e.g. "<nowiki>{{Babel|en-1|fr}}</nowiki>" on their user page and the Babel boxes will be displayed.


<includeonly>
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
"xxxxxx" is where you can put the color code (such as FFFFFF) for the color you want. You can also type regular color names there (such as blue).
[[ak:Template:Babel]]
 
[[ang:Template:Babel]]
<nowiki>
[[ar:قالب:Babel]]
{{babel|color=blue|en-N|es-N|fr-3|it-4}}</nowiki>
[[az:Şablon:Babel]]
 
[[bn:Template:Babel]]
produces:
[[bo:Template:Babel]]
 
[[bpy:মডেল:Babel]]
{{babel|color=blue|en-N|es-N|fr-3|it-4}}
[[ca:plantilla:Babel]]
[[ce:Шаблон:Бабел]]
[[ceb:Template:Babel]]
[[cr:Template:Babel]]
[[cs:Šablona:Babel]]
[[da:Skabelon:Babel]]
[[de:Vorlage:Babel]]
[[el:Πρότυπο:Βαβέλ]]
[[dsb:Pśedłoga:Babel]]
[[eo:Ŝablono:Babel]]
[[es:Plantilla:Babel-X]]
[[fa:الگو:Babel]]
[[ff:Template:Babel]]
[[fj:Template:Babel]]
[[fr:Modèle:Babel]]
[[gv:Template:Babel]]
[[he:תבנית:Babel]]
[[hi:साँचा:Babel-X]]
[[hr:Predložak:Babel]]
[[hsb:Předłoha:Babel]]
[[id:Templat:Babel]]
[[is:Snið:Málkassi-X]]
[[ja:Template:Babel]]
[[jbo:Template:Babel]]
[[ka:თარგი:Babel]]
[[kk:Үлгі:Babel]]
[[km:Template:Babel]]
[[ko:틀:바벨]]
[[ks:Template:Babel]]
[[la:Formula:Babel-X]]
[[lb:Template:Babel-X]]
[[lg:Template:Babel]]
[[lmo:Template:Babel]]
[[lv:Veidne:Babel]]
[[mn:Template:Babel]]
[[mr:साचा:Babel]]
[[new:Template:Babel]]
[[nl:Sjabloon:Babel]]
[[no:Mal:Babel]]
[[os:Шаблон:Babel]]
[[pap:Template:Babel]]
[[pl:Szablon:Babel]]
[[pt:Predefinição:Babel]]
[[ru:Шаблон:Babel]]
[[sco:Template:Babel]]
[[se:Template:Babel]]
[[sh:Template:Babel]]
[[simple:Template:Babel]]
[[sl:Predloga:Babilon]]
[[sq:Stampa:Babel]]
[[sr:Шаблон:Babel]]
[[sw:Template:Babel]]
[[tg:Шаблон:Babel]]
[[th:แม่แบบ:บาเบล]]
[[tl:Template:Babel]]
[[tr:Şablon:Babil]]
[[ug:Template:Babel]]
[[vi:Tiêu bản:Babel]]
[[vo:Samafomot:Babel]]
[[war:Template:Babel]]
[[wuu:Template:Babel]]
[[yi:מוסטער:באבעל]]
[[zh-classical:Template:Babel]]
[[zh-min-nan:Template:Babel]]
[[zh-yue:Template:Babel]]
[[zh:Template:Babel]]
</includeonly>

Latest revision as of 19:29, 18 August 2009

Wikipedia:Babel
This user cannot read or write any languages. Assistance is required.


Usage

The Babel template is meant to let other users see what languages a user knows, and what level of that language they can speak.

To use the Babel box on your user page, start by typing

 {{babel|

on your user page.

Then, you can add the languages you know by inserting the language code and number:

 {{babel|xx-#

Here, xx stands for the two letter language code of that language. To see a list of the languages that are available and completed, see below. For example, en-N would mean that the user is a native (N) speaker of English (en).

 {{babel|en-N

If you want to add more languages, type a pipe (|), then add more language codes:

 {{babel|en-N|es-N|fr-3|it-4

Then end with }}.

 {{babel|en-N|es-N|fr-3|it-4}}

You can have up to 100 language boxes.

{{babel|en-N|es-N|fr-3|it-4}} produces something like this:

Wikipedia:Babel
en This user is a native speaker of English.
es Este usuario tiene el español como lengua materna.
fr-3 Cet utilisateur peut contribuer avec un niveau avancé de français.
it-4 Questo utente ha una conoscenza da madrelingua dell italiano.


You can also add color:

 {{babel|color=xxxxxx|xx-#|xx-#}}



"xxxxxx" is where you can put the color code (such as FFFFFF) for the color you want. You can also type regular color names there (such as blue).

 {{babel|color=blue|en-N|es-N|fr-3|it-4}}

produces:

Wikipedia:Babel
en This user is a native speaker of English.
es Este usuario tiene el español como lengua materna.
fr-3 Cet utilisateur peut contribuer avec un niveau avancé de français.
it-4 Questo utente ha una conoscenza da madrelingua dell italiano.