Fandom Developers Wiki
(Created page with "{{Infobox JavaScript |Title = Profile Tags |Image file = Profile Tags Example.png |Description = Adds, removes, rearranges and modifies the tags next to User's names on User p...")
Tag: rte-source
 
(Updating authorship.)
Tag: sourceedit
Line 4: Line 4:
 
|Description = Adds, removes, rearranges and modifies the tags next to User's names on User pages.
 
|Description = Adds, removes, rearranges and modifies the tags next to User's names on User pages.
 
|Scope = For site-wide use
 
|Scope = For site-wide use
|Author = [[User:Rappy 4187|Rappy 4187]]
+
|Author = [[User:Rappy 4187|Rappy 4187]]<br>[[User:Cqm|Cqm]]
 
|Updated = 2016-01-06
 
|Updated = 2016-01-06
 
|Code = [[MediaWiki:ProfileTags.js|ProfileTags.js]]
 
|Code = [[MediaWiki:ProfileTags.js|ProfileTags.js]]

Revision as of 02:46, 8 January 2016

Profile Tags is a script that can replace, remove, modify and rearrange the tags on User pages (the "Founder", "Admin", "Blocked", etc. tags that appear next to user's names in their masthead). It allows you to add tags and to rearrange and remove them as desired. You can also invent custom tags which you can award to users for whatever reason you deem appropriate.

This script was created to allow users to add/remove users/tags without having to wait for the JavaScript Review Tool to approve the change. All steps of adding this script bypass JSRT.

Installation

To import the script, add the following code to MediaWiki:ImportJS:

dev:ProfileTags.js

If there are already scripts loaded via MediaWiki:ImportJS, ensure the above is on a separate line.

Configuration

This script will remove all default tags for a user. If the default tags should be included, they will have to be specified in the tag configuration.

To change a user's tags, simply add them to MediaWiki:ProfileTags. The following will add two tags to Rappy 4187:

Rappy 4187|This is a test,This is a second test

Each user will need to be entered on a new line.

Here's an example with multiple users:

Rappy 4187|This is a test,This is a second test
User 1|Testing tag 1, Example tag 1
User 2|Testing tag 2, Example tag 2
User 3|Testing tag 3, Example tag 3
User 4|Testing tag 4, Example tag 4

Another thing to note is that 'tabs' are stripped, so you are able to make the code cleaner using tabs like so:

Rappy 4187	|This is a test,	This is a second test
User 1		|Testing tag 1,		Example tag 1
User 2		|Testing tag 2,		Example tag 2
User 3		|Testing tag 3,		Example tag 3
User 4		|Testing tag 4,		Example tag 4