Difference between revisions of "Template:User form"
From cm2.liecourt.com
Line 16: | Line 16: | ||
</pre> | </pre> | ||
− | </noinclude><includeonly><wsform action="addToWiki" mwreturn="{{fullurl:User:{{CURRENTLOGGEDUSER}} }}"> | + | </noinclude><includeonly><wsform action="addToWiki" mwreturn="{{fullurl:User:{{CURRENTLOGGEDUSER}} }}"><!-- |
− | {{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Name}} | + | |
− | {{#tag:wsedit||target= | + | -->{{#ifexist:User:{{CURRENTLOGGEDUSER}} |
+ | |{{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Name}} | ||
+ | {{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Roles|value=None}} | ||
{{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Email}} | {{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Email}} | ||
{{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Volunteer}} | {{#tag:wsedit||target={{PAGEID:User:{{CURRENTLOGGEDUSER}} }}|template=User|formfield=Volunteer}} | ||
− | + | |{{#tag:wscreate||mwwrite=User:{{CURRENTLOGGEDUSER}}|mwtemplate=User|mwfollow=true}} | |
+ | }} | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
Line 36: | Line 39: | ||
|1=<b>Roles</b> | |1=<b>Roles</b> | ||
|2={{#arraydefine:@roles|{{{Roles|}}} }} | |2={{#arraydefine:@roles|{{{Roles|}}} }} | ||
+ | <wslabel>None<wsfield type="checkbox" name="Roles[]" value="None" checked="{{#if:{{#arraysearch:@roles|None}}|checked}}" /></wslabel><br> | ||
<wslabel>Juror<wsfield type="checkbox" name="Roles[]" value="Juror" checked="{{#if:{{#arraysearch:@roles|Juror}}|checked}}" /></wslabel><br> | <wslabel>Juror<wsfield type="checkbox" name="Roles[]" value="Juror" checked="{{#if:{{#arraysearch:@roles|Juror}}|checked}}" /></wslabel><br> | ||
<wslabel>Judge<wsfield type="checkbox" name="Roles[]" value="Judge" checked="{{#if:{{#arraysearch:@roles|Judge}}|checked}}" /></wslabel> | <wslabel>Judge<wsfield type="checkbox" name="Roles[]" value="Judge" checked="{{#if:{{#arraysearch:@roles|Judge}}|checked}}" /></wslabel> |
Revision as of 11:54, 22 May 2020
This is the User form template. It should be called in the following format:
{{User form |Name= |Email= |Volunteer= |Roles= }}