Шаблон:Babel/Документация


Babel boxes Тупатыны

Babel box предназначен для того чтобы показать, какими языками владеет участник, также можно привести информацию об используемой операционной системе, аппаратной платформе, способах связи с участником и т. п.

О том, как указать владение языками см. Википедия:Вавилон. Для указания всего остального, см. категорию Категория:Википедия:Викиавторъёс.

  • Шаблон:Babel — разрешает от 1 до 100 boxes.
    Формат: {{Babel|<box1>|<box2>|<box3>...}}
  • Шаблон:Babel-N — разрешает использование любого числа of boxes.

Формат: {{Babel-N |1={{User <box1>}}{{User <box2>}}{{User <box3>}}...}}

Настройка полосы заголовка и т.п. Тупатыны

Для настройки своего собственного заголовка (header-а), "подвала" (footer-а), или цвета рамки, нужно добавить параметры:

Call the '!' userbox to start a new column after that point or the '-' userbox to insert a blank row. Вы также можете писать '|align=left' чтобы babel box отображался на левой стороне экрана в обход установленной по умолчанию правой стороны.

Пример: {{Babel|align=left|color=yellow|en|fr|de|ru}} даёт:

Википедия:Вавилон
en This user is a native speaker of English
fr Cette personne a pour langue maternelle le français
de Dieser Benutzer spricht Deutsch als Muttersprache
ru Для этого участника русский язык является родным
Википедисты по языкам

How to get Babel boxes to work on other Wikipedias Тупатыны

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 «<noinclude>» 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 «edit this page» but do not actually change this page. Just use your computer mouse to copy all the contents, including the computer code. Create a page called «Tempate:Babel» on the other Wikimedia project and put the content into it.

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. «{{Babel:en-1|fr}}» on their user page and the Babel boxes will be displayed.