Template:Infobox name module: Difference between revisions
Betty Logan (talk | contribs) mNo edit summary |
Completed merger. Removed support for East Asian languages with multiple scripts as discussed at WP:TFDH Special:PermanentLink/1138169755#Meta. Doc page updated with replacement templates |
||
(34 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox |
|||
{{ infobox |
|||
| child = yes |
| child = yes |
||
| decat = yes <!-- remove from template:infobox tracking categories --> |
| decat = yes <!-- remove from template:infobox tracking categories --> |
||
| title = |
| title = |
||
| label1 = {{#if: {{{language|{{{2|}}}}}} <!-- If there is more than one parameter --> |
|||
| label1 = Original title |
|||
| {{#if: {{{nolink|}}} <!-- If the language is not to be wikilinked --> |
|||
| {{#if:{{#invoke:lang|is_ietf_tag|{{{language|{{{1|}}}}}}}} | <!-- Check if language has been entered as an iso code --> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
| {{#if:{{#invoke:lang|is_ietf_tag|{{{language|{{{1|}}}}}}}} | <!-- If the language is to be wikilinked --> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
| Original title <!-- Default field name if no language is entered --> |
|||
}} |
|||
| data1 = {{#if: {{{title|{{{2|{{{original|{{{1|}}}}}}}}}}}} | ''{{{title|{{{2|{{{original|{{{1|}}}}}}}}}}}}'' }} <!-- Order of parameter preference depending on data entry --> |
|||
| label2 |
| label2 = Literally |
||
| |
| data2 = {{#if: {{{translation|}}}|''{{{translation|}}}''}} |
||
| label3 = [[Simplified Chinese characters|Simplified]] |
|||
| data3 = {{#if:{{{simplified|{{{jianti|}}}}}}|<big>{{{simplified|{{{jianti|}}}}}}</big>}} |
|||
| label4 = [[Chinese characters|Chinese]] |
|||
| data4 = {{#if:{{{chinese|{{{Chinese|}}}}}}|<big>{{{chinese|{{{Chinese|}}}}}}</big>}} |
|||
| label5 = [[Pinyin|Mandarin]] |
|||
| data5 = {{{pinyin|}}} |
|||
| label6 = [[Jyutping|Cantonese]] |
|||
| data6 = {{{jyutping|}}} |
|||
| label7 = [[Pe̍h-ōe-jī|Hokkien]] |
|||
| data7 = {{{poj|}}} |
|||
| label8 = {{{lbl8|}}}{{{sep|}}} |
|||
| data8 = {{{data8|}}} |
|||
⚫ | |||
| label9 = [[Japanese language|Japanese]] |
|||
{{documentation}} |
|||
| data9 = {{#if: {{{kanji|}}}|<span class="t_nihongo_kanji" lang="ja">{{{kanji|}}}</span>}}{{#if: {{{kana|}}}|<span class="t_nihongo_kanji" lang="ja">{{{kana|}}}</span>}} |
|||
| label10 = [[Hepburn romanization|Hepburn]] |
|||
| data10 = {{#if: {{{romaji|}}}|''{{{romaji|}}}''}} |
|||
| label11 = {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk=[[Hangul|Chosŏn'gŭl]]|#default=[[Hangul]]}} |
|||
| data11 = {{#if: {{{hangul|}}}|{{lang|ko-Hang|{{{hangul}}} }} }} |
|||
| label12 = {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk=[[Hanja|Hancha]]|#default=[[Hanja]]}} |
|||
| data12 = {{#if: {{{hanja|}}}|{{#ifeq: {{{hanja|}}}|!|<noinclude>!</noinclude>|{{lang|ko-Hani|{{{hanja}}} }} }} }} |
|||
| label13 = {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk=[[McCune–Reischauer]]|#default=[[Revised Romanization of Korean|Revised Romanization]]}} |
|||
| data13 = {{#if: {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk={{{mr|}}}|#default={{{rr|}}} }}|''{{transl|ko|{{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk={{{mr}}}|#default={{{rr}}} }} }}''}} |
|||
| label14 = {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk=[[Revised Romanization of Korean|Revised Romanization]]|#default=[[McCune–Reischauer]]}} |
|||
| data14 = {{#if: {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk={{{rr|}}}|#default={{{mr|}}} }}|''{{transl|ko|{{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk={{{rr}}}|#default={{{mr}}} }} }}''}} |
|||
| label15 = [[Vietnamese language|Vietnamese]] |
|||
| data15 = {{#if:{{{chuquocngu|}}}|{{lang|vi|''{{{chuquocngu|}}}''}}}} |
|||
| label16 = [[Hán-Nôm]] |
|||
| data16 = {{#if:{{{han-nom|}}}|{{vi-nom|{{{han-nom|}}}}}}} |
|||
| label17 = Literally |
|||
| data17 = {{#if: {{{translation|}}}|''{{{translation|}}}''}} |
|||
| label18 = {{#if: {{{nolink|}}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
| {{#ifexist: Template:ISO 639 name {{{language|{{{1|}}}}}} | |
|||
[[{{Language|{{{language|{{{1|}}}}}}}} language|{{Language|{{{language|{{{1|}}}}}}}}]] | |
|||
⚫ | |||
⚫ | |||
⚫ | |||
| data18 = {{italics|{{{title|{{{2|}}}}}}}} |
|||
⚫ | |||
<!-- Add cats and interwikis to the /doc subpage --> |
<!-- Add cats and interwikis to the /doc subpage --> |
Latest revision as of 17:30, 12 February 2023
This template is used on approximately 8,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. |
{{Infobox name module}} is used to add a film's original native title (along with the romanized equivalent if necessary) to the infobox on film articles in cases where the WP:COMMONNAME title of the film is different. It is NOT for adding general purpose translations to the infobox, even in cases where the film was a co-production between several different countries. Any title besides the original native copyrighted title should be removed. In cases where there is a dispute over which title is the native title, discuss the matter at the article talk page and arrive at a consensus before adding the title to the infobox.
Usage
The template takes the various film titles and is assigned to the |native_name=
parameter at {{Infobox film}}. The native language and original title of a film can be assigned to the language
and title
parameters.
This template is not compatible with use in the |native_name=
parameter in infoboxes that wrap that parameter in <span>...</span>
or <div>...</div>
tags; its use in such situations causes misnested span or div tags. In those infoboxes, put this template in |module=
or |embedded=
, if present.
This template used to support parameters for languages with multiple writing systems. They have been removed following a successful merger proposal and are replaced with other templates which have more options, which are listed in the #Former parameters section. The parameters supported by this template are |1=
, |2=
, |language=
, |nolink=
, |title=
, |original=
and |translation=
.
{{Infobox name module
| language =
| title =
| nolink =
| translation =
}}
Parameters
All parameters are optional.
The first two parameters do not need to be named. For example, {{Infobox name module|Japanese|千と千尋の神隠し}}
and {{Infobox name module|ja|千と千尋の神隠し}}
will render the same as {{Infobox name module|language=Japanese|title=千と千尋の神隠し}}
. An example of this type of usage can be viewed at Godless (film) where the Bulgarian title is rendered in the infobox.
Parameter | Explanation |
---|---|
language | The name of the language either in full (e.g. English) or using an {{ISO 639 name}} (e.g. "en"). If the language parameter is not set then the template will automatically set the name of the field to "Original title". |
title | The film's title as represented in the language |
original | The same parameter as "title". They can be used interchangeably. "Title" was introduced as a more intuitive parameter name when the template was updated, but "original" is retained to ensure older versions of the template continue to work correctly. |
nolink | Set to "1" to deactivate the automatic linking of the language |
translation | Translation of native name |
Examples
The Year of the Discovery | |
---|---|
Spanish | El año del descubrimiento |
Directed by | Luis López Carrasco |
Written by | Raúl Liarte Luis López Carrasco |
Produced by | Pedro Palacios Daniel M. Caneiro Ricard Sales Marta Lacima Luis Ferrón Luis López Carrasco Javier Fernández |
Cinematography | Sara Gallego Grau |
Edited by | Sergio Jiménez Barranquero |
Release dates |
|
Running time | 200 minutes |
Countries | Spain Switzerland |
Language | Spanish |
Add this code:
| native_name = {{Infobox name module
| language = Spanish
| title = El año del descubrimiento
}}
or
| native_name = {{Infobox name module|es|El año del descubrimiento}}
To the infobox:
{{Infobox film
| name = The Year of the Discovery
| native_name = {{Infobox name module
| language = Spanish
| title = El año del descubrimiento
}}
| director = Luis López Carrasco
| producer = Pedro Palacios<br />Daniel M. Caneiro<br />Ricard Sales<br />Marta Lacima<br />Luis Ferrón<br />Luis López Carrasco<br />Javier Fernández
| writer = Raúl Liarte<br />Luis López Carrasco
| starring =
| music =
| cinematography = Sara Gallego Grau
| editing = Sergio Jiménez Barranquero
| studio =
| distributor =
| released = {{Film date|df=y|2020|01|25|[[International Film Festival Rotterdam|IFFR]]|2020|11|13|Spain}}
| runtime = 200 minutes
| country = Spain<br />Switzerland
| language = Spanish
| budget =
| gross =
}}
Former parameters
This template formely used to support parameters for languages with multiple writing systems. The usage of these parameters is deprecated and is slated for removal soon. They are replaced from other templates which give more options for customization in addition to what this template used to support.
Chinese
- Replaced by {{Infobox Chinese}} or {{Infobox Chinese/Chinese}}
Parameter | Explanation |
---|---|
traditional | The film's name in Traditional Chinese characters as used in Taiwan, Hong Kong, and Macau |
simplified | The film's name in Simplified Chinese characters as used in China, Malaysia, and Singapore |
chinese | The film's name in Chinese characters, use only when Simplified Chinese and Traditional Chinese are identical |
pinyin | The film's Mandarin Chinese name in the Pinyin romanization system |
jyutping | The film's Cantonese name in the Jyutping romanization system |
poj | The film's Taiwanese Hokkien name in the Pe̍h-ōe-jī romanization system |
lbl8 | Chinese dialect spoken in film if it's not Mandarin, Cantonese or Hokkien, e.g. Shanghainese, Suzhou dialect, Hakka, Hokkien, Taishanese |
data8 | The film's romanized name in the dialect of lbl8 |
translation | The film's unofficially translated title (if very different from the official English title) |
Japanese
- Replaced by {{Infobox Japanese}}
Parameter | Explanation |
---|---|
kanji | Film's name as it appears in Japanese language sources, whether or not it includes Japanese kanji, hiragana, katakana, or a mix of the three with Latin text. |
romaji | The Hepburn romanization of the Japanese language title. |
translation | The film's unofficially translated title (if very different from the official English title) |
Korean
- Replaced by {{Infobox Korean}} or {{Infobox Chinese/Korean}}
Parameter | Explanation |
---|---|
hangul
|
The Korean title of the film in hangul. Leaving this field empty will add the page to Category:Articles needing Korean script or text. |
hanja
|
The Korean title of the film in hanja. If hanja is required for the article but unknown, use ! to add the page to Category:Wikipedia articles needing hanja.
|
rr
|
The Revised Romanization of the Korean title. Do not use italics, as the infobox will automatically italicize any text in this parameter. Leaving this field empty will add the page to Category:Wikipedia articles needing romanized Korean. |
mr
|
The McCune–Reischauer of the Korean title. Do not use italics, as the infobox will automatically italicize any text in this parameter. Leaving this field empty will add the page to Category:Wikipedia articles needing romanized Korean. |
context
|
Context specification. Use context = north for North Korean films only.
|
translation
|
The film's unofficially translated title (if very different from the official English title) |
Vietnamese
- Replaced by {{Infobox Chinese/Vietnamese}}
Parameter | Explanation |
---|---|
chuquocngu
|
The Vietnamese alphabet of the Vietnamese language title. |
han-nom
|
The Hán-Nôm of the Vietnamese language title. |
translation
|
The film's unofficially translated title (if very different from the official English title) |
Templatedata
TemplateData for Infobox name module
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description | Unknown | optional |
2 | 2 | no description | Unknown | optional |
language | language | no description | Unknown | optional |
nolink | nolink | no description | Unknown | optional |
title | title original | no description | Unknown | optional |
translation | translation | no description | Unknown | optional |