"साचा:Autotranslate/doc" च्या विविध आवृत्यांमधील फरक
Content deleted Content added
imported>Progiftnet |
छो Reverted edits by Progiftnet (talk) to last revision by Multichill |
||
ओळ २:
This template is used to show a template in the users interface language.
== How to convert a template ==
Before you apply this template, first you have to prepare the template.
===
—See for example [http://commons.wikimedia.org/w/index.php?title=Template:Cc-by-1.0&oldid=12667239 Template:Cc-by-1.0 before changes].<br />
First you have to pick a template to autotranslate.<br />
''In this documentation, we will name our "selected template" as:'' <code>[[Template:Template name|Template:<var>Template name</var>]]</code>
*See [[Commons:Template i18n]] for a list of templates needing translation or translated.
===
—See for example [[Template:Cc-by-1.0/layout]].<br />
You must create a layout template, named <code>[[Template:Template name/layout|Template:<var>Template name</var>/layout]]</code>, to contain the layout of all language versions of the template. The easiest way to do this is to copy a layout template of a similar template.<br />
This template should not add any categories when transcluded.
=== Convert existing language versions ===
Line ४९ ⟶ ४५:
To use this template, include the following code:
<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:
</pre>
|