Loading...
 
Skip to main content
Display alternate content to page creator or contributor

Mod author

This wikiplugin mod allows different content to be displayed depending on whether the user visiting the page is the creator of the page, a contributor or other user. (See Mods User for how to install a mod.)

Usage

Use the following syntax:

Copy to clipboard
{AUTHOR(contributor=y|n)}some text{ELSE}other text{AUTHOR}
Parameter Accepted values Effect Since
contributor y or n (default: n) If set to y, only a contributor to the page will see the content (or the content before {ELSE}), if n, only the creator.


A couple of tips on usage:

  • The use of {ELSE} is optional
  • Contributors cannot be specified if the history for the page has been deleted

Example

With this code,

Copy to clipboard
{AUTHOR(contributor=y)}''This note is for contributors to this page.''{ELSE} ''This note is for users who have not yet contributed to this page.'' {AUTHOR}


Contributors would see: This note is for contributors to this page.

Other visitors would see: This note is for users who have not yet contributed to this page.


Created by lindon. Last Modification: Wednesday 07 August, 2019 09:34:37 GMT-0000 by Yves Kipondo.