"साचा:Autotranslate/doc" च्या विविध आवृत्यांमधील फरक
Content deleted Content added
category from template |
add templateBox |
||
ओळ १:
{{TemplateBox
|1 = 1
|1d = for each ''unnamed'' parameter to be passed add <code><nowiki>1={{{1|}}}</nowiki></code>, etc. For example for template with 9 unnamed parameters you would use the snipped shown above.
|1d-td =
|1type =
|1def =
|1stat =optional
|2 = base
|2d = name of the template, where it is being added, usually can use <code><nowiki>base={{subst:PAGENAME}}</nowiki></code>.
|2d-td =
|2type = string
|2def =
|2stat = required
|name = Autotranslate
|desc = This template is used as a part of the larger mechanism to show a template content in the user's interface language. See [[Help:Autotranslate]] for help on the whole process. It applies only to subset of templates that use unnamed parameters ("1", "2", etc.). In most cases to use this template, you can use the following code snippet:
<pre style="overflow:auto">▼
{{Autotranslate|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|4={{{4|}}}|5={{{5|}}}|6={{{6|}}}|7={{{7|}}}|8={{{8|}}}|9={{{9|}}}|base={{subst:PAGENAME}}}}▼
</pre>
|namespace = template
|usergroup =
|placement = top
|usage-notes =
|type =
|example =
|example-value =
|i18n-method = -
|i18n-desc =
|i18n-mediawiki-msg =
|i18n-subpage =
|seealso = {{tl|fallback}} for similar mechanism for templates that use ''named'' parameters
|setscats = [[:Category:Autotranslated templates]]
|print = one
|shorthand =
|relieson = [[module:fallback]] and [[module:fallbacklist]]
|mustbesubst =
}}
== How to convert a template ==
Line ४४ ⟶ ७८:
<nowiki>{{Autotranslate|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|</nowiki>base=<var>template name</var>}}
<includeonly>
[[Category:Internationalization templates]]
▲<pre style="overflow:auto">
[[Category:Autotranslated templates| *]]
▲{{Autotranslate|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|4={{{4|}}}|5={{{5|}}}|6={{{6|}}}|7={{{7|}}}|8={{{8|}}}|9={{{9|}}}|base={{subst:PAGENAME}}}}
</
|