Sjabloon:Portal form: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 33: Regel 33:
 
{{#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=""/>
+
--><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 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__}} |}}
 
{{#arraymap:{{#arrayprint:$portals unselected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__}} |}}

Versie van 6 jan 2021 09:44


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