Template:Add role: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
== Template == | == Template == | ||
{{#cargo_declare:_table=MemberRole | {{#cargo_declare:_table=MemberRole | ||
| | |Role=String | ||
|User=Page}} | |User=Page}} | ||
</noinclude><includeonly>{{#cargo_store: | </noinclude><includeonly>{{#cargo_store: | ||
_table = MemberRole | _table = MemberRole | ||
| | |Role = {{{1}}} | ||
|User = {{PAGENAME}} | |User = {{PAGENAME}} | ||
}} | }} | ||
{{#cargo_query:table=MemberRole | {{#cargo_query:table=MemberRole | ||
|fields= | |fields=Role | ||
|where=User="{{PAGENAME}}" | |where=User="{{PAGENAME}}" | ||
|format=template | |format=template | ||
|template=Display roles | |template=Display roles | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 23:52, 2 May 2026
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
Give yourself the 'lens' role
{{Member role|lens)}}
Template
This template defines the table "MemberRole". View table.