Sjabloon:Article form: verschil tussen versies
Uit Auditpedia
Label: Ongedaan maken |
Label: Ongedaan maken |
||
Regel 32: | Regel 32: | ||
-->{{#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 required="required" 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> | </wstoken> | ||
Versie van 9 feb 2022 14:47
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 > }}