Template:Lang: Difference between revisions
Template page
More actions
use #dir parser function |
use empty value if lang isn't passed, to avoid Category:Pages with invalid language codes be shown in this template |
||
| Line 1: | Line 1: | ||
<div lang="{{{1}}}" dir="{{#dir:{{{1}}}}}" class="description {{{1}}}" style="display:inline;">{{{2}}}</div><noinclude> | <div lang="{{{1|}}}" dir="{{#dir:{{{1|}}}}}" class="description {{{1|}}}" style="display:inline;">{{{2}}}</div><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Internationalization templates]] | [[Category:Internationalization templates]] | ||
</noinclude> | </noinclude> | ||