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...")
 
 
(14 tussenliggende versies door 2 gebruikers niet weergegeven)
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><!--  
 
+
// If Page parameter has a value, create that page, else create a new one
+
--><wsform action="get" mwreturn="{{fullurl:Create article}}" class="d-flex">
-->{{#if:{{{Page|}}}
+
<wsfield name="Title" type="text" value="{{{Title|}}}" class="form-control" required="required" />
|<wscreate mwwrite="{{{Page|}}}" mwtemplate="Article" />
+
<wsfield type="submit" class="btn btn-primary" value="Controleren" />
|<wscreate mwwrite="Article/[Title]" mwtemplate="Article" mwfields="Title, Author article, Request" mwfollow />
+
</wsform><!--
}}
+
 
+
--></includeonly>
<wslabel>{{int: ws-title}}:</wslabel>
 
<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}}" />
 
</div>
 
</wsform>
 
</includeonly>
 

Huidige versie van 13 apr 2022 om 18:56

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.