Template:Tdoc/doc

From Wikimedia Foundation Governance Wiki
Revision as of 03:44, 23 March 2021 by Sonne7 (talk | contribs) ((Tdoc) Parameter 'i18n-method' (5d) extended (the added possible values are 'custommediawiki-msg' and 'ext.translate') and correction of the table layout for it (tricky changes to remove all inside newline breaks because table layout was corrupted and 'empty' was displayed on wrong place) + Changes in some 'LangSwitch' case parts (primarily the 'de' and although some 'en' as well as one 'bar') + Replace at page top the first switch statement begin ('{{#switch:{{uselang}}' -> '{{LangSwitch'), tc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The template provides a uniform way to provide information about a template.

Parameters

Parameter name Description Default value
1 parameter name (similarly 2, 3, .., up to 20) empty
1d description of the parameter (similarly 2d, 3d, .., up to 20d) empty
1def default value of the parameter (similarly 2def, 3def, .., up to 20def) empty
name name of the template (needed e.g. for viewing the documentation on another page than the template page, in particular for viewing the documentation page separately) empty
i18n-method method the localization is achieved by; possible values:
autotranslate
      using {{autotranslate}} or applying a similar method
switch
      branching to translations in the template itself
mediawiki-msg
      using MediaWiki namespace messages from translatewiki.net
custommediawiki-msg
      using local MediaWiki namespace messages
ext.translate
      using the Translate extension
-
      no localization for the template itself
empty
i18n-desc additional info about the localization empty
i18n-mediawiki-msg When using "mediawiki-msg" as method, optionally put the name of the message here. empty
seealso relevant links empty
relieson templates directly or indirectly called by the template empty

Localization

This template calls Template:Tdoc/en. The following language versions are available: Template:Lang links Each calls Template:Tdoc/layout.

See also

commons:Template:TemplateBox