Sjabloon:Article form template: verschil tussen versies
Uit Auditpedia
Regel 4: | Regel 4: | ||
<pre> | <pre> | ||
{{Article form template | {{Article form template | ||
− | | | + | |Title= |
}} | }} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
− | </noinclude><includeonly><wsform action="get" mwreturn="{{fullurl:Create article}}"> | + | </noinclude><includeonly> |
+ | <wsform action="get" mwreturn="{{fullurl:Create article}}"> | ||
+ | {{#if:{{{Page|}}} | ||
<wsfield name="Title" type="text" value="{{{Title|}}}" class="form-control row-formitemresponsive" required="required" /> | <wsfield name="Title" type="text" value="{{{Title|}}}" class="form-control row-formitemresponsive" required="required" /> | ||
<wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /> | <wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /> | ||
+ | <div class="text-right"> | ||
+ | {{#if:{{{Page|}}} ||{{#widget:Button link | ||
+ | |class=btn btn-default | ||
+ | |href=#article-form | ||
+ | |datatoggle=collapse | ||
+ | |buttontext={{int: ws-back}} | ||
+ | }} | ||
+ | }} | ||
+ | <wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /> | ||
+ | </div> | ||
</wsform> | </wsform> | ||
</includeonly> | </includeonly> |
Versie van 4 dec 2020 15:51
This is the "Article form template" template. It should be called in the following format:
{{Article form template |Title= }}
Edit the page to see the template text.