Sjabloon:Article form: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 31: Regel 31:
 
{{#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" multiple="multiple" required="required" name="Portal[]" ><wsfield type="option" value=""/>
 
{{#caamap:{{#arrayprint:$portals selected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__ |selected=selected }} |}}
 
{{#caamap:{{#arrayprint:$portals selected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__ |selected=selected }} |}}
 
{{#caamap:{{#arrayprint:$portals unselected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__}} |}}
 
{{#caamap:{{#arrayprint:$portals unselected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__}} |}}

Versie van 13 apr 2022 18:51


This is the Article form template. It should be called in the following format:

{{Article form 
|Page= < Optional > if empty, a new page is created

"Template:Article" parameters:
|Title=
|Portal= < comma-separated pages > 
|Archived= < Optional: Yes > 
}}