Difference between revisions of "Template:User"
From cm2.liecourt.com
(Fill database) |
|||
Line 13: | Line 13: | ||
|Name= | |Name= | ||
|Filed by= | |Filed by= | ||
+ | |be candidate= | ||
}} | }} | ||
</pre> | </pre> | ||
<!--{{User }}--> | <!--{{User }}--> | ||
− | </noinclude><includeonly> | + | </noinclude><includeonly>{{#vardefine:@roles|{{#ifeq:{{{Be candidate|Yes}}}|Yes|{{#if:{{{Roles|}}}|{{{Roles|}}}|Juror, Judge}} }} }} |
− | <div class="d-none">__NOTITLE__ __NOTOC__{{#if:{{{Name|}}}|{{#set:Class=Member|Role={{# | + | <div class="d-none">__NOTITLE__ __NOTOC__{{#if:{{{Name|}}}|{{#set:Class=Member|Role={{#var:@roles}}|+sep=,|User={{{User|}}}|Name={{{Name|}}}|Email={{{Email|}}}|Volunteer={{{Volunteer|}}}|Tokens spent={{{Tokens spent|}}}|Pagename={{FULLPAGENAME}} }} }} |
</div> | </div> | ||
{{#vardefine:@allowed|{{#ifeq:User:{{CURRENTLOGGEDUSER}}|{{FULLPAGENAME}}|Yes|{{#ifsysop:Yes|No}}}}}} | {{#vardefine:@allowed|{{#ifeq:User:{{CURRENTLOGGEDUSER}}|{{FULLPAGENAME}}|Yes|{{#ifsysop:Yes|No}}}}}} | ||
Line 48: | Line 49: | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Roles</b> | |1=<b>Roles</b> | ||
− | |2={{# | + | |2={{#ifeq:{{{Be candidate|}}}|No|Not a candidate|{{#arraymap:{{#var:@roles}}|,|@@|@@}} {{#ifeq:{{{Volunteer|Yes}}}|(volunteer)}} }} |
}} | }} | ||
{{#widget:link|text=Edit|type=a|class=btn btn-blue|id=profile-tab|datatoggle=tab|href=#info-tab-form|role=tab|aria-controls=info-tab-form|ariaselected=false}} | {{#widget:link|text=Edit|type=a|class=btn btn-blue|id=profile-tab|datatoggle=tab|href=#info-tab-form|role=tab|aria-controls=info-tab-form|ariaselected=false}} | ||
</div> | </div> | ||
<div id="info-tab-form" class="tab-pane fade" role="tabpanel" aria-labelledby="info-tab-form"> | <div id="info-tab-form" class="tab-pane fade" role="tabpanel" aria-labelledby="info-tab-form"> | ||
− | + | {{User form | |
− | + | |Name={{{Name|}}} | |
− | {{ | + | |Email={{{Email|}}} |
− | + | |Volunteer={{{Volunteer|}}} | |
− | {{ | + | |Roles={{#var:@roles}} |
− | + | |Be candidate={{{Be candidate|}}} | |
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | }} | ||
− | |||
− | |||
− | | | ||
− | |||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
</div> | </div> |
Revision as of 14:37, 22 May 2020
This is the User template. It should be called in the following format:
{{User |User= |Roles= |Name= |Filed by= |be candidate= }}