Template:Autotranslate/doc: Difference between revisions
Template page
More actions
Enable generating TemplateData from {{TemplateBox}} |
Update documentation; →top: Add {{Shared Template Warning|origin=Commons}} |
||
| Line 1: | Line 1: | ||
{{Shared Template Warning|Template:Autotranslate|origin=Commons}} | |||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | |||
{{Lua|Module:Autotranslate}} | {{Lua|Module:Autotranslate}} | ||
{{TemplateBox | {{TemplateBox | ||
| 2 = ... | |||
| 2d-en = Any additional parameter passed to {{tl|Autotranslate}} will be passed to {{tl|Autotranslate}}'s subtemplates. Parameter names are case independent and the subtemplates '''will only ''see lower case'' names'''. | |||
| 2d-td-en = <nowiki>Any additional parameter passed to {{Autotranslate}} will be passed to {{Autotranslate}}'s subtemplates. Parameter names are case independent and the subtemplates **will only *see lower case* names**.</nowiki> | |||
| 2stat = optional- | |||
| 1 | | 1 = base | ||
| 1label-en = Translations Page | | 1label-en = Translations Page | ||
| 1d-en = Name of the template's translations page, like "Template:Information". Usually can use <code><nowiki>base={{subst:PAGENAME}}</nowiki></code>. | | 1d-en = Name of the template's translations page, like "Template:Information". Usually can use <code><nowiki>base={{subst:PAGENAME}}</nowiki></code>. | ||
| Line 16: | Line 16: | ||
| 1stat = required | | 1stat = required | ||
| 3 | | 3 = lang | ||
| 3label-en = Language | | 3label-en = Language | ||
| 3d-en = display language | | 3d-en = display language | ||
| Line 24: | Line 24: | ||
| 3stat = optional- | | 3stat = optional- | ||
| name = Autotranslate | |||
| desc-en = This template is used as a part of the larger mechanism to show a template content in the user's interface language. It allows you to set up set of language subtemplates and call proper subtemplate based on users chosen language. All parameters passed to Autotranslate will be passed to the subtemplates. See [[Help:Autotranslate]] for help on the whole process. In most cases to use this template, you can use the following code snippet: | |||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
{{Autotranslate|base={{subst:PAGENAME}}}} | {{Autotranslate|base={{subst:PAGENAME}}/i18n}} | ||
</pre> | </pre> | ||
| desc-td-en = This template is used as a part of the larger mechanism to show a template content in the user's interface language. It allows you to set up set of language subtemplates and call proper subtemplate based on users chosen language. All parameters passed to Autotranslate will be passed to the subtemplates. See “Help:Autotranslate” for help on the whole process. | |||
| namespace = template | |||
| usergroup = all | |||
| placement = top | |||
| i18n-method = - | |||
| i18n-desc = Used by {{C|templates using Autotranslate for internationalisation}} and {{C|templates using the Translate extension for internationalisation}}. | |||
| seealso = | |||
* {{tl|LangSwitch}} for all-translations-on-one-page template i18n mechanism template. | |||
| setscats = [[:Category:Autotranslated templates]] | |||
| relieson = [[Module:Autotranslate]] | |||
| print = multi | |||
| useTemplateData = 1 | | useTemplateData = 1 | ||
}} | }} | ||
| Line 95: | Line 93: | ||
==See also== | ==See also== | ||
{{autotranslate|base=I18n templates}} | {{autotranslate|base=I18n templates}} | ||
<includeonly>{{Sandbox other|| | |||
< | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:Internationalization templates]] | [[Category:Internationalization templates]] | ||
[[Category:Autotranslated templates| *]] | [[Category:Autotranslated templates| *]] | ||
[[Category:Lua-based templates]] | [[Category:Lua-based templates]] | ||
</includeonly> | }}</includeonly> | ||