examples/init/mobo_template/form.wikitext
<noinclude>
{{~#if description~}}
<div class="description-box">{{description}}</div>
{{/if~}}
{{~#if naming}}
<div class="naming-box"><strong>Naming convention:</strong> {{naming}}</div>
{{/if~}}
\{{#forminput:form={{~name~}}{{smw_params this.formInput}} }}
</noinclude>
<includeonly>{{~#if formInfo~}}\{{{info{{smw_params formInfo}} }}}
{{/if~}}
{{~#if description~}}<div class="description-box">{{description}}</div>{{/if~}}
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{#each template~}}
{{~#if this.prepend}}{{{this.prepend}}}{{/if~}}
{{#if this.template~}}
{{#if this.showForm}}
{{{this.template}}} {{~/if~}}
{{#if this.showPage}}
\{{{for template|{{this.id~}} }}} \{{{end template}}}{{~/if~}}
{{~else~}}
{{~#if this.wikitext}}
{{{this.wikitext}}}
{{~else~}}
\{{{for template|{{this.id}}|{{this.title~}}{{#if this.label}}|label={{{this.title}}}{{/if}}{{smw_formparams this.multiple~}} }}}
{{smw_formtable this.model~}}
\{{{end template}}}
{{~/if}} {{~/if}}
{{~#if this.append}}{{{this.append}}}{{/if}}
{{/each}}
{{~#if this.formEdit}}\{{{for template|{{this.name}} FormEdit}}} \{{{end template}}}
{{/if~}}
{{~#if headerTabs}}
\{{{for template|HeaderTabs}}} \{{{end template}}}<headertabs />
{{/if~}}
{{~#if freetext}}
==Freetext==
\{{{standard input|free text|rows=8}}}
{{/if~}}
{{~#if summary}}
\{{{standard input|summary}}}
{{/if~}}
<div class="formbuttons">\{{{standard input|save}}}
{{~#if settingsObj.sf_wpPreview}}\{{{standard input|preview}}} {{/if~}}
{{~#if settingsObj.sf_wpDiff}}\{{{standard input|changes}}} {{/if~}}
{{~#if settingsObj.sf_wpWatchthis}}\{{{standard input|watch}}} {{/if~}}
</div></includeonly>