Module:RightsList/doc

From Inkipedia, the Splatoon wiki
Revision as of 07:11, 11 February 2024 by Yoshifan52 (talk | contribs) (Protected "Module:RightsList/doc" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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