Jump to content

Template:Add role: Difference between revisions

From FASSAG Wiki
No edit summary
No edit summary
Line 13: Line 13:
== Template ==
== Template ==
{{#cargo_declare:_table=MemberRole
{{#cargo_declare:_table=MemberRole
|Roles=List (,) of String
|Role=String
|User=Page}}
|User=Page}}
</noinclude><includeonly>{{#cargo_store:
</noinclude><includeonly>{{#cargo_store:
_table = MemberRole
_table = MemberRole
|Roles = {{{1}}}
|Role = {{{1}}}
|User = {{PAGENAME}}
|User = {{PAGENAME}}
}}
}}
{{#cargo_query:table=MemberRole
{{#cargo_query:table=MemberRole
|fields=Roles
|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

Template:Template

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.