Template:Howto

From Tygron Support wiki
Revision as of 14:02, 8 February 2019 by Rudolf@tygron.nl (talk | contribs) (Rudolf@tygron.nl moved page Template:Editor steps to Template:Howto)
Jump to navigation Jump to search

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\"><p><span class=\"editor_steps_title\">'''{{{preamble|How to}}}{{#if:{{{title|}}}| {{{title}}}}}:'''</span></p>";
for(i=1;i<=steps;i++) {;
 string+="{{#if:{{{"+i+"|}}}|{{{form|:#}}} {{{"+i+"}}}}}";
}
string=string+"\n</div>{{#if:{{{file|}}}|<div class=\"editor_steps_image\">{{{file}}}</div></div>}}";