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

Content deleted Content added
would you like make more money?
छो Reverted edits by 59.58.148.121 (talk) to last revision by Rizome
ओळ १:
{{Documentation subpage}}
would you like make more money?
This template is used to show a template in the users interface language.
www.trade-google.com , www.trade-google.com ,www.trade-google.com ,www.trade-google.com , www.trade-google.com ,www.trade-google.com ,www.trade-google.com , www.trade-google.com ,www.trade-google.com ,www.trade-google.com , www.trade-google.com ,www.trade-google.com :
 
== How to convert a template ==
For summer coming,there are some new style items come out, welcome to visit links as below,pls feel free to contact with me if you have any questions or need any help,I hope we can do business together soon,thanks!
Before you apply this template, first you have to prepare the template.
www.trade-google.com (our website)
I give you price of some items as below:
Jordan:$32
Air force one:$32
High Dunk:$45
Purse:$32
Wallet:$14
Sunglass:$12
t-shirt:$16
jean:$32
hat:$12
The price already including shipping cost yet!
 
=== Pick a template ===
www.trade-google.com , www.trade-google.com ,www.trade-google.com ,www.trade-google.com , www.trade-google.com ,www.trade-google.com ,www.trade-google.com , www.trade-google.com ,www.trade-google.com ,www.trade-google.com , www.trade-google.com ,www.trade-google.com ,
&mdash;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.
 
=== Create a layout template ===
!)
&mdash;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.<br />
This template should not add any categories when transcluded.
 
In this page, you must add the code that will make the template to recognise automaticly the translations when available:
<code><nowiki>{{Autotranslate/Languages|{{subst:NAMESPACE}}:{{subst:BASEPAGENAME}}}}</nowiki></code>
 
=== Convert existing language versions ===
&mdash;See for example [[Template:Cc-by-1.0/en]].<br />
All versions must be subpages of <code>[[Template:Template name|Template:<var>Template name</var>]]</code>, and his name must use the appropriate prefix, [[m:List_of_Wikipedias|as used on Wikipedia]] when adding a new language &ndash;ISO 639 language code&ndash;. Posibilities are listed [[Template:Autotranslate/Languages/doc#Supported_languages|here]]. For example, Spanish subpage must be named <code>[[Template:Template name/es|Template:<var>Template name</var>/es]]</code><br />Usually the English language link to the main template &ndash;<code>Template:<var>Template name</var></code>&ndash;. That is incorrect, point it to the <code>[[Template:Template name/en|Template:<var>Template name</var>/en]]</code> subpage.
 
Each language version of the template should be checked and converted to use the layout template &ndash;<code>[[Template:Template name/layout|Template:<var>Template name</var>/layout]]</code>&ndash;. 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 <code><nowiki>{{translated tag|cleanup}}</nowiki></code> or <code><nowiki>{{documentation}}</nowiki></code>, must be inside a <code>&lt;noinclude&gt;</code> tag.
 
Here is the sintaxis you must use for <code>[[Template:Template name/en|Template:<var>Template name</var>/&lt;<var>prefix</var>&gt;]]</code>, where <code>&lt;<var>prefix</var>&gt;</code> is [[Template:Autotranslate/Languages/doc#Supported_languages|one of this]].
<nowiki>{{</nowiki><code>[[Template:Template name/layout|Template:<var>Template name</var>/layout]]</code>
|text=&lt;''translated text of the template''&gt;
|lang=&lt;''prefix''&gt;
<nowiki>}}</nowiki><br /><nowiki><noinclude>{{</nowiki>translated tag|license<nowiki>}}</noinclude></nowiki>
 
=== Create a documentation page ===
&mdash;See for example [[Template:Cc-by-1.0/doc]].<br />
Create a documentation page at <code>[[Template:Template name/doc|Template:<var>Template name</var>/doc]]</code>. This documentation page should include some code for creating language versions of the template.
 
=== Convert the main template ===
&mdash;See for example [[Template:Cc-by-1.0]].<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 &ndash;<code>[[Template:Template name|Template:<var>Template name</var>]]</code>&ndash;.
<nowiki>{{Autotranslate|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|base=</nowiki>''template name''<nowiki>}}</nowiki>
<nowiki><noinclude>{{documentation}}</noinclude></nowiki>
 
=== Protect templates ===
The main template page is probably already protected. You should probably also protect <code>/layout</code> and <code>/en</code>.
 
== 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>