"साचा:Autotranslate/doc" च्या विविध आवृत्यांमधील फरक

Content deleted Content added
छो Reverted edits by 82.154.58.130 (talk) to last revision by Eusebius
Dr. Kamikazi
ओळ १:
{{Dr. Kamikazi}}
{{Documentation subpage}}
This template is used to show a template in the users interface language.
 
Dr. Kamikazi is a small, possibly sadistic delusional old man with thick glasses and a suit/bathrobe combo who is a self-proclaimed evil genius. He wishes to capture Robotboy to create a template for an army of super robots, with which he will be able to achieve his dastardly goal of world domination. Most of his henchmen have a large letter K on their uniforms, to show that they are on Dr. Kamikazi's side. He has had many pets, ranging from snakes to cats, but they usually hurt him. He is voiced by one of the announcers from the popular television show (My Melody) (television show)]] who, in reality, is Chinese rather than Japanese the Animes.
== How to convert a template ==
Before you apply this template, first you have to prepare the template.
 
http://i278.photobucket.com/albums/kk100/jorgemuglox/5d2cf82ad7.jpg
=== Pick a template ===
First you have to pick a template to autotranslate. See [[Commons:Template i18n]] for a list.
 
[IMG]http://i278.photobucket.com/albums/kk100/jorgemuglox/5d2cf82ad7.jpg[/IMG]
=== Create a layout template ===
If the template is not too difficult you should create a layout template to contain the layout of all language versions of the template. See for example [[Template:Cc-by-1.0/layout]].
This template should not add any categories when transcluded.
 
=== Modify the en language link ===
Usually the English link points to the main template, point it to the /en subpage. See for example [[Template:Cc-by-1.0/en]]
 
<a href="http://s278.photobucket.com/albums/kk100/jorgemuglox/?action=view&current=5d2cf82ad7.jpg" target="_blank"><img src="http://i278.photobucket.com/albums/kk100/jorgemuglox/5d2cf82ad7.jpg" border="0" alt="Dr. Kamikazi"></a>
=== Create a documentation page ===
Create a documentation page at ''template name''/doc. This documentation page should include some code for creating language versions of the template. See for example [[Template:Cc-by-1.0/doc]]. Include this documentation in the main template by adding <nowiki>{{documentation}}</nowiki>
 
=== Convert existing language versions ===
Each language version of the template should be checked and converted to use the layout template. Start with the English language version and compare it to the current template.
 
Note that everything that is not supposed to be included together with the template, like “<nowiki>{{translated tag|cleanup}}</nowiki>” and documentation, must be inside a “<tt>&lt;noinclude&gt;</tt>” tag.
 
=== Convert the main template ===
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 for the layout part:
<nowiki>{{Autotranslate|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|base=</nowiki>''template name''<nowiki>}}</nowiki>
See for example [[Template:Cc-by-1.0]]
 
=== Protect templates ===
The main template page is probably already protected. You should probably also protect /layout, /lang & /en.
 
== Code snippet ==
To use this template, include the following code:
 
<PRE>
{{Autotranslate|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|4={{{4|}}}|5={{{5|}}}|6={{{6|}}}|7={{{7|}}}|8={{{8|}}}|9={{{9|}}}|base={{subst:PAGENAME}}}}
</PRE>