Template:Native name/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Thayts
No edit summary
meta>Thayts
note
Line 12: Line 12:


===Examples===
===Examples===
<p style="float:left; clear:both; padding:1em; border:1px dashed #2f6fab; background-color:#f9f9f9;"><code><big>
<p style="padding:1em; border:1px dashed #2f6fab; background-color:#f9f9f9;"><code><big>
<nowiki>{{Infobox settlement</nowiki><br />
<nowiki>{{Infobox settlement</nowiki><br />
&nbsp;&nbsp;|name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= The Hague<br />
&nbsp;&nbsp;|name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= The Hague<br />
Line 18: Line 18:
}}</big></code></p>
}}</big></code></p>


<p style="float:left; clear:both">results in</p>
results in


<table class="infobox geography vcard" style="width:23em; text-align:left; float:left; clear:both;">
<table class="infobox geography vcard" style="width:23em; text-align:left; float:left; clear:both;">
Line 27: Line 27:
</table>
</table>


<p style="float:left; clear:both">while</p>
<p style="clear:both">while</p>


<p style="float:left; clear:both; padding:1em; border:1px dashed #2f6fab; background-color:#f9f9f9;"><code><big>
<p style="padding:1em; border:1px dashed #2f6fab; background-color:#f9f9f9;"><code><big>
<nowiki>{{Infobox country</nowiki><br />
<nowiki>{{Infobox country</nowiki><br />
&nbsp;&nbsp;|conventional_long_name = French Republic<br />
&nbsp;&nbsp;|conventional_long_name = French Republic<br />
Line 35: Line 35:
}}</big></code></p>
}}</big></code></p>


<p style="float:left; clear:both">results in</p>
results in


<table class="infobox geography vcard" style="width: 22em; font-size: 88%; float: left; clear: both;">
<table class="infobox geography vcard" style="width: 22em; font-size: 88%; float: left; clear: both;">
Line 44: Line 44:
</tr>
</tr>
</table>
</table>
<p style="clear:both">&nbsp;</p>
===Note===
When setting both the <tt>icon</tt> and <tt>italic</tt> parameters to "no", this template is equivalent to the {{tl|lang}} template.


<includeonly>
<includeonly>
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
</includeonly>
</includeonly>

Revision as of 21:37, 14 August 2011

Convenience template for placing native names (of places like countries and towns) in infoboxes. Uses {{lang}} and {{language icon}}.

Usage

{{native name|language tag|text|[icon=no]|[italic=no]}}

where

  • language tag is the code for the native language (see the list of ISO 639 codes);
  • text is the native name;
  • icon is an optional parameter to exclude the language icon by using the value "no";
  • italic is an optional parameter to prevent the name from appearing in italics by using the value "no".

Examples

{{Infobox settlement
  |name        = The Hague
  |native_name = {{native name|nl|Den Haag}}
}}

results in

The Hague
Den Haag  (Dutch)

while

{{Infobox country
  |conventional_long_name = French Republic
  |native_name            = {{native name|fr|République française|icon=no}}
}}

results in

French Republic
République française

 

Note

When setting both the icon and italic parameters to "no", this template is equivalent to the {{lang}} template.