Sjabloon:Portal form: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 1: Regel 1:
 +
 +
 +
 +
 
<noinclude>{{Managed
 
<noinclude>{{Managed
 
|Version=1.0
 
|Version=1.0
Regel 27: Regel 31:
 
<wslabel>Belongs to portal:</wslabel>
 
<wslabel>Belongs to portal:</wslabel>
 
{{#arraydefine:$portals |{{#ask:[[Class::Portal]] |limit=999 |link=none |sort=Title }} }}
 
{{#arraydefine:$portals |{{#ask:[[Class::Portal]] |limit=999 |link=none |sort=Title }} }}
{{#arraydefine:$portals selected |{{{Portal|}}} }}<!--
+
{{#arraydefine:$portals selected |{{{Portal|}}} }}
-->{{#arraydiff:$portals unselected |$portals |$portals selected}}<!--
+
{{#arraydiff:$portals unselected |$portals |$portals selected}}
--><wstoken id="portal-tokens" multiple required="required" name="Portal[]" ><wsfield type="option" value=""/>
+
{{#tag:wsselect |
{{#arraymap:{{#arrayprint:$portals selected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__ |selected=selected }} |}}
+
<wsfield type="option" value="">(geen)</wsfield>
{{#arraymap:{{#arrayprint:$portals unselected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__}} |}}
+
{{#arraymap:{{#arrayprint:$portals selected}} |, |__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__ |selected=selected}} |}}
</wstoken>
+
{{#arraymap:{{#arrayprint:$portals unselected}} |, |__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__ }} |}}
 +
|name=Portal |class=form-control}}<!-- einde wsselect -->
  
 
<div class="text-right">
 
<div class="text-right">

Versie van 6 jan 2021 13:39




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