Template:Howto test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
<div class="editor_steps_box"> | <div class="editor_steps_box"> | ||
<div class="editor_steps_header"> | <div class="editor_steps_header"> | ||
<div | <div class="editor_steps_title"><span>'''{{{preamble|How to}}}{{#if:{{{title|}}}| {{{title}}}}}:'''</span></div><!-- | ||
-->{{#if:{{{video|}}}|<div class='howto_video'>[[File:YoutubeLogo1.jpg|link={{{video|}}}|frameless|right|50px]]</div>|}}<!-- | -->{{#if:{{{video|}}}|<div class='howto_video'>[[File:YoutubeLogo1.jpg|link={{{video|}}}|frameless|right|50px]]</div>|}}<!-- | ||
--></div><!-- | --></div><!-- |
Revision as of 13:49, 1 November 2023
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|}}}{{{video|}}}|<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|}}}{{{video|}}}|<div class=\"editor_steps_image\">{{{file}}}{{{video|}}}</div></div>}}";