Sjabloon:Article form template: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
(Created page with "<noinclude> This is the "Article form template" template. It should be called in the following format: <pre> {{Article form template |Page= }} </pre> Edit the page to see the...")
 
Regel 8: Regel 8:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly><wsform action="addToWiki"><!--
+
</noinclude><includeonly><wsform action="get" mwreturn="{{fullurl:Create article}}">
 
 
// If Page parameter has a value, create that page, else create a new one
 
-->{{#if:{{{Page|}}}
 
|<wscreate mwwrite="{{{Page|}}}" mwtemplate="Article" />
 
|<wscreate mwwrite="Article/[Title]" mwtemplate="Article" mwfields="Title, Author article, Request" mwfollow />
 
}}
 
 
 
<wslabel>{{int: ws-title}}:</wslabel>
 
 
<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" />
<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}}" />
 
<wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" />
</div>
 
 
</wsform>
 
</wsform>
 
</includeonly>
 
</includeonly>

Versie van 25 nov 2020 13:04

This is the "Article form template" template. It should be called in the following format:

{{Article form template
|Page=
}}

Edit the page to see the template text.