Permanently protected template

Template:Lang-oc

From Wikipedia, the free encyclopedia
  (Redirected from Template:Lang-oci)
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]

Usage

settings
code oc

Template {{lang-oc}} indicates to readers the original form of a term or phrase in Occitan language. 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 template should generally be placed after the English translation of the foreign term or phrase.

The parameter |links=no prevents the language name from being linked.

The parameter |translit= enables a transliteration (of the original text with the Latin alphabet) to be given. The templates that have this param are listed here. (This parameter is not supported by lang-x templates for languages that are already written in Latin script.)

The parameter |lit= enables a literal translation (in English) to be given. It is being rolled out to these templates and so may be available for {{lang-oc}}.

Parameters

lang-xx supported parameters
parameter definition yields to alias
text non-English text {{{1}}}
translit Latin script transliteration of text {{{2}}}
translit-std standard used for the transliteration of translit; accepted values are: ISO, DIN, IAST, ALA, ALA-LC
translit-script transliteration standard's script identifier
translation literal English translation of text lit, {{{3}}}
link yes (default) links language name and static text associated with translit and translation; accepted values are: no, yes links
code IETF language tag for text; set by the template, overriding the template setting is discouraged
script IETF language script subtag; sometimes set by the template when the language of text uses more than one writing system; always four alpha characters; Latn forces italic rendering unless overridden by italic; overrides rtl italic
region IETF language region subtag
variant IETF language variant subtag
rtl yes indicates that the writing system used for text is right-to-left; accepted values are: no (default), yes script
italic yes (default) renders text in italic font; overrides script; accepted values are: no, yes
size specifies size of text rendering; use value suitable for use with the CSS font-size property
nocat yes inhibits automatic categorization; accepted values are: no (default), yes

Examples

The following examples show translations from German.

Edit

  • Weimar is located in the federal state of Thuringia ({{lang-de|Thüringen}}).
  • The Seafarers of Catan ({{lang-de|Die Seefahrer von Catan}}) is an expansion of the board game The Settlers of Catan.
  • Albert the Bear ({{lang-de|Albrecht der Bär|links=no}})
  • All Quiet on the Western Front ({{lang-de|Im Westen nichts Neues|lit=In the West Nothing New}}) is a novel by Erich Maria Remarque.

Resulting text

  • Weimar is located in the federal state of Thuringia (German: Thüringen).
  • The Seafarers of Catan (German: Die Seefahrer von Catan) is an expansion of the board game The Settlers of Catan.
  • Albert the Bear (German: Albrecht der Bär)
  • All Quiet on the Western Front (German: Im Westen nichts Neues, lit. 'In the West Nothing New') is a novel by Erich Maria Remarque.

Supporting templates

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Lang-oc

Indicates to readers the original form of a term or phrase in a foreign language.

Template parameters

Parameter Description Type Status
Text 1

The foreign text to display.

Default
empty
Example
empty
Auto value
empty
String required
Display link links

Set to no to disable the link to the article's language.

Default
empty
Example
empty
Auto value
empty
Boolean optional
Literal translation lit

The literal translation of the foreign text

Default
empty
Example
empty
Auto value
empty
Unknown optional
Transliteration translit

The transliteration of the foreign text, for languages that do not use the Latin alphabet. This field is ignored for languages that do use the Latin alphabet

Default
empty
Example
empty
Auto value
empty
String optional

See also
https://en.wikipedia.org/wiki/Template:Lang-oci
en.wikipedia.org
crawl=CC-MAIN-2017-51
55433
application/http; msgtype=response
sha1:DZPG3QYMMSMLQH6DD34LPFZBVW4PHAAW
<urn:uuid:afd00012-5839-410d-837d-5396c8b81395>
2017-12-15T04:43:12Z
208.80.154.224
text/html
sha1:SS5PIJ24B4AXHDTEF4LEWMEA3TQD7PUA
<urn:uuid:c05f4aa9-0a4d-43ae-8e83-f4858cdc1a07>
https://en.wikipedia.org/wiki/Template:Lang-oci
length
response
<urn:uuid:86462d22-2bc7-488a-98da-7ca2f8052981>
robots: classic
hostname: ip-10-150-141-7.ec2.internal
software: Nutch 1.6 (CC)
isPartOf: CC-MAIN-2017-51
operator: Common Crawl Admin
description: Wide crawl of the web for December 2017
publisher: Common Crawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf