Difference between revisions of "Template:Efn native lang/doc"

From blackwiki
Jump to navigation Jump to search
imported>Geographyinitiative
("whenever possible" is authoritarianism--- "whenever appropriate" is what we want on Wikipedia)
imported>Zyxw
m (add category, add header for TemplateData, reorder sections)
 
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{lua|Module:Efn native lang}}
 
{{lua|Module:Efn native lang}}
 +
 
== Usage ==
 
== Usage ==
−
<includeonly>{{sandbox other||
+
=== Basic usage ===
−
<!-- Categories below this line, please; interwikis at Wikidata -->
+
<pre>{{efn native lang|tw|name=
−
[[Category:Chinese multilingual support templates]]
+
  |t=
−
}}</includeonly>
+
  |p=
 +
  |m=
 +
  |s=}}</pre>
 +
Insert a notes section if not already present.
 +
<pre>
 +
 
 +
== Notes ==
 +
=== Words in native languages ===
 +
{{notelist-ur}}
 +
</pre>
 +
 
 +
== Example ==
 +
{{demo
 +
|br =
 +
|demo_kill_categories =
 +
|<nowiki>Taiwan{{efn native lang|tw|name=word1
 +
  |t=臺灣
 +
  |p=Táiwān
 +
  |m=Tâi-uân
 +
  |s=Tǒi-vǎn
 +
  |h=Toi-van
 +
  |a=Taywan
 +
  |pw=Taiwan
 +
}}
 +
=== Notes ===
 +
==== Words in native languages ====
 +
{{notelist-ur}}</nowiki>
 +
}}
 +
== TemplateData ==
 +
{{TemplateData header}}
 
<templatedata>
 
<templatedata>
 
{
 
{
 +
"description": "This template creates a explanatory footnote for a word in the native languages of a country, currently only Taiwan. For consistency, use official romanisation schemes whenever appropriate.",
 
"params": {
 
"params": {
 
"1": {
 
"1": {
Line 75: Line 106:
 
"pw",
 
"pw",
 
"ma"
 
"ma"
−
],
+
]
−
"description": "This template creates a explanatory footnote for a word in the native languages of a country, currently only Taiwan. For consistency, use official romanisation schemes whenever appropriate."
 
 
}
 
}
 
</templatedata>
 
</templatedata>
−
=== Basic usage ===
 
−
<pre>{{efn native lang|tw|name=
 
−
  |t=
 
−
  |p=
 
−
  |m=
 
−
  |s=}}</pre>
 
−
Insert a notes section if not already present.
 
−
<pre>
 
  
 +
== See also ==
 +
* {{tl|efn-ur}}
 +
* {{tl|notelist-ur}}
  
−
== Notes ==
+
<includeonly>{{sandbox other||
−
=== Words in native languages ===
+
<!-- Categories below this line, please; interwikis at Wikidata -->
−
{{notelist-ur}}
+
[[Category:Chinese multilingual support templates]]
−
</pre>
+
[[Category:Explanatory footnote templates]]
−
 
+
}}</includeonly>
−
== Example ==
 
−
{{demo
 
−
|br =
 
−
|demo_kill_categories =
 
−
|<nowiki>Taiwan{{efn native lang|tw|name=word1
 
−
  |t=臺灣
 
−
  |p=Táiwān
 
−
  |m=Tâi-uân
 
−
  |s=Tǒi-vǎn
 
−
  |h=Toi-van
 
−
  |a=Taywan
 
−
  |pw=Taiwan
 
−
}}
 
−
=== Notes ===
 
−
==== Words in native languages ====
 
−
{{notelist-ur}}</nowiki>
 
−
}}
 

Latest revision as of 00:04, 5 March 2020

Usage

Basic usage

{{efn native lang|tw|name=
  |t=
  |p=
  |m=
  |s=}}

Insert a notes section if not already present.


== Notes ==
=== Words in native languages ===
{{notelist-ur}}

Example

Taiwan{{efn native lang|tw|name=word1
  |t=臺灣
  |p=Táiwān
  |m=Tâi-uân
  |s=Tǒi-vǎn
  |h=Toi-van
  |a=Taywan
  |pw=Taiwan
}}
=== Notes ===
==== Words in native languages ====
{{notelist-ur}}

Taiwan[upper-roman 1]

Notes

Words in native languages

Template:Notelist-ur

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Efn native lang

This template creates a explanatory footnote for a word in the native languages of a country, currently only Taiwan. For consistency, use official romanisation schemes whenever appropriate.

Template parameters

ParameterDescriptionTypeStatus
Country1

ISO 3166-1 country code

Example
tw
Stringrequired
Namename

Name of footnote, for repeated use

Example
word1
Stringoptional
Traditional Chineset

Chinese script

Stringoptional
Pinyinp

Mandarin Pinyin romanisation

Stringoptional
Minnanm

Hokkien romanisation

Stringoptional
Sixian Hakkas

Sixian Hakka romanisation

Stringoptional
Hailu Hakkah

Hailu Hakka romanisation

Stringoptional
Amisa

Amis language

Stringoptional
Paiwanpw

Paiwan language

Stringoptional
Matsu dialectma

Matsu dialect romanisation

Stringoptional

See also



Cite error: <ref> tags exist for a group named "upper-roman", but no corresponding <references group="upper-roman"/> tag was found, or a closing </ref> is missing