Module:RightsList/doc
From Inkipedia, the Splatoon wiki
This is the documentation page for Module:RightsList
This is a module created for Template:RightsList
Functions
IfGroup
Output text if user is in group
Usage
{{#invoke: RightsList|IfGroup|[show group]|[text]|[user groups]}}
- show group - if [user groups] have this group, the output will be [text], else it won't return anything - The one exception is when this is set to all, then the output will be [text]
- text - text to show if [user groups] have [show group] or [show group] is set to all
- user groups - user groups seperated by |
Example
{{#invoke: RightsList|IfGroup|bcrat|Yes|bcrat}}
Yes
{{#invoke: RightsList|IfGroup|bcrat|Yes|admin}}
{{#invoke: RightsList|IfGroup|all|Yes|admin}}
Yes