Sjabloon:Portal form: verschil tussen versies
Uit Auditpedia
Regel 34: | Regel 34: | ||
{{#arraymap:{{#arrayprint:$portals unselected}} |, |__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__ }} |}} | {{#arraymap:{{#arrayprint:$portals unselected}} |, |__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__ }} |}} | ||
|name=Portal |class=form-control}}<!-- einde wsselect --> | |name=Portal |class=form-control}}<!-- einde wsselect --> | ||
+ | |||
+ | <wslabel>Behoort tot categorie:</wslabel> | ||
+ | <wsselect name="Has category" class="form-control"> | ||
+ | <wsfield for="Has category" type="option" value="Maatschappelijke relevantie" selected="{{#ifeq: Maatschappelijke relevantie|{{{Has category|}}}|selected}}" >Maatschappelijke relevantie</wsfield> | ||
+ | <wsfield for="Has category" type="option" value="Beroepsontwikkeling" selected="{{#ifeq: Beroepsontwikkeling|{{{Has category|}}}|selected}}" >Beroepsontwikkeling</wsfield> | ||
+ | <wsfield for="Has category" type="option" value="Beroepsgeschiedenis" selected="{{#ifeq: Beroepsgeschiedenis |{{{Has category|}}}|selected}}" >Beroepsgeschiedenis</wsfield> | ||
+ | </wsselect> | ||
<div class="text-right"> | <div class="text-right"> |
Versie van 4 mrt 2021 12:21
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 |Portal= "Template:Portal" parameters: |Title= |Portal= }}