"साचा:Autotranslate/doc" च्या विविध आवृत्यांमधील फरक
Content deleted Content added
→How to convert a template: remove redlinks |
|||
ओळ ८:
—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>
*See [[Commons:Template i18n]] for a list of templates needing translation or translated.
=== Create a layout template ===
—See for example [[Template:Apache/layout]].<br />
You must create a layout template, named <code>
This template should not add any categories when transcluded.
=== Convert existing language versions ===
—See for example [[Template:Apache/en]].<br />
All versions must be subpages of <code>
Each language version of the template should be checked and converted to use the layout template –<code>
Note that everything that is not supposed to be included together with the template, like <code><nowiki>{{translated tag|cleanup}}</nowiki></code> or <code><nowiki>{{documentation}}</nowiki></code>, must be inside a <code><noinclude></code> tag.
Here is the syntax you must use for <code>
<nowiki>{{</nowiki><code>
|text=<''translated text of the template''>
|lang=<''prefix''>
ओळ ३४:
=== Create a documentation page ===
—See for example [[Template:Apache/doc]].<br />
Create a documentation page at <code>
=== Convert the main template ===
—See for example [[Template:Apache]].<br />
The last step is to enable the template. Be sure to check everything before you enable the template. You can cause a really big mess!
To enable the template, put this code in the template –<code>
<nowiki>{{Autotranslate|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|</nowiki>base=<var>template name</var>}}
|