Rights that the user has (user_rights ) | [
0 => 'abusefilter-log',
1 => 'abusefilter-log-detail',
2 => 'abusefilter-log-private',
3 => 'abusefilter-view',
4 => 'abusefilter-view-private',
5 => 'spamblacklistlog',
6 => 'autoconfirmed',
7 => 'edit',
8 => 'editcontentmodel',
9 => 'editeditorprotected',
10 => 'editextendedsemiprotected',
11 => 'editinterface',
12 => 'editprotected',
13 => 'editsemiprotected',
14 => 'editsitecss',
15 => 'editsitejs',
16 => 'editsitejson',
17 => 'editusercss',
18 => 'edituserjs',
19 => 'extendedconfirmed',
20 => 'oathauth-enable',
21 => 'protect',
22 => 'suppressredirect',
23 => 'tboverride',
24 => 'templateeditor',
25 => 'abusefilter-hidden-log',
26 => 'abusefilter-modify',
27 => 'abusefilter-modify-restricted',
28 => 'abusefilter-privatedetails-log',
29 => 'abusefilter-revert',
30 => 'apihighlimits',
31 => 'autopatrol',
32 => 'autoreviewrestore',
33 => 'bigdelete',
34 => 'block',
35 => 'blockemail',
36 => 'browsearchive',
37 => 'centralauth-merge',
38 => 'centralnotice-admin',
39 => 'checkuser-log',
40 => 'createaccount',
41 => 'createpage',
42 => 'createtalk',
43 => 'delete',
44 => 'deletechangetags',
45 => 'deletedhistory',
46 => 'deletedtext',
47 => 'deletelogentry',
48 => 'deleterevision',
49 => 'editmyoptions',
50 => 'edituserjson',
51 => 'flow-create-board',
52 => 'flow-delete',
53 => 'flow-edit-post',
54 => 'flow-hide',
55 => 'flow-suppress',
56 => 'globalblock-exempt',
57 => 'globalblock-whitelist',
58 => 'gwtoolset',
59 => 'hideuser',
60 => 'import',
61 => 'importupload',
62 => 'ipblock-exempt',
63 => 'managechangetags',
64 => 'markbotedits',
65 => 'massmessage',
66 => 'mergehistory',
67 => 'move',
68 => 'move-categorypages',
69 => 'move-rootuserpages',
70 => 'move-subpages',
71 => 'movefile',
72 => 'movestable',
73 => 'mwoauthmanageconsumer',
74 => 'mwoauthsuppress',
75 => 'mwoauthviewprivate',
76 => 'mwoauthviewsuppressed',
77 => 'newsletter-create',
78 => 'newsletter-delete',
79 => 'newsletter-manage',
80 => 'newsletter-restore',
81 => 'noratelimit',
82 => 'nuke',
83 => 'oathauth-view-log',
84 => 'override-antispoof',
85 => 'pagetranslation',
86 => 'patrol',
87 => 'patrolmarks',
88 => 'purge',
89 => 'renameuser',
90 => 'rollback',
91 => 'skipcaptcha',
92 => 'suppressionlog',
93 => 'tboverride-account',
94 => 'titleblacklistlog',
95 => 'torunblocked',
96 => 'transcode-status',
97 => 'translate-import',
98 => 'translate-manage',
99 => 'translate-messagereview',
100 => 'unblockself',
101 => 'undelete',
102 => 'unwatchedpages',
103 => 'upload',
104 => 'viewsuppressed',
105 => 'changetags',
106 => 'abusefilter-privatedetails',
107 => 'checkuser',
108 => 'reupload',
109 => 'reupload-shared',
110 => 'autoreview',
111 => 'stablesettings',
112 => 'transcode-reset',
113 => 'urlshortener-create-url',
114 => 'review',
115 => 'read',
116 => 'writeapi',
117 => 'viewmywatchlist',
118 => 'editmywatchlist',
119 => 'viewmyprivateinfo',
120 => 'editmyprivateinfo',
121 => 'vipsscaler-test',
122 => 'collectionsaveasuserpage',
123 => 'reupload-own',
124 => 'minoredit',
125 => 'editmyusercss',
126 => 'editmyuserjson',
127 => 'editmyuserjs',
128 => 'sendemail',
129 => 'applychangetags',
130 => 'mwoauthmanagemygrants',
131 => 'collectionsaveascommunitypage',
132 => 'createpagemainns'
] |
Old page wikitext, before the edit (old_wikitext ) | '-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.
return function (val, default)
-- If your wiki uses non-ascii characters for any of "yes", "no", etc., you
-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
-- following line.
val = type(val) == 'string' and val:lower() or val
if val == nil then
return nil
elseif val == true
or val == 'yes'
or val == 'y'
or val == 'true'
or val == 't'
or tonumber(val) == 1
then
return true
elseif val == false
or val == 'no'
or val == 'n'
or val == 'false'
or val == 'f'
or tonumber(val) == 0
then
return false
else
return default
end
end' |
New page wikitext, after the edit (new_wikitext ) | '-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.
return function (val, default)
-- If your wiki uses non-ascii characters for any of "yes", "no", etc., you
-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
-- following line.
val = type(val) == 'string' and val:lower() or val
if val == nil then
return nil
elseif val == true
or val == 'yes'
or val == 'y'
or val == 'true'
or val == 't'
or val == 'on'
or tonumber(val) == 1
then
return true
elseif val == false
or val == 'no'
or val == 'n'
or val == 'false'
or val == 'f'
or val == 'off'
or tonumber(val) == 0
then
return false
else
return default
end
end' |