Jump to content

Wikipedia:WikiProject User scripts/Scripts/Get user name

From Wikipedia, the free encyclopedia
/*<pre>*//*This script gets a username from the current pageExample: On [[User:Digitalme/getusername.js]], getUserName() would return Digitalme*/functiongetUserName(){returnmw.config.get('wgRelevantUserName');}/*</pre>[[Category:Wikipedia scripts]]*/
close