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
Created page with '{{documentation subpage}} Parameters: *1=wikicode for the language and name of the CSS formating class (mandatory) *2=description text (optional, default is empty...'
 
m Undo revision 1038811040 by 2600:1016:B104:A300:B421:2DFF:FE8D:B5C4
 
(19 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Lua|Module:Description}}
{{TemplateBox
|name=Description
|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.


Parameters:
|1=text_lang
*1=wikicode for the language and name of the CSS formating class (mandatory)
|1aliases=1
*2=description text (optional, default is empty)
|1label=language
*3=title for tooltip (optional, default is empty)
|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>)
**name=alternative parameter name for parameter 3
|1def=
*4=standard code for lang tag in HTML (optional, default is same as parameter 1)
|1stat=required
*5=extension text shown after the language name before colon (optional, default is empty)
 
*inline=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)
|2=text
|2aliases=2
|2label=text
|2d=description text to display
|2def=
|2stat=required
 
|3=hover
|3aliases=3/name
|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=
|3stat=optional-
 
|4=lang_name
|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=
|4stat=optional-
 
|5=ext
|5aliases=5
|5label=extension text
|5d=extension text shown after the language name before colon (optional, default is empty)
|5def=(empty)
|5stat=optional-
 
|6=inline
|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=
|6stat=optional-
 
|namespace=
|usergroup=
|placement=
|usage-notes=
|type=
|setscats=
* [[:Category:Language templates with no text displayed]] (if parameter #2 is empty)
|lines=
|shorthand=
|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.