Difference between revisions of "Template:User form"
From cm2.liecourt.com
Line 17: | Line 17: | ||
</pre> | </pre> | ||
− | </noinclude><includeonly><wsform action="addToWiki" mwreturn="{{fullurl:User:{{CURRENTLOGGEDUSER}} }}"><!-- | + | </noinclude><includeonly><wsform action="addToWiki" mwreturn="{{fullurl:{{{Target|User:{{CURRENTLOGGEDUSER}} }}} }}"><!-- |
− | -->{{#ifexist:User:{{CURRENTLOGGEDUSER}} | + | -->{{#ifexist:{{{Target|User:{{CURRENTLOGGEDUSER}} }}} |
− | |{{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Name}} | + | |{{#tag:wsedit||target={{PAGEID:{{{Target|User:{{CURRENTLOGGEDUSER}} }}} }}|template=User|formfield=Name}} |
− | {{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Roles}} | + | {{#tag:wsedit||target={{PAGEID:{{{Target|User:{{CURRENTLOGGEDUSER}} }}} }}|template=User|formfield=Roles}} |
− | {{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Be candidate}} | + | {{#tag:wsedit||target={{PAGEID:{{{Target|User:{{CURRENTLOGGEDUSER}} }}} }}|template=User|formfield=Be candidate}} |
− | {{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Email}} | + | {{#tag:wsedit||target={{PAGEID:{{{Target|User:{{CURRENTLOGGEDUSER}} }}} }}|template=User|formfield=Email}} |
− | {{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Volunteer}} | + | {{#tag:wsedit||target={{PAGEID:{{{Target|User:{{CURRENTLOGGEDUSER}} }}} }}|template=User|formfield=Volunteer}} |
− | |{{#tag:wscreate||mwwrite=User:{{CURRENTLOGGEDUSER}}|mwtemplate=User|mwfollow=true}} | + | |{{#tag:wscreate||mwwrite={{{Target|User:{{CURRENTLOGGEDUSER}} }}}|mwtemplate=User|mwfollow=true}} |
}} | }} | ||
Line 44: | Line 44: | ||
Candidate: | Candidate: | ||
− | {{#vardefine:@becandidatedefault|{{#if:{{{Be candidate|}}}|{{{Be candidate|}}}|{{#if:{{{Roles|}}}|Yes|{{#ifexist:User:{{CURRENTLOGGEDUSER}}|Yes|No}} }} }} }} | + | {{#vardefine:@becandidatedefault|{{#if:{{{Be candidate|}}}|{{{Be candidate|}}}|{{#if:{{{Roles|}}}|Yes|{{#ifexist:{{{Target|User:{{CURRENTLOGGEDUSER}} }}}|Yes|No}} }} }} }} |
<wsfield type="radio" name="Be candidate[]" value="Yes" checked="{{#ifeq:{{#var:@becandidatedefault}}|Yes|checked}}" data-wssos-show="candidateoptions" /> Yes | <wsfield type="radio" name="Be candidate[]" value="Yes" checked="{{#ifeq:{{#var:@becandidatedefault}}|Yes|checked}}" data-wssos-show="candidateoptions" /> Yes | ||
<wsfield type="radio" name="Be candidate[]" value="No" checked="{{#ifeq:{{#var:@becandidatedefault}}|No|checked}}"/> No | <wsfield type="radio" name="Be candidate[]" value="No" checked="{{#ifeq:{{#var:@becandidatedefault}}|No|checked}}"/> No |
Revision as of 17:13, 22 May 2020
This is the User form template. It should be called in the following format:
{{User form |Name= |Email= |Volunteer= |Roles= |Be candidate=overrules role }}