Difference between revisions of "Create new request"

From PegaWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{#if: {{#urlget: pageName}} | {{#ifexist: {{#urlget: pageName}}
 
{{#if: {{#urlget: pageName}} | {{#ifexist: {{#urlget: pageName}}
 
| A page with this name already exists, please choose another name
 
| A page with this name already exists, please choose another name
| <wsform action="get" id="new-request" class="mb-4" mwreturn="https://pega.wikibase.nl/index.php" >
+
| Create the request {{#urlget: pageName}}? <wsform action="get" id="new-request" class="mb-4" mwreturn="{{fullurl: {{#urlget: pageName}} }}" >
<wsfield type="text" class="form-control " name="title" value="" placeholder="Title" size="50"/>
+
<wsfield type="text" class="form-control " placeholder="Title" size="50"/>
 
<wsfield type="hidden" name="preload" value="Template:Boilerplate New request" />
 
<wsfield type="hidden" name="preload" value="Template:Boilerplate New request" />
 
<wsfield type="hidden" name="action" value="edit" />
 
<wsfield type="hidden" name="action" value="edit" />
  
<wsfield type="submit" />
+
<wsfield type="submit" value="Create"/>
 
</wsform>
 
</wsform>
 
}}
 
}}
 
| <wsform action="get" id="new-request" class="mb-4"><wsfield type="text" class="form-control " name="pageName" placeholder="Title" size="50"/></wsform>
 
| <wsform action="get" id="new-request" class="mb-4"><wsfield type="text" class="form-control " name="pageName" placeholder="Title" size="50"/></wsform>
 
}}
 
}}

Revision as of 12:49, 29 July 2020