Difference between revisions of "Template:Lang-fa/doc"
imported>Andy M. Wang (rm incorrect statement at top) |
imported>Trappist the monk m (sortkey;) |
||
| (5 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| − | {{high-use| | + | {{COinS safe|n}} |
| + | {{lua|Module:lang}} | ||
| + | {{high-use|80093}} | ||
{{for|[[Middle Persian]] text (Pahlavi language)|Template:lang-pal}} | {{for|[[Middle Persian]] text (Pahlavi language)|Template:lang-pal}} | ||
{{for|[[Old Persian language|Old Persian]]|Template:lang-peo}} | {{for|[[Old Persian language|Old Persian]]|Template:lang-peo}} | ||
| Line 7: | Line 9: | ||
== Usage == | == Usage == | ||
| + | {{#invoke:Lang/documentor tool|lang_xx_settings|template={{ROOTPAGENAME}}}} | ||
Template {{tlf|'''lang-fa'''|nolink=yes}} indicates to readers the original form of a term or phrase in [[Persian language|Persian]]. The term or phrase is the only mandatory parameter. The text is formatted according to recommendations in [[Wikipedia:Manual of Style/Text formatting#Foreign terms]] (italics for Latin-script languages, regular for others). | Template {{tlf|'''lang-fa'''|nolink=yes}} indicates to readers the original form of a term or phrase in [[Persian language|Persian]]. The term or phrase is the only mandatory parameter. The text is formatted according to recommendations in [[Wikipedia:Manual of Style/Text formatting#Foreign terms]] (italics for Latin-script languages, regular for others). | ||
| Line 12: | Line 15: | ||
The parameter {{Para|lit}} enables a literal translation to be given. | The parameter {{Para|lit}} enables a literal translation to be given. | ||
| + | |||
| + | == Parameters == | ||
| + | {{#lst:Template:Lang-x/doc/parameters|lang_xx_parameters}} | ||
==Syntax== | ==Syntax== | ||
| Line 18: | Line 24: | ||
::'''|{{var|<nowiki>links=value</nowiki>}}''' – valid values: '''yes''' to have the language name linked (default) and '''no''' to prevent the language name from being linked. '' (optional)'' | ::'''|{{var|<nowiki>links=value</nowiki>}}''' – valid values: '''yes''' to have the language name linked (default) and '''no''' to prevent the language name from being linked. '' (optional)'' | ||
::'''|{{var|<nowiki>lit=string</nowiki>}}''' – valid strings are English phrases of Persian. ''(optional)'' | ::'''|{{var|<nowiki>lit=string</nowiki>}}''' – valid strings are English phrases of Persian. ''(optional)'' | ||
| − | ::'''|{{var|<nowiki>translit=string</nowiki>}}''' – valid strings are transliterations (with the [[Latin | + | ::'''|{{var|<nowiki>translit=string</nowiki>}}''' – valid strings are transliterations (with the [[Latin script]]) of Persian text. ''(optional)'' |
:'''<nowiki>}}</nowiki>''' | :'''<nowiki>}}</nowiki>''' | ||
| Line 41: | Line 47: | ||
* {{tlp|rtl-lang|fa}}, for untransliterated Persian-language strings without preceding "[[Persian language|Persian]]:" link. | * {{tlp|rtl-lang|fa}}, for untransliterated Persian-language strings without preceding "[[Persian language|Persian]]:" link. | ||
* {{tlp|script|Arab|...}} for Arabic script without specifying a language. | * {{tlp|script|Arab|...}} for Arabic script without specifying a language. | ||
| − | |||
| − | |||
{{TemplateDataHeader}} | {{TemplateDataHeader}} | ||
| Line 72: | Line 76: | ||
</templatedata> | </templatedata> | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
| − | [[Category:Lang-x templates]] | + | [[Category:Lang-x templates|fa]] |
[[Category:Afro-Asiatic multilingual support templates|{{PAGENAME}}]] | [[Category:Afro-Asiatic multilingual support templates|{{PAGENAME}}]] | ||
[[Category:Indo-Iranian multilingual support templates|{{PAGENAME}}]] | [[Category:Indo-Iranian multilingual support templates|{{PAGENAME}}]] | ||
| − | </includeonly> | + | }}</includeonly> |
<noinclude>[[Category:Documentation shared content templates]]</noinclude> | <noinclude>[[Category:Documentation shared content templates]]</noinclude> | ||
Latest revision as of 00:18, 31 August 2020
| 40px | This is a documentation subpage for Template:Lang-fa. It contains usage information, categories and other content that is not part of the original template page. |
| Notice | This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
| 30px | This template uses Lua: |
| 40px | This template is used on approximately 82,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
Contents
Usage
| code | fa |
|---|---|
| rtl | yes |
| style: inherit | |
Template {{lang-fa}} indicates to readers the original form of a term or phrase in Persian. The term or phrase is the only mandatory parameter. The text is formatted according to recommendations in Wikipedia:Manual of Style/Text formatting#Foreign terms (italics for Latin-script languages, regular for others).
The parameter |links=no prevents the language name from being linked.
The parameter |lit= enables a literal translation to be given.
Parameters
{{#lst:Template:Lang-x/doc/parameters|lang_xx_parameters}}
Syntax
- {{lang-fa
- |Persian text – using Persian. (mandatory)
- |links=value – valid values: yes to have the language name linked (default) and no to prevent the language name from being linked. (optional)
- |lit=string – valid strings are English phrases of Persian. (optional)
- |translit=string – valid strings are transliterations (with the Latin script) of Persian text. (optional)
- }}
Examples
Code Result {{lang-fa|هزار افسان}} Persian: هزار افسان {{lang-fa|دهه فجر|lit=ten days of dawn}} Persian: دهه فجر, lit. 'ten days of dawn' {{lang-fa|Persian|transliteration|lit=literal|links=no}} Persian: Persian, lit. 'literal'
See also
- {{lang}}, and its opposite, {{Language with name/for}}
- {{rtl-lang|fa}}, for untransliterated Persian-language strings without preceding "Persian:" link.
- {{script|Arab|...}} for Arabic script without specifying a language.
TemplateData for Lang-fa
Insert Persian text. Indicates to readers the original form of a term or phrase in Persian.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | The foreign text to display. | String | required |
| Display link | links | Set to no to disable the link to the article's language. | Boolean | optional |
| Literal translation | lit | no description | Unknown | optional |
| Transliteration | translit | A Latin alphabet respelling of Persian text | String | optional |