Template:Add role: Difference between revisions

m VV moved page Template:Member role to Template:Add role without leaving a redirect
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Template:Template}}{{DISPLAYTITLE:Template:Member role}}
<noinclude>{{DISPLAYTITLE:Template:Add role}}
 
When used on a user page, registers the role for that user. FASSAG roles show the type of work the user has decided to work on. You will also want to use [[Template:User roles]] on your User page to show all of your roles. See a description of roles in [[Organization]]
When used on a user page, registers the role for that user. Fassag roles show the type of work the user has decided to work on.
 
== Usage ==


== Examples ==
== Examples ==


Give yourself the 'lens' role
Give yourself the 'lens' role on your User page


  <nowiki>{{Member role|lens)}}</nowiki>
  <nowiki>{{Add role|lens)}}</nowiki>


== Template ==
== Template ==
{{#cargo_declare:_table=MemberRole
{{#cargo_declare:_table=MemberRole
|Role=String
|Role=String
|User=Page}}
|User=String}}
</noinclude><includeonly>{{#cargo_store:
</noinclude><includeonly>{{#cargo_store:
_table = MemberRole
_table = MemberRole
|Role = {{{1}}}
|Role = {{{1}}}
|User = {{PAGENAME}}
|User = {{PAGENAME}}
}}
{{#cargo_query:table=MemberRole
|fields=Role
|where=User="{{PAGENAME}}"
|format=template
|template=Display roles
}}</includeonly>
}}</includeonly>
<noinclude>
<templatedata>
{
"params": {
"1": {
"description": "The user's role",
"type": "string",
"suggestedvalues": [
"lens",
"scribe",
"engineer",
"designer",
"tester",
"outreach"
],
"required": true
}
},
"description": "Add a role for the user",
"paramOrder": [
"1"
]
}
</templatedata>
</noinclude>