History: Mod author
Source of version: 4 (current)
Copy to clipboard
{syntax type="markdown" editor="wysiwyg"} # 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: {CODE()} {AUTHOR(contributor=y|n)}some text{ELSE}other text{AUTHOR} {CODE} {FANCYTABLE(head=**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.| {FANCYTABLE} 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, {CODE(wrap=>1)} {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} {CODE} 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.* ## Related pages - ((Mods Type Wikiplugins))