Sjabloon:Portal form: verschil tussen versies
Uit Auditpedia
Regel 10: | Regel 10: | ||
{{Portal form | {{Portal form | ||
|Page= < Optional, person page to edit > if empty, a new page is created | |Page= < Optional, person page to edit > if empty, a new page is created | ||
+ | |Is subportal= < Optional: Yes > | ||
"Template:Portal" parameters: | "Template:Portal" parameters: | ||
|Title= | |Title= | ||
+ | |Is subportal= | ||
}} | }} | ||
</pre> | </pre> | ||
Regel 26: | Regel 28: | ||
<wslabel>{{int: ws-title}}:</wslabel> | <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" /> | ||
+ | |||
+ | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
+ | |1=Is subportal | ||
+ | |2={{#tag:wslabel |<wsfield name="Is subportal" id="subportal-field" type="checkbox" value="Yes" checked="{{#ifeq:{{{Is subportal|}}} |Yes |checked}}" /> Ja |for=subportal-field}} | ||
+ | }} | ||
<div class="text-right"> | <div class="text-right"> |
Versie van 18 nov 2020 16:19
This is the Portal form template. It should be called in the following format:
{{Portal form |Page= < Optional, person page to edit > if empty, a new page is created |Is subportal= < Optional: Yes > "Template:Portal" parameters: |Title= |Is subportal= }}