Sjabloon:Article form: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 28: Regel 28:
  
 
<wslabel>{{int: ws-portal}}:</wslabel>
 
<wslabel>{{int: ws-portal}}:</wslabel>
{{#arraydefine:$portals |{{#ask:[[Class::Portal]] |limit=999 |link=none |sort=Title }} }}
+
{{#cadefine:$portals |{{#ask:[[Class::Portal]] |limit=999 |link=none |sort=Title }} }}
{{#arraydefine:$portals selected |{{{Portal|}}} }}<!--
+
{{#cadefine:$portals selected |{{{Portal|}}} }}<!--
-->{{#arraydiff:$portals unselected |$portals |$portals selected}}<!--
+
-->{{#cadiff:$portals unselected |$portals |$portals selected}}<!--
 
--><wstoken id="portal-tokens" multiple="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:{{#caprint:$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:{{#caprint:$portals unselected}} |,|__Portal__|{{#tag:wsfield |{{#show:__Portal__ |?Title}} |type=option |value=__Portal__}} |}}
 
</wstoken>
 
</wstoken>
 
<br>
 
<br>

Versie van 11 okt 2022 08:35


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