Template:Howto: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#if:{{{file|}}}|<div class="editor_steps_box_wrapper">}}<div class="editor_steps_box">
{{#if:{{{file|}}}|<div class="editor_steps_box_wrapper">}}<div class="editor_steps_box"><span class="editor_steps_title">'''How to{{#if:{{{title|}}}| {{{title}}}}}:'''</span>{{#if:{{{1|}}}|:# {{{1}}}}}{{#if:{{{2|}}}|:# {{{2}}}}}{{#if:{{{3|}}}|:# {{{3}}}}}{{#if:{{{4|}}}|:# {{{4}}}}}{{#if:{{{5|}}}|:# {{{5}}}}}{{#if:{{{6|}}}|:# {{{6}}}}}{{#if:{{{7|}}}|:# {{{7}}}}}{{#if:{{{8|}}}|:# {{{8}}}}}{{#if:{{{9|}}}|:# {{{9}}}}}{{#if:{{{10|}}}|:# {{{10}}}}}{{#if:{{{11|}}}|:# {{{11}}}}}{{#if:{{{12|}}}|:# {{{12}}}}}{{#if:{{{13|}}}|:# {{{13}}}}}{{#if:{{{14|}}}|:# {{{14}}}}}{{#if:{{{15|}}}|:# {{{15}}}}}{{#if:{{{16|}}}|:# {{{16}}}}}{{#if:{{{17|}}}|:# {{{17}}}}}{{#if:{{{18|}}}|:# {{{18}}}}}{{#if:{{{19|}}}|:# {{{19}}}}}{{#if:{{{20|}}}|:# {{{20}}}}}</div>{{#if:{{{file|}}}|<div class="editor_steps_image">{{{file}}}</div></div>}}<noinclude>
<span class="editor_steps_title">'''How to{{#if:{{{title|}}}|&nbsp;{{{title}}}}}:'''</span>
{{#if:{{{1|}}}|:# {{{1}}}}}{{#if:{{{2|}}}|:# {{{2}}}}}{{#if:{{{3|}}}|:# {{{3}}}}}{{#if:{{{4|}}}|:# {{{4}}}}}{{#if:{{{5|}}}|:# {{{5}}}}}{{#if:{{{6|}}}|:# {{{6}}}}}{{#if:{{{7|}}}|:# {{{7}}}}}{{#if:{{{8|}}}|:# {{{8}}}}}{{#if:{{{9|}}}|:# {{{9}}}}}{{#if:{{{10|}}}|:# {{{10}}}}}{{#if:{{{11|}}}|:# {{{11}}}}}{{#if:{{{12|}}}|:# {{{12}}}}}
</div>{{#if:{{{file|}}}|<div class="editor_steps_image">{{{file}}}</div></div>}}<noinclude>
If more are needed, append:<br>
If more are needed, append:<br>
<nowiki>{{#if:{{{8|}}}|:# {{{8}}}}}</nowiki>
<nowiki>{{#if:{{{8|}}}|:# {{{8}}}}}</nowiki>
The template can be generated using javascript by executing the following function in javascript:
<pre>
var steps=20;
var string="{{#if:{{{file|}}}|<div class=\"editor_steps_box_wrapper\">}}<div class=\"editor_steps_box\">\n<span class=\"editor_steps_title\">'''How to{{#if:{{{title|}}}|&nbsp;{{{title}}}}}:'''</span>";
for(i=1;i<=steps;i++) {;
string+="{{#if:{{{"+i+"|}}}|:# {{{"+i+"}}}}}";
}
string=string+"</div>{{#if:{{{file|}}}|<div class=\"editor_steps_image\">{{{file}}}</div></div>}}";
</pre>
</noinclude>
</noinclude>

Revision as of 07:26, 26 August 2014

How to:

If more are needed, append:
{{#if:{{{8|}}}|:# {{{8}}}}} The template can be generated using javascript by executing the following function in javascript:

var steps=20;
var string="{{#if:{{{file|}}}|<div class=\"editor_steps_box_wrapper\">}}<div class=\"editor_steps_box\">\n<span class=\"editor_steps_title\">'''How to{{#if:{{{title|}}}| {{{title}}}}}:'''</span>";
for(i=1;i<=steps;i++) {;
 string+="{{#if:{{{"+i+"|}}}|:# {{{"+i+"}}}}}";
}
string=string+"</div>{{#if:{{{file|}}}|<div class=\"editor_steps_image\">{{{file}}}</div></div>}}";