Sjabloon:Article form: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 25: Regel 25:
 
// If Page parameter has a value, create that page, else create a new one
 
// If Page parameter has a value, create that page, else create a new one
 
-->{{#if:{{{Page|}}}
 
-->{{#if:{{{Page|}}}
|<wscreate mwwrite="{{{Page|}}}" mwtemplate="Article" />
+
|<wsedit target="{{{Page|}}}" template="Article" />
 
|<wscreate mwwrite="Article/[Title]" mwtemplate="Article" mwfields="Title, Portal, Request, Expand, Update, Other" mwfollow />
 
|<wscreate mwwrite="Article/[Title]" mwtemplate="Article" mwfields="Title, Portal, Request, Expand, Update, Other" mwfollow />
 
}}
 
}}

Versie van 26 nov 2020 18:28


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

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

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