Vorlage:Infobox name module/Doku: Unterschied zwischen den Versionen

K
Xineohp1506 verschob die Seite Vorlage:Infobox name module/doc nach Vorlage:Infobox name module/Doku, ohne dabei eine Weiterleitung anzulegen
(separate out and mark parameters that are about to be removed per TFD, point to their replacements)
K (Xineohp1506 verschob die Seite Vorlage:Infobox name module/doc nach Vorlage:Infobox name module/Doku, ohne dabei eine Weiterleitung anzulegen)
 
(6 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 5: Zeile 5:


== Usage ==
== Usage ==
The template takes the various film titles and is assigned to the {{para|native_name}} parameter at {{tl|Infobox film}}. The native language and original title of a film can be assigned to the <code>language</code> and <code>title</code> parameters, or by using the dedicated parameters for Chinese, Korean, Japanese and Vietnamese films.
The template takes the various film titles and is assigned to the {{para|native_name}} parameter at {{tl|Infobox film}}. The native language and original title of a film can be assigned to the <code>language</code> and <code>title</code> parameters.


This template is not compatible with use in the {{para|native_name}} parameter in infoboxes that wrap that parameter in {{tag|span}} or {{tag|div}} tags; its use in such situations causes misnested span or div tags. In those infoboxes, put this template in {{para|module}} or {{para|embedded}}, if present.
This template is not compatible with use in the {{para|native_name}} parameter in infoboxes that wrap that parameter in {{tag|span}} or {{tag|div}} tags; its use in such situations causes misnested span or div tags. In those infoboxes, put this template in {{para|module}} or {{para|embedded}}, if present.


[[:Category:Infobox name module using deprecated parameters]] tracks usage of this template with deprecated parameters. The usage of this template with any parameters other than {{para|1}}, {{para|2}}, {{para|language}}, {{para|nolink}}, {{para|title}} and {{para|original}} is deprecated.
This template used to support parameters for languages with multiple writing systems. They have been removed following a [[Wikipedia:Templates for discussion/Log/2017 April 7#Template:Infobox name module|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 {{para|1}}, {{para|2}}, {{para|language}}, {{para|nolink}}, {{para|title}}, {{para|original}} and {{para|translation}}.


<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{Infobox name module
{{Infobox name module
| language =  
| language   =  
| title   =
| title       =
| nolink   =
| nolink     =
| translation =  
}}</pre>
}}</pre>


Zeile 21: Zeile 22:
All parameters are optional.
All parameters are optional.


The first two parameters do not need to be named. For example, <nowiki>{{Infobox name module|Japanese|千と千尋の神隠し}} will render the same as {{Infobox name module|language=Japanese|title=千と千尋の神隠し}}</nowiki>. An example of this type of usage can be viewed at [https://en.wikipedia.org/w/index.php?title=Godless_(film)&diff=745870294&oldid=745865104 Godless (film)] where the Bulgarian title is rendered in the infobox.
The first two parameters do not need to be named. For example, <code><nowiki>{{Infobox name module|Japanese|千と千尋の神隠し}}</nowiki></code> and <code><nowiki>{{Infobox name module|ja|千と千尋の神隠し}}</nowiki></code> will render the same as <code><nowiki>{{Infobox name module|language=Japanese|title=千と千尋の神隠し}}</nowiki></code>. An example of this type of usage can be viewed at [https://en.wikipedia.org/w/index.php?title=Godless_(film)&diff=745870294&oldid=745865104 Godless (film)] where the Bulgarian title is rendered in the infobox.
{| class="wikitable" style="width:100%;"
{| class="wikitable" style="width:100%;"
! style="width:5em;" | Parameter
! style="width:5em;" | Parameter
! Explanation
! Explanation
|-
|-
| language       || The name of the language either in full (e.g. English) or using an {{tl|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".
| language   || The name of the language either in full (e.g. English) or using an {{tl|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
| 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.
| 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
|-
|-
| nolink        || Set to "1" to deactivate the automatic linking of the language
|}
|}


Zeile 65: Zeile 69:
| title = El año del descubrimiento
| title = El año del descubrimiento
}}
}}
</pre>
or
<pre style="overflow:auto">
| native_name = {{Infobox name module|es|El año del descubrimiento}}
</pre>
</pre>


Zeile 98: Zeile 108:


===Chinese===
===Chinese===
* Replaced by {{tl|Infobox Chinese/Chinese}}
* Replaced by {{tl|Infobox Chinese}} or {{tl|Infobox Chinese/Chinese}}
{| class="wikitable" style="width:100%;"
{| class="wikitable" style="width:100%;"
! style="width:5em;" | Parameter
! style="width:5em;" | Parameter
Zeile 123: Zeile 133:


===Japanese===
===Japanese===
* Replaced by {{tl|Infobox Chinese/Japanese}}
* Replaced by {{tl|Infobox Japanese}}
{| class="wikitable" style="width:100%;"
{| class="wikitable" style="width:100%;"
! style="width:5em;" | Parameter
! style="width:5em;" | Parameter
Zeile 136: Zeile 146:


===Korean===
===Korean===
* Replaced by {{tl|Infobox Chinese/Korean}}
* Replaced by {{tl|Infobox Korean}} or {{tl|Infobox Chinese/Korean}}
{| class="wikitable" style="width:100%;"
{| class="wikitable" style="width:100%;"
! style="width:5em;" | Parameter
! style="width:5em;" | Parameter