Sjabloon:Portal form: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 30: Regel 30:
  
 
<wslabel>Belongs to portal:</wslabel>
 
<wslabel>Belongs to portal:</wslabel>
{{#arraydefine:$portals |{{#ask:[[Class::Portal]] |limit=999 |link=none |sort=Title }} }}
+
<wsfield type="textarea" rows="1" class="form-control" name="Portal" >{{{Portal|}}}</wsfield>
{{#arraydefine:$portals selected |{{{Portal|}}} }}<!--
 
-->{{#arraydiff:$portals unselected |$portals |$portals selected}}<!--
 
--><wstoken id="portal-tokens" name="Portal[]" ><wsfield type="option" value=""/>
 
{{#arraymap:{{#arrayprint:$portals selected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__ |selected=selected }} |}}
 
{{#arraymap:{{#arrayprint:$portals unselected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__}} |}}
 
</wstoken>
 
  
 
<div class="text-right">
 
<div class="text-right">

Versie van 6 jan 2021 09:45


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=
}}