Template:Lang-fa/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

Usage

settings
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}}
  • {{lang|fa}}, for untransliterated Persian-language strings without preceding "Persian:" link.
  • {{script|Arab|...}} for Arabic script without specifying a language.
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Lang-fa in articles based on its TemplateData.

TemplateData for Lang-fa

<templatedata> { "params": { "1": { "label": "Text", "description": "The foreign text to display.", "type": "string", "required": true }, "links": { "label": "Display link", "description": "Set to no to disable the link to the article's language.", "type": "boolean" }, "lit": { "label": "Literal translation" }, "translit": { "label": "Transliteration", "description": "A Latin alphabet respelling of Persian text", "type": "string" } }, "description": "Insert Persian text. Indicates to readers the original form of a term or phrase in Persian." } </templatedata>