Template:Native name/doc: Difference between revisions

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


===Usage===
===Usage===
  <nowiki>{{native name|</nowiki>''language tag''|''text''|[icon=''no'']}}
  <nowiki>{{native name|</nowiki>''language tag''|''text''|[icon=''no'']|[italic=''no'']}}
where
where
*''language tag'' is the code for the native language (see the [[list of ISO 639 codes]]);
*''language tag'' is the code for the native language (see the [[list of ISO 639 codes]]);
*''text'' is the native name;
*''text'' is the native name;
*<tt>icon</tt> is an optional parameter to exclude the language icon by using the value "no".
*<tt>icon</tt> is an optional parameter to exclude the language icon by using the value "no";
*<tt>italic</tt> is an optional parameter to prevent the name from appearing in italics by using the value "no".


===Examples===
===Examples===

Revision as of 21:22, 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