Difference between revisions of "Template:Translation table"
(Created page with "{{Lan |infobox={{{infobox|}}} |hidetitle={{{hidetitle|}}} |width={{{width|}}} |text={{#if:{{{af|}}}|{{af|{{{af}}}|inline={{{inline|}}}}}{{#if:{{{inline|}}}|{{·}} }}}}<!--...") |
m (Protected "Template:Translation table" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
Latest revision as of 19:40, 4 September 2012
Contents
Usage
<poem>{{Translation table |lang1=text in lang1 |lang2=text in lang2 |lang3=text in lang3 ... }}</poem>
- inline=something
- optional parameter. Line view. Paragraph format instead of column format. "Something" can be anything. For example; inline=paragraph or inline=y. Without a specific width setting the default width with the inline setting is 100%.
- hidetitle=something
- optional parameter. This hides the title. "Something" can be anything. For example; hidetitle=yes or hidetitle=y.
- width=size
- default=180px. For maximum width use width=100%. For a width that varies according to font size use em units. For example; width=20em.
- Note
- Difference with {{Lan}} is that language codes are here default ordered.
Examples
- Simple
<poem>{{Translation table |en=This is an example ! |fr=Ceci est un exemple ! |ar=هذا مثال ! |he=זוהי הגדמה ! }}</poem>
- With inline
<poem>{{Translation table|inline=o |fr=Ceci est un exemple ! |en=This is an example ! |ar=هذا مثال ! |he=זוהי הדגמה ! }}</poem>
- With hidetitle
<poem>{{Translation table|hidetitle=o|inline=o|width=75% |fr=Ceci est un exemple ! |en=This is an example ! |da=Test done ! |tr=Bu bir örnektir ! |ar=هذا مثال ! |he=זוהי הדגמה ! }}</poem>
- Infobox style
<poem>{{Translation table|infobox=o |fr=Ceci est un exemple ! |en=This is an example ! |da=Test done ! |tr=Bu bir örnektir ! |ar=هذا مثال ! |he=זוהי הדגמה ! }}</poem>
Relies on
- {{Lan}}
See also
- {{On Wikipedia}}, which is linking to multiple Wikipedia articles directly
The above documentation is transcluded from Template:Translation table/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |