User contributions for Halian
Jump to navigation
Jump to search
5 December 2023
- 00:0600:06, 5 December 2023 diff hist +5,992 N Module:Namespace detect Created page with "--[[ -------------------------------------------------------------------------------- -- -- -- NAMESPACE DETECT -- -- -- -- This module implements the {{namespace detect}} template in Lua, with a -- -- few improvements: all namespaces and all namespace aliases are..." current
- 00:0500:05, 5 December 2023 diff hist +1,753 N Module:Disambiguation Created page with "local p = {} local mRedirect = require('Module:Redirect') local disambiguationTemplates = mw.loadData('Module:Disambiguation/templates') local function capitalize(s) -- This function only works on ASCII strings. If your wiki has -- disambiguation templates that use Unicode strings, use the commented-out -- line instead. Enwiki uses ASCII string manipulation only here to improve -- performance. return s:sub(1, 1):upper() .. s:sub(2, -1) -- return mw.ustring.upper(m..." current
- 00:0500:05, 5 December 2023 diff hist +7,525 N Module:Pagetype Created page with "-------------------------------------------------------------------------------- -- -- -- PAGETYPE -- -- -- -- This is a meta-module intended to replace {{pagetype}} and similar -- -- templates. It automatically detects namespaces, and allows for..." current
- 00:0400:04, 5 December 2023 diff hist +22,532 N Module:Protected edit request/active Created page with "require('strict') local yesno, makeMessageBox -- passed in from Module:Protected edit request local makeToolbar = require('Module:Toolbar')._main local getPagetype = require('Module:Pagetype')._main local effectiveProtectionLevel = require('Module:Effective protection level')._main ---------------------------------------------------------------------- -- Helper functions ---------------------------------------------------------------------- local function makeWikilink..." current
- 00:0400:04, 5 December 2023 diff hist +3,159 N Module:Protected edit request Created page with "require('strict') local yesno = require('Module:Yesno') local makeMessageBox = require('Module:Message box').main local getArgs local activeBox -- lazily initialized if we get an active request ---------------------------------------------------------------------- -- Box class definition ---------------------------------------------------------------------- local box = {} box.__index = box function box.new(protectionType, args) local obj = {} obj.args = args setm..." current
- 00:0300:03, 5 December 2023 diff hist +183 N Template:Editprotected Created page with "<includeonly>{{#invoke:protected edit request|full}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>"
- 00:0300:03, 5 December 2023 diff hist +394 N Template:No redirect Created page with "{{safesubst:<noinclude/>#if: {{safesubst:<noinclude/>#invoke:Redirect|isRedirect|{{{1}}}}} | <span class="plainlinks">[{{safesubst:<noinclude/>fullurl:{{{1}}}|redirect=no}} {{{2|{{{1}}}}}}]</span> | {{safesubst:<noinclude/>#if:{{{2|}}}|[[:{{safesubst:<noinclude/>FULLPAGENAME:{{{1}}}}}|{{{2}}}]]|[[:{{safesubst:<noinclude/>FULLPAGENAME:{{{1}}}}}]]}} }}<noinclude> {{documentation}} </noinclude>"
4 December 2023
- 23:5823:58, 4 December 2023 diff hist +3,877 N Module:Lockbox Created page with "local export = {} -- XXX: OUTRAGEOUS ABUSE OF SCRIBUNTO API -- Generates a transclusion without incrementing the "expensive function" count local generate_transclusion do local mock_title = mw.title.new(mw.title.getCurrentTitle().id) local getContent = mock_title.getContent function generate_transclusion(title) local full_text = type(title) == 'table' and title.fullText or title rawset(mock_title, 'fullText', full_text) getContent(mock_title) end end local f..." current
- 23:5723:57, 4 December 2023 diff hist +3,189 N OS-Tan Collections Wiki:Cascade-protected items Created page with "{{mbox |type=protection |image=40px |text='''This page transcludes OS-Tan Collections Wiki:Cascade-protected items/content''', a page fully protected with the cascading option enabled. Items transcluded on that page are highly important templates or pages that require full protection to guard against vandalism. Most of them are also directly full-protected, but this page serves as a safeguard against security leaks and human er..."
- 23:5523:55, 4 December 2023 diff hist +69 N OSC:CPI/C Redirected page to OS-Tan Collections Wiki:Cascade-protected items/content current Tag: New redirect
- 23:5423:54, 4 December 2023 diff hist +673 N Module:Shortcut/styles.css Created page with "→{{pp-template}}: .module-shortcutboxplain { float: right; margin: 0 0 0 1em; border: 1px solid #aaa; background: #fff; padding: 0.3em 0.6em 0.2em 0.6em; text-align: center; font-size: 85%; } .module-shortcutboxleft { float: left; margin: 0 1em 0 0; } .module-shortcutlist { display: inline-block; border-bottom: 1px solid #aaa; margin-bottom: 0.2em; } .module-shortcutboxplain ul { font-weight: bold; } .module-shortcutanchordiv { position: relative;..."
- 23:5323:53, 4 December 2023 diff hist +1,240 N Module:Shortcut/config Created page with "-- This module holds configuration data for Module:Shortcut. return { -- The heading at the top of the shortcut box. It accepts the following parameter: -- $1 - the total number of shortcuts. (required) ['shortcut-heading'] = '{{PLURAL:Wikipedia:Shortcut|{{PLURAL:$1|Shortcut|Shortcuts}}|Shortcut|Shortcuts}}', -- The heading when |redirect=yes is given. It accepts the following parameter: -- $1 - the total number of shortcuts. (required) ['redirect-heading'] = '[[Wikipedia:Redirect|{{PLURAL..." current
- 23:5223:52, 4 December 2023 diff hist +4,336 N Module:Shortcut Created page with "-- This module implements {{shortcut}}. -- Set constants local CONFIG_MODULE = 'Module:Shortcut/config' -- Load required modules local checkType = require('libraryUtil').checkType local yesno = require('Module:Yesno') local p = {} local function message(msg, ...) return mw.message.newRawMessage(msg, ...):plain() end local function makeCategoryLink(cat) return string.format('%s:%s', mw.site.namespaces[14].name, cat) end function p._main(shortcuts, options, fra..."
- 23:5223:52, 4 December 2023 diff hist +169 N Template:Shortcut Created page with "<includeonly>{{#invoke:Shortcut|main}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>"
- 23:4723:47, 4 December 2023 diff hist +61 N OSC:CPI Redirected page to OS-Tan Collections Wiki:Cascade-protected items current Tag: New redirect
- 23:4523:45, 4 December 2023 diff hist +280 N Template:Plainlist Created page with "<templatestyles src="Plainlist/styles.css"/><div class="plainlist {{{class|}}}" {{#if:{{{style|}}}{{{indent|}}}|style="{{#if:{{{indent|}}}|margin-left: {{#expr:{{{indent}}}*1.6}}em;}} {{{style|}}}"}}>{{#if:{{{1|}}}| {{{1}}} </div>}}<noinclude></div> {{documentation}} </noinclude>"
- 23:4523:45, 4 December 2023 diff hist +218 N Template:Plainlist/styles.css Created page with "→{{pp-template|small=yes}}: .plainlist ol, .plainlist ul { line-height: inherit; list-style: none; margin: 0; padding: 0; →Reset Minerva default: } .plainlist ol li, .plainlist ul li { margin-bottom: 0; }"
- 23:4523:45, 4 December 2023 diff hist +1,092 N Module:Exponential search Created page with "-- This module provides a generic exponential search algorithm. requirestrict local checkType = require('libraryUtil').checkType local floor = math.floor local function midPoint(lower, upper) return floor(lower + (upper - lower) / 2) end local function search(testFunc, i, lower, upper) if testFunc(i) then if i + 1 == upper then return i end lower = i if upper then i = midPoint(lower, upper) else i = i * 2 end return search(testFunc, i, low..." current
- 23:4423:44, 4 December 2023 diff hist +15,281 N Module:TableTools Created page with "------------------------------------------------------------------------------------ -- TableTools -- -- -- -- This module includes a number of functions for dealing with Lua tables. -- -- It is a meta-module, meant to be called from other Lua modules, and should not -- -- be called directly from #invoke...." current
- 23:4323:43, 4 December 2023 diff hist +5,565 N Module:List Created page with "local libUtil = require('libraryUtil') local checkType = libUtil.checkType local mTableTools = require('Module:TableTools') local p = {} local listTypes = { ['bulleted'] = true, ['unbulleted'] = true, ['horizontal'] = true, ['ordered'] = true, ['horizontal_ordered'] = true } function p.makeListData(listType, args) -- Constructs a data table to be passed to p.renderList. local data = {} -- Classes and TemplateStyles data.classes = {} data.templatestyles = ''..." current
- 23:4123:41, 4 December 2023 diff hist +181 N Template:Horizontal list Created page with "{{<includeonly>safesubst:</includeonly>#invoke:list|horizontal}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>"
- 23:3223:32, 4 December 2023 diff hist +26,018 N Module:Protection banner Created page with "-- This module implements {{pp-meta}} and its daughter templates such as -- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}. -- Initialise necessary modules. require('strict') local makeFileLink = require('Module:File link')._main local effectiveProtectionLevel = require('Module:Effective protection level')._main local effectiveProtectionExpiry = require('Module:Effective protection expiry')._main local yesno = require('Module:Yesno') -- Lazily initialise modules and..." current
- 23:3123:31, 4 December 2023 diff hist +46,218 N Module:Protection banner/config Created page with "-- This module provides configuration data for Module:Protection banner. return { -------------------------------------------------------------------------------- -- -- BANNER DATA -- -------------------------------------------------------------------------------- --[[ -- Banner data consists of six fields: -- * text - the main protection text that appears at the top of protection -- banners. -- * explanation - the text that appear..." current
- 23:3123:31, 4 December 2023 diff hist +2,544 N Module:File link Created page with "-- This module provides a library for formatting file wikilinks. local yesno = require('Module:Yesno') local checkType = require('libraryUtil').checkType local p = {} function p._main(args) checkType('_main', 1, args, 'table') -- This is basically libraryUtil.checkTypeForNamedArg, but we are rolling our -- own function to get the right error level. local function checkArg(key, val, level) if type(val) ~= 'string' then error(string.format( "type error in..." current
- 23:3123:31, 4 December 2023 diff hist +3,438 N Module:Effective protection level Created page with "local p = {} -- Returns the permission required to perform a given action on a given title. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then local leve..." current
- 23:3123:31, 4 December 2023 diff hist +1,494 N Module:Effective protection expiry Created page with "local p = {} -- Returns the expiry of a restriction of an action on a given title, or unknown if it cannot be known. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'auto..." current
- 23:3123:31, 4 December 2023 diff hist +3,830 N Module:Submit an edit request Created page with "-- This module implements {{Submit an edit request}}. local CONFIG_MODULE = 'Module:Submit an edit request/config' -- Load necessary modules local mRedirect = require('Module:Redirect') local cfg = mw.loadData(CONFIG_MODULE) local effectiveProtectionLevel = require('Module:Effective protection level')._main local escape = require("Module:String")._escapePattern local lang = mw.language.getContentLanguage() local p = {} local validLevels = { semi = 'semi', extended..." current
- 23:3123:31, 4 December 2023 diff hist +3,295 N Module:Redirect Created page with "-- This module provides functions for getting the target of a redirect page. local p = {} -- Gets a mw.title object, using pcall to avoid generating script errors if we -- are over the expensive function count limit (among other possible causes). local function getTitle(...) local success, titleObj = pcall(mw.title.new, ...) if success then return titleObj else return nil end end -- Gets the name of a page that a redirect leads to, or nil if it isn't a -- redi..." current
- 23:3123:31, 4 December 2023 diff hist +18,034 N Module:String Created page with "--[[ This module is intended to provide access to basic string functions. Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace. Global options ignore_errors: If set to 'true' or 1, any error c..." current
- 23:3123:31, 4 December 2023 diff hist +4,575 N Module:Clickable button 2 Created page with "-- This module implements {{clickable button 2}}. local yesno = require('Module:Yesno') local p = {} local function renderTrackingCategories(args) if yesno(args.category) == false then return '' end -- we have no tracking categories currently but args.category should be -- supported into the future, so just return a string here for now return '' end local function makeLinkData(args) local data = {} -- Get the link and display values, -- and find whether..." current
- 23:2923:29, 4 December 2023 diff hist 0 m Module:Message box/tmbox.css Halian moved page Module:Module:Message box/tmbox.css to Module:Message box/tmbox.css without leaving a redirect
- 23:2923:29, 4 December 2023 diff hist 0 m Module:Message box/ombox.css Halian moved page Module:Module:Message box/ombox.css to Module:Message box/ombox.css without leaving a redirect
- 23:2923:29, 4 December 2023 diff hist 0 m Module:Message box/imbox.css Halian moved page Module:Module:Message box/imbox.css to Module:Message box/imbox.css without leaving a redirect
- 23:2823:28, 4 December 2023 diff hist 0 m Module:Message box/fmbox.css Halian moved page Module:Module:Message box/fmbox.css to Module:Message box/fmbox.css without leaving a redirect
- 23:2823:28, 4 December 2023 diff hist 0 m Module:Message box/cmbox.css Halian moved page Module:Module:Message box/cmbox.css to Module:Message box/cmbox.css without leaving a redirect
- 23:2823:28, 4 December 2023 diff hist 0 m Module:Message box/ambox.css Halian moved page Module:Module:Message box/ambox.css to Module:Message box/ambox.css without leaving a redirect
- 23:2623:26, 4 December 2023 diff hist +1,308 N Module:Message box/tmbox.css Created page with "→{{pp|small=y}}: .tmbox { margin: 4px 0; border-collapse: collapse; border: 1px solid #c0c090; →Default "notice" gray-brown: background-color: #f8eaba; box-sizing: border-box; } →For the "small=yes" option.: .tmbox.mbox-small { font-size: 88%; line-height: 1.25em; } .tmbox-speedy { border: 2px solid #b32424; →Red: background-color: #fee7e6; →Pink: } .tmbox-delete { border: 2px solid #b32424; →Red: } .tmbox-content { bord..."
- 23:2623:26, 4 December 2023 diff hist +1,361 N Module:Message box/ombox.css Created page with "→{{pp|small=y}}: .ombox { margin: 4px 0; border-collapse: collapse; border: 1px solid #a2a9b1; →Default "notice" gray: background-color: #f8f9fa; box-sizing: border-box; } →For the "small=yes" option.: .ombox.mbox-small { font-size: 88%; line-height: 1.25em; } .ombox-speedy { border: 2px solid #b32424; →Red: background-color: #fee7e6; →Pink: } .ombox-delete { border: 2px solid #b32424; →Red: } .ombox-content { border: 1p..."
- 23:2523:25, 4 December 2023 diff hist +1,514 N Module:Message box/imbox.css Created page with "→{{pp|small=y}}: .imbox { margin: 4px 0; border-collapse: collapse; border: 3px solid #36c; →Default "notice" blue: background-color: #fbfbfb; box-sizing: border-box; } →For imboxes inside imbox-text cells.: .imbox .mbox-text .imbox { margin: 0 -0.5em; →0.9 - 0.5 = 0.4em left/right.: →TODO: Still needed?: display: block; →Fix for webkit to force 100% width.: } .imbox-speedy { border: 3px solid #b32424; →Red: background-color..."
- 23:2523:25, 4 December 2023 diff hist +702 N Module:Message box/fmbox.css Created page with "→{{pp|small=y}}: .fmbox { clear: both; margin: 0.2em 0; width: 100%; border: 1px solid #a2a9b1; background-color: #f8f9fa; →Default "system" gray: box-sizing: border-box; } .fmbox-warning { border: 1px solid #bb7070; →Dark pink: background-color: #ffdbdb; →Pink: } .fmbox-editnotice { background-color: transparent; } .fmbox .mbox-text { border: none; →@noflip: padding: 0.25em 0.9em; width: 100%; } .fmbox .mbox-image { border: no..."
- 23:2323:23, 4 December 2023 diff hist +1,119 N Module:Message box/cmbox.css Created page with "→{{pp|small=y}}: .cmbox { margin: 3px 0; border-collapse: collapse; border: 1px solid #a2a9b1; background-color: #dfe8ff; →Default "notice" blue: box-sizing: border-box; } .cmbox-speedy { border: 4px solid #b32424; →Red: background-color: #ffdbdb; →Pink: } .cmbox-delete { background-color: #ffdbdb; →Pink: } .cmbox-content { background-color: #ffe7ce; →Orange: } .cmbox-style { background-color: #fff9db; →Yellow: ..."
- 23:2323:23, 4 December 2023 diff hist +2,230 N Module:Message box/ambox.css Created page with "→{{pp|small=y}}: .ambox { border: 1px solid #a2a9b1; →@noflip: border-left: 10px solid #36c; →Default "notice" blue: background-color: #fbfbfb; box-sizing: border-box; } →Single border between stacked boxes. Take into account base templatestyles, * user styles, and Template:Dated maintenance category. * remove link selector when T200206 is fixed: .ambox + link + .ambox, .ambox + link + style + .ambox, .ambox + link + link + .ambox, /* TODO: rais..."
- 23:2223:22, 4 December 2023 diff hist +803 N Module:Category handler/blacklist Created page with "-- This module contains the blacklist used by Module:Category handler. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested. return { '^Main Page$', -- don't categorise the main page. -- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. '^OS-Tan Collections Wiki:Cascade%-protected items%f[/\0]', '^User:UBX%f[/\0]',..." current
- 23:2223:22, 4 December 2023 diff hist +3,545 N Module:Namespace detect/config Created page with "-------------------------------------------------------------------------------- -- Namespace detect configuration data -- -- -- -- This module stores configuration data for Module:Namespace detect. Here -- -- you can localise the module to your wiki's language. -- --..." current
- 23:2123:21, 4 December 2023 diff hist +2,569 N Module:Namespace detect/data Created page with "-------------------------------------------------------------------------------- -- Namespace detect data -- -- This module holds data for Module:Namespace detect to be loaded per -- -- page, rather than per #invoke, for performance reasons. -- -------------------------------------------------------------------------------- local cfg = require('Module:Namespace detect/config') local function..." current
- 23:2123:21, 4 December 2023 diff hist +888 N Module:Category handler/shared Created page with "-- This module contains shared functions used by Module:Category handler -- and its submodules. local p = {} function p.matchesBlacklist(page, blacklist) for i, pattern in ipairs(blacklist) do local match = mw.ustring.match(page, pattern) if match then return true end end return false end function p.getParamMappings(useLoadData) local dataPage = 'Module:Namespace detect/data' if useLoadData then return mw.loadData(dataPage).mappings else return..." current
- 23:2123:21, 4 December 2023 diff hist +5,755 N Module:Category handler/config Created page with "-------------------------------------------------------------------------------- -- Module:Category handler configuration data -- -- Language-specific parameter names and values can be set here. -- -- For blacklist config, see Module:Category handler/blacklist. -- -------------------------------------------------------------------------------- local cfg = {} -- Don't edit this line. ----------------------------..." current
- 23:2023:20, 4 December 2023 diff hist +631 N Module:Category handler/data Created page with "-- This module assembles data to be passed to Module:Category handler using -- mw.loadData. This includes the configuration data and whether the current -- page matches the title blacklist. local data = require('Module:Category handler/config') local mShared = require('Module:Category handler/shared') local blacklist = require('Module:Category handler/blacklist') local title = mw.title.getCurrentTitle() data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(..." current
- 23:1923:19, 4 December 2023 diff hist +7,871 N Module:Category handler Created page with "-------------------------------------------------------------------------------- -- -- -- CATEGORY HANDLER -- -- -- -- This module implements the {{category handler}} template in Lua, -- -- with a few improvements: all namespaces and all namespace alia..." current
- 23:1923:19, 4 December 2023 diff hist +6,555 N Module:Message box/configuration Created page with "-------------------------------------------------------------------------------- -- Message box configuration -- -- -- -- This module contains configuration data for Module:Message box. -- -------------------------------------------------------------------------------- return { ambox = { types = { speedy = { class = 'ambox-spee..." current