Template:Native name/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Thayts
Created page with '<noinclude>{{documentation subpage}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> Convenience template for placing native names (of places like ...'
 
meta>Thayts
Line 11: Line 11:


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


<p style="float:left; clear:both">results in</p>
<p style="float:left; clear:both">results in</p>
Line 29: Line 28:
<p style="float:left; clear:both">while</p>
<p style="float:left; clear:both">while</p>


<pre style="float:left; clear:both;">
<p style="float:left; clear:both; padding:1em; border:1px dashed #2f6fab; background-color:#f9f9f9;"><code><big>
{{Infobox country
<nowiki>{{Infobox country</nowiki><br />
  |conventional_long_name = French Republic
&nbsp;&nbsp;|conventional_long_name = French Republic<br />
  |native_name           = {{native name|fr|République française|icon=no}}
&nbsp;&nbsp;|native_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= '''<nowiki>{{native name</nowiki>|fr|République française|icon=no}}'''<br />
}}
}}</big></code></p>
</pre>


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

Revision as of 19: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]}}

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".

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