Difference between revisions of "Template:Translation table/doc"
(Created page with "{{documentation subpage}} ==Usage== <poem><nowiki>{{Translation table |lang1=text in lang1 |lang2=text in lang2 |lang3=text in lang3 ... }}</nowiki></poem> ;inline=s...") |
m (Protected "Template:Translation table/doc" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
Latest revision as of 20:34, 4 September 2012
This is a documentation subpage for Template:Translation table (see that page for the template itself). It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
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