Sjabloon:Www.denhout.eu/Form member: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
Regel 7: Regel 7:
 
|Action=
 
|Action=
 
|Domein=
 
|Domein=
 +
|Return page=(url)
 
|Email address=
 
|Email address=
 
|First name=
 
|First name=
Regel 23: Regel 24:
 
</noinclude><includeonly>{{#vardefine:@cols|6-6}}<wsform action="addToWiki" restrictions=lifted messageonsuccess="Wijzigingen zijn opgeslagen" >
 
</noinclude><includeonly>{{#vardefine:@cols|6-6}}<wsform action="addToWiki" restrictions=lifted messageonsuccess="Wijzigingen zijn opgeslagen" >
 
{{#switch: {{{Action|}}}  
 
{{#switch: {{{Action|}}}  
|Aanmelden={{#vardefine: wsCreateText=<nowiki><wscreate mwwrite="{{SERVERNAME}}/Member/" mwoption="add_random" mwtemplate="Member" mwreturn="{{fullurl:{{SERVERNAME}}/Dank voor aanmelden}}" /></nowiki>}}
+
|Aanmelden=<wscreate mwwrite="{{{Domein|}}}/Member/" mwoption="add_random" mwtemplate="Member" mwreturn="{{{Return page|}}}" /></nowiki>}}
|Wijzigen={{#vardefine: wsCreateText=<nowiki><wscreate mwwrite="{{FULLPAGENAME}}" mwtemplate="Member" mwreturn="{{FULLPAGENAME}}"/></nowiki>}}
+
|Wijzigen=<wscreate mwwrite="{{FULLPAGENAME}}" mwtemplate="Member" mwreturn="{{FULLPAGENAME}}"/>
 
|#default=
 
|#default=
}}{{#var: wsCreateText}}
+
}}
 
<wsfield type="hidden" name="Domein" value="{{{Domein|}}}" />
 
<wsfield type="hidden" name="Domein" value="{{{Domein|}}}" />
 
<wsfield type="hidden" name="Has been approved" value="{{{Has been approved|}}}" />
 
<wsfield type="hidden" name="Has been approved" value="{{{Has been approved|}}}" />

Versie van 25 feb 2021 17:28


This is the "Form member" template. It should be called in the following format:

{{Form member
|Action=
|Domein=
|Return page=(url)
|Email address=
|First name=
|Last name=
|Address=
|Postcode=
|Woonplaats=
|Mobile phone=
|Wants to contribute=
|Has been approved=
}}

The form should be used for the following actions regarding members:

 * Aanmelden (new member page will be created, member not approved)
 * Wijzigen (existing member page changed by member or admin)