টেমপ্লেট:Babel/নথি: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Zaheen (আলোচনা | অবদান)
নতুন পৃষ্ঠা: <includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS ...
 
টেমপ্লেট নথি
১ নং লাইন:
{{Documentation subpage}}
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
__TOC__
Your {{tl|Babel box}} is for sayingshowing whatthe languages that you know, as well as whatthe operating system, keyboard layout, web browser, desktop environment, and text editor that you are most comfortable with. Details of how to use it for its original purpose, saying-- whatshowing the languages that you know, -- are at [[Wikipedia:Babel]].
==Babel boxes==
 
Your Babel box is for saying what languages you know, as well as what operating system, keyboard layout, web browser, desktop environment, and text editor you are most comfortable with. Details of how to use it for its original purpose, saying what languages you know, are at [[Wikipedia:Babel]].
=== Usage ===
 
*[[Template:Babel]] - Allows 1 to 100 boxes.<br />Format: <nowiki>{{Babel|<box1>|<box2>|<box3>...}}</nowiki>
 
Parameters can no longer be added using the <code><nowiki>{{!}}</nowiki></code> trick; if you want to use a box with a parameter, create a new userbox which calls the original with that parameter set and then link to the new userbox instead.
==Passing parameters to included user boxes==
The trick is to use the {{tl|!}} template. See below for an example.
 
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:
==User boxes from the "User:" namespaces==
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,Custom footersstyling etc.===
 
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:
 
{{Babel|align=left|color=yellow|en|fr|de|!|tl|ru|:UBX/1337}}
<table class="userboxes" style="float: left; margin-left: 1em; margin-bottom: 0.5em; width: 248px; border: #99B3FF solid 1px; clear: left; color: #000000;">
<tr>
<th style="background-color: yellow; text-align: center" colspan="10">[[Wikipedia:Babel]]</th>
</tr>
<tr style="vertical-align:top;">
<td>
<div style="float:left;border:solid #6ef7a7 1px;margin:1px;">
<table cellspacing="0" style="width:238px;background:#c5fcdc;">
<tr>
<td style="width:45px;height:45px;background:#6ef7a7;text-align:center;font-size:14pt;"><b>[[English language|en]]</b></td>
<td style="font-size:8pt;padding:4pt;line-height:1.25em;">This user is a <b>[[:Category:User_en-N|native]]</b> speaker of <b>[[:Category:User_en|English]]</b>.</td>
</tr>
</table>
</div>
<div style="float:left;border:solid #6EF7A7 1px;margin:1px">
<table cellspacing="0" style="width:238px;background:#C5FCDC">
<tr>
<td style="width:45px;height:45px;background:#6EF7A7;text-align:center;font-size:14pt"><b>[[French language|fr]]</b></td>
<td style="font-size:8pt;padding:4pt;line-height:1.25em">Cet utilisateur a pour <b>[[:Category:User fr-N|langue maternelle]]</b> le <b>[[:Category:User fr|français]]</b>.</td>
</tr>
</table>
</div>
<div style="float:left;border:solid #6EF7A7 1px;margin:1px">
<table cellspacing="0" style="width:238px;background:#C5FCDC">
<tr>
<td style="width:45px;height:45px;background:#6EF7A7;text-align:center;font-size:14pt"><b>[[German language|de]]</b></td>
<td style="font-size:8pt;padding:4pt;line-height:1.25em">Dieser Benutzer spricht <b>[[:Category:User de|Deutsch]]</b> als <b>[[:Category:User de-N|Muttersprache]]</b>.</td>
</tr>
</table>
</div>
</td>
<td>
<div style="float:left;border:solid #6EF7A7 1px;margin:1px">
<table cellspacing="0" style="width:238px;background:#C5FCDC">
<tr>
<td style="width:45px;height:45px;background:#6EF7A7;text-align:center;font-size:14pt"><b>[[Tagalog language|tl]]</b></td>
<td style="font-size:7pt;padding:4pt;line-height:1.25em">Ang manggagamit na ito ay <b>[[:Category:User tl-N|katutubong]]</b> mananalita ng <b>[[:Category:User tl|Tagalog]]</b>.</td>
</tr>
</table>
</div>
<div style="float:left;border:solid #6EF7A7 1px;margin:1px">
<table cellspacing="0" style="width:238px;background:#C5FCDC">
<tr>
<td style="width:45px;height:45px;background:#6EF7A7;text-align:center;font-size:14pt"><b>[[Russian language|ru]]</b></td>
<td style="font-size:8pt;padding:4pt;line-height:1.25em">'''[[:Category:User ru|Русский язык]]''' — '''[[:Category:User ru-N|родной]]''' для этого участника.</td>
</tr>
</table>
</div>
<div style="float: left; border: solid #6ef7a7 1px; margin: 1px;">
<table cellspacing="0" style="width: 238px; background: #c5fcdc;">
<tr>
<td style="width: 45px; height: 45px; background: #6ef7a7; text-align: center; font-size: 12pt;"><b>[[Leet|1337]]</b></td>
<td style="font-size: 8pt; padding: 4pt; line-height: 1.25em;">7|-|15 |_|x0r 5|&gt;34|&lt;5 <b>[[Leet|<i>|€€+</i>]]</b>.</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="background-color: yellow; text-align: center;" colspan="10">[[:Category:Wikipedians by language|Search user languages]]</td>
</tr>
</table>
 
{{-}}
 
==How= to get Babel boxes to workUse 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 "&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 "editview this pagesource" but do not actually change this page. Justand use your computer mouse to copy all the contents, including the computer code. Create a page called "TempateTemplate: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. "<nowiki>{{Babel:|en-1|fr}}</nowiki>" on their user page and the Babel boxes will be displayed.
 
<includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude><includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Language user templates| ]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[ak:Template:Babel]]
[[ang:Template:Babel]]
[[ar:قالب:Babel]]
[[bnas:Template:Babel]]
[[az:Şablon:Babel]]
[[bn:Template:Babel]]
[[bo:Template:Babel]]
[[bpy:মডেল:Babel]]
[[ca:plantilla:Babel]]
[[ce:Шаблон:Бабел]]
[[ce:Куцкеп:Къадингир]]
[[ceb:Template:Babel]]
[[cr:Template:Babel]]
১১১ ⟶ ৫১ নং লাইন:
[[da:Skabelon:Babel]]
[[de:Vorlage:Babel]]
[[el:Πρότυπο:Βαβέλ]]
[[dsb:Pśedłoga:Babel]]
[[en:Template:Babel]]
[[eo:Ŝablono:Babel]]
[[es:Plantilla:Babel-X]]
[[eu:Txantiloi:Babel]]
[[fa:الگو:Babel]]
[[ff:Template:Babel]]
১২০ ⟶ ৬৪ নং লাইন:
[[he:תבנית:Babel]]
[[hi:साँचा:Babel-X]]
[[hr:Predložak:Babel]]
[[hsb:Předłoha:Babel]]
[[id:Templat:Babel]]
১২৫ ⟶ ৭০ নং লাইন:
[[ja:Template:Babel]]
[[jbo:Template:Babel]]
[[ka:თარგი:Babel]]
[[kk:Үлгі:Babel]]
[[km:Template:Babel]]
১৩৩ ⟶ ৭৯ নং লাইন:
[[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]]
১৪৪ ⟶ ৯২ নং লাইন:
[[sco:Template:Babel]]
[[se:Template:Babel]]
[[sv:Mall:Babel]]
[[sh:Template:Babel]]
[[simple:Template:Babel]]