Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Description/doc: Difference between revisions

Template page
No edit summary
m Undo revision 1038811040 by 2600:1016:B104:A300:B421:2DFF:FE8D:B5C4
 
(16 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Lua|Module:Description}}
{{TemplateBox
{{TemplateBox
|1=1
|name=Description
|1d=wikicode for the language and name of the CSS formating class (mandatory)
|desc=Adds language name, in native language (autonym), and colon in front of the text in that language. Also adds machine-readable tags identifying the text as being in that language.
 
|1=text_lang
|1aliases=1
|1label=language
|1d=Wikicode for the language and name of the CSS formatting class. In majority of the cases the language code is supported by the wikimedia software and will be used to look up the the names of the language in that language (<code><nowiki>lang_name</nowiki></code>) and in the users language (<code><nowiki>hover</nowiki></code>)
|1def=
|1def=
|1stat=required
|1stat=required


|2=2
|2=text
|2d=description text
|2aliases=2
|2label=text
|2d=description text to display
|2def=
|2def=
|2stat=required
|2stat=required


|3=3
|3=hover
|3d=title for tooltip (optional, default is empty)
|3aliases=3/name
*name=alternative parameter name for parameter 3
|3label=hover text
|3d=Name of the language in English used as text for tooltip aka hover text or mouse-over text. This parameter is used when language code in the parameter 1 is not supported by wikimedia software, other wise name of the language in users language will be supplied.
|3def=
|3def=
|3stat=optional
|3stat=optional-


|4=4
|4=lang_name
|4d=standard code for lang tag in HTML (optional, default is same as parameter 1)
|4label=language name
|4d=Name of the language in that language. This parameter is mostly needed if language code in the parameter 1 is not supported by wikimedia software, or if the language name in front of the text is wrong otherwise.
|4def=
|4def=
|4stat=optional
|4stat=optional-


|5=5
|5=ext
|5aliases=5
|5label=extension text
|5d=extension text shown after the language name before colon (optional, default is empty)
|5d=extension text shown after the language name before colon (optional, default is empty)
|5def=
|5def=(empty)
|5stat=optional
|5stat=optional-


|6=inline
|6=inline
|6d=optional, default is empty string. When set to any value different from an empty string, forces the template to be displayed inline, so that it does not break the current paragraph (i.e. that makes possible to put several descriptions side by side on a single line)
|6label=inline
|6d=optional boolean, false by default. When set to "true" (or "1", "yes", "on") , forces the template to be displayed inline, so that it does not break the current paragraph (i.e. that makes possible to put several descriptions side by side on a single line)
|6def=
|6def=
|6stat=optional
|6stat=optional-


|name=Description
|desc=
|namespace=
|namespace=
|usergroup=
|usergroup=
Line 38: Line 49:
|usage-notes=
|usage-notes=
|type=
|type=
|example=
|setscats=
|i18n-method=
* [[:Category:Language templates with no text displayed]] (if parameter #2 is empty)
|i18n-desc=
|seealso=*{{tl|Description missing}}
|setscats=[[:Category:Language templates with no text displayed]] (if parameter #2 is empty)
|lines=
|lines=
|shorthand=
|shorthand=
|relieson=
|relieson=
}}
|example=
 
|seealso=
* {{Tl|Description missing}}
* {{Tl|Multilingual link}}
|i18n-method=TNT
|i18n-data-file=I18n/DescriptionError.tab
|i18n-desc=Add translations to [[Data:I18n/DescriptionError.tab]]
}}<includeonly>


<includeonly>
[[Category:Internationalization templates]]
[[Category:Internationalization templates]]
</includeonly>
</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.