User contributions for Admin
Jump to navigation
Jump to search
15 December 2024
- 18:5918:59, 15 December 2024 diff hist +148 N Template:Flag Created page with "{{country data {{{1|}}}|flag/core|name={{{name|{{{1|}}}}}}|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude>{{documentation}}</noinclude>" current
- 18:5818:58, 15 December 2024 diff hist +1,851 N Module:SDcat Created page with "--SDcat Module to check whether local short description matches that on Wikidata -- local p = {} ------------------------------------------------------------------------------- --[[ setCat has the qid of a Wikidata entity passed as |qid= (it defaults to the associated qid of the current article if omitted) and the local short description passed as |sd= It returns a category if there is an associated Wikidata entity. It returns one of the following tracking categor..." current
- 18:5718:57, 15 December 2024 diff hist +94 N Template:SDcat Created page with "<includeonly>{{#invoke:SDcat |setCat}}</includeonly><noinclude> {{documentation}} </noinclude>" current
- 18:5518:55, 15 December 2024 diff hist +2,390 MediaWiki:Common.css No edit summary
- 18:5418:54, 15 December 2024 diff hist +21,066 N Module:Infobox3cols Created page with "local check_for_unknown_parameters = require("Module:Check for unknown parameters")._check local p = {} local args = {} local origArgs = {} local root local lists = { plainlist_t = { patterns = { '^plainlist$', '%splainlist$', '^plainlist%s', '%splainlist%s' }, found = false, styles = 'Plainlist/styles.css' }, hlist_t = { patterns = { '^hlist$', '%shlist$', '^hlist%s', '%shlist%s' }, found = false, styles = 'Hlist/styles.css'..." current
- 18:5218:52, 15 December 2024 diff hist −2,164 Template:Infobox military unit No edit summary current
- 18:5118:51, 15 December 2024 diff hist +819 N Module:Data Created page with "local mt = {} function mt.__index(t, k) return function(frame) local data = mw.loadData(k) local i = 1 for _,v in ipairs(frame.args) do local ty = type(data) if ty ~= 'table' then local args = {} for j = 1, i - 1 do args[j] = frame.args[j] end if frame.args.softfail then return '<span class="error">Category:Pages with failed Module:Data lookupsError: Tried to read index "' .. mw.text.nowiki(v) .. '" of mw.loadData("' .. mw.text..." current
- 18:5018:50, 15 December 2024 diff hist +2,612 N Module:Pagetype/softredirect Created page with "-- This page contains a table of all soft redirect templates and their -- redirects. Templates names are capitalized, and the Template: prefix is -- removed. Templates are grouped with the main template first, followed by -- its redirects. return { ["R from category navigation"] = true, ["Redirect from category navigation"] = true, ["Category redirect"] = true, ["Cat move"] = true, ["Cat red"] = true, ["Cat redir"] = true, ["Cat redirect"] = true, ["Category mo..." current
- 18:4918:49, 15 December 2024 diff hist +17,882 N Module:Wikitext Parsing Created page with "require("strict") --Helper functions local function startswith(text, subtext) return string.sub(text, 1, #subtext) == subtext end local function endswith(text, subtext) return string.sub(text, -#subtext, -1) == subtext end local function allcases(s) return s:gsub("%a", function(c) return "["..c:upper()..c:lower().."]" end) end local trimcache = {} local whitespace = {[" "]=1, ["\n"]=1, ["\t"]=1, ["\r"]=1} local function cheaptrim(str) --mw.text.trim is surprising..." current
- 18:4618:46, 15 December 2024 diff hist +422 N Template:Main other Created page with "{{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:0}} | main | other }} }} | main = {{{1|}}} | other | #default = {{{2|}}} }}<noinclude> {{documentation}} <!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! --> </noinclude>" current
- 18:4518:45, 15 December 2024 diff hist +130 N Template:First word Created page with "{{<includeonly>safesubst:</includeonly>#invoke:String|match|s={{{1}}}|^[^{{{sep|%s}}}]*}}<noinclude> {{documentation}}</noinclude>" current
- 18:4518:45, 15 December 2024 diff hist +827 N Template:Short description/lowercasecheck Created page with "{{#ifeq:<!--test first character for lower-case letter-->{{#invoke:string|find|1={{{1|}}}|2=^%l|plain=false}}|1 |<!-- first character is a lower case letter; test against whitelist -->{{#switch: {{First word|{{{1|}}}}}<!--begin whitelist--> |c. <!--for circa--> |gTLD |iMac |iOS |iOS, |iPad |iPhone |iTunes |macOS |none |pH |pH-dependent=<!-- end whitelist; short description starts with an allowed lower-case string; whitelist matched; do nothing --> |#default=<!-- apply c..." current
- 18:4518:45, 15 December 2024 diff hist +4,216 N Module:Pagetype/config Created page with "-------------------------------------------------------------------------------- -- Module:Pagetype configuration data -- -- This page holds localisation and configuration data for Module:Pagetype. -- -------------------------------------------------------------------------------- local cfg = {} -- Don't edit this line. -------------------------------------------------------------------------------- -- St..." current
- 18:4418:44, 15 December 2024 diff hist +8,227 N Module:Pagetype Created page with "-------------------------------------------------------------------------------- -- -- -- This meta-module which automatically detects namespaces, and allows -- -- for a great deal of customisation. It can easily be ported to other -- -- wikis by changing the values in the Module:Pagetype/config. -- --..." current
- 18:4418:44, 15 December 2024 diff hist +179 N Template:Pagetype Created page with "{{<includeonly>safesubst:</includeonly>#invoke:pagetype|main}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" current
- 18:4318:43, 15 December 2024 diff hist +1,348 N Template:Short description Created page with "{{#ifeq:{{lc:{{{1|}}}}}|none|<nowiki /><!--Prevents whitespace issues when used with adjacent newlines-->|<div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">{{{1|}}}{{SHORTDESC:{{{1|}}}|{{{2|}}}}}</div>}}<includeonly>{{#ifeq:{{{pagetype}}}|Disambiguation pages||{{#ifeq:{{pagetype |defaultns = all |user=exclude}}|exclude||{{#ifeq:{{#switch: {{NAMESPACENUMBER}} | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 100 | 101 | 118 | 11..." current
- 18:4318:43, 15 December 2024 diff hist +2,196 N Module:Infobox/styles.css Created page with "→{{pp|small=y}}: →* This TemplateStyles sheet deliberately does NOT include the full set of * infobox styles. We are still working to migrate all of the manual * infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]] * DO NOT ADD THEM HERE: →* not strictly certain these styles are necessary since the modules now * exclusively output infobox-subbox or infobox, not both * just replicating the module faithfully: .infobox-subbox { padding: 0; borde..." current
- 18:4218:42, 15 December 2024 diff hist +2,922 N Template:Hlist/styles.css Created page with "→{{pp-protected|reason=match parent|small=yes}}: →* hlist styles are defined in core and Minerva and differ in Minerva. The * current definitions here (2023-01-01) are sufficient to override Minerva * without use of the hlist-separated class. The most problematic styles were * related to margin, padding, and the bullet. Check files listed at * [[MediaWiki talk:Common.css/to do#hlist-separated]]: /* * TODO: When the majority of readership supports it (or s..." current
- 18:4218:42, 15 December 2024 diff hist +5,643 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
- 18:4118:41, 15 December 2024 diff hist +181 N Template:Hlist Created page with "{{<includeonly>safesubst:</includeonly>#invoke:list|horizontal}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" current
- 18:4118:41, 15 December 2024 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; }" current
- 18:4018:40, 15 December 2024 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>" current
- 18:3918:39, 15 December 2024 diff hist +4,725 Module:Infobox No edit summary current Tag: Manual revert
- 18:3818:38, 15 December 2024 diff hist +745 N Module:Yesno Created page with "-- 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 =..." current
- 18:3818:38, 15 December 2024 diff hist +329 N Module:If preview/styles.css Created page with "→{{pp|small=yes}}: .preview-warning { font-style: italic; →@noflip: padding-left: 1.6em; margin-bottom: 0.5em; color: red; } →The templatestyles element inserts a link element before hatnotes. * TODO: Remove link if/when WMF resolves T200206: .preview-warning + link + .preview-warning { margin-top: -0.5em; }" current
- 18:3718:37, 15 December 2024 diff hist +842 N Module:If preview/configuration Created page with "--We perform the actual check for whether this is a preview here since preprocessing is relatively expensive. local frame = mw.getCurrentFrame() local function is_preview() local revision_id = frame:preprocess('{{REVISIONID}}') -- {{REVISIONID}} is usually the empty string when previewed. -- I don't know why we're checking for nil but hey, maybe someday things -- would have broken return revision_id == nil or revision_id == '' end local function templatestyl..." current
- 18:3718:37, 15 December 2024 diff hist +1,973 N Module:If preview Created page with "local p = {} local getArgs = require("Module:Arguments").getArgs local yn = require("Module:Yesno") local cfg = mw.loadData('Module:If preview/configuration') --main This function returns either the first argument or second argument passed to this module, depending on whether the page is being previewed. function p.main(frame) local args = getArgs(frame) if cfg.preview then return args[1] or '' else return args[2] or '' end end --[[ pmain This function..." current
- 18:3618:36, 15 December 2024 diff hist +3,339 N Module:Check for unknown parameters Created page with "-- This module may be used to compare the arguments passed to the parent -- with a list of arguments, returning a specified result if an argument is -- not on the list require ('strict'); local p = {} local function trim(s) return s:match('^%s*(.-)%s*$') end local function isnotempty(s) return s and s:match('%S') end local function clean(text) -- Return text cleaned for display and truncated if too long. -- Strip markers are replaced with dummy text representing..." current
- 18:3618:36, 15 December 2024 diff hist +1,839 Template:Infobox military unit No edit summary
- 18:3218:32, 15 December 2024 diff hist +15,731 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 e..." current
- 18:3218:32, 15 December 2024 diff hist +178 N Template:Remove first word Created page with "{{<includeonly>safesubst:</includeonly>#invoke:String|replace|source={{{1}}}|pattern=^[^{{{sep|%s}}}]*{{{sep|%s}}}*|replace=|plain=false}}<noinclude>{{Documentation}}</noinclude>" current
- 18:3218:32, 15 December 2024 diff hist +184 N Template:Str left Created page with "<includeonly>{{safesubst:padleft:|{{{2|1}}}|{{{1}}}}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" current
- 18:2918:29, 15 December 2024 diff hist +234 N Module:If empty Created page with "local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) for k,v in ipairs(args) do if v ~= '' then return v end end end return p" current
- 18:2918:29, 15 December 2024 diff hist +102 N Template:If empty Created page with "{{<includeonly>safesubst:</includeonly>#invoke:If empty|main}}<noinclude>{{Documentation}}</noinclude>" current
- 18:2818:28, 15 December 2024 diff hist +1,298 N Module:WPMILHIST Infobox style Created page with "local retval = { main_box_raw_auto_width = 'border-spacing:2px;', header_raw = 'background-color:#C3D6EF;color:inherit;text-align:center;vertical-align:middle;font-size:110%;', sub_header_raw = 'background-color:#DCDCDC;color:inherit;text-align:center;vertical-align:middle;', header_color = 'background-color:#C3D6EF;color:inherit;', nav_box = 'margin:0;float:right;clear:right;width:25.5em;margin-bottom:0.5em;margin-left:1em;', nav_box_child = 'margin:0;float:right;..."
- 18:2818:28, 15 December 2024 diff hist +276 N Template:WPMILHIST Infobox style Created page with "<includeonly>{{#switch:{{{1|}}} |main_box=class="{{#if:{{{2|}}}|infobox {{{2}}}|infobox}}" style="{{#invoke:Data|Module:WPMILHIST Infobox style|main_box_raw}}" |{{#invoke:Data|Module:WPMILHIST Infobox style|{{{1|}}}}} }}</includeonly><noinclude> {{documentation}} </noinclude>" current
- 18:2718:27, 15 December 2024 diff hist +85 Template:Template other No edit summary current Tag: Manual revert
- 18:2618:26, 15 December 2024 diff hist −85 Template:Template other No edit summary Tag: Reverted
- 18:2618:26, 15 December 2024 diff hist +435 N Template:Template other Created page with "{{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:Template}} | template | other }} }} | template = {{{1|}}} | other | #default = {{{2|}}} }}<!--End switch--><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude>"
- 18:2518:25, 15 December 2024 diff hist +10,054 N Module:Arguments Created page with "-- This module provides easy processing of arguments passed to Scribunto from -- #invoke. It is intended for use by other Lua modules, and should not be -- called from #invoke directly. local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local arguments = {} -- Generate four different tidyVal functions, so that we don't have to check the -- options every time we call it. local function tidyValDefault(key, val) if type(val) == 'string'..." current
- 18:2518:25, 15 December 2024 diff hist +8,030 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
- 18:2418:24, 15 December 2024 diff hist −2,205 Module:Navbar No edit summary current
- 18:2318:23, 15 December 2024 diff hist +5,296 N Module:Navbar Created page with "local p = {} local cfg = mw.loadData('Module:Navbar/configuration') local function get_title_arg(is_collapsible, template) local title_arg = 1 if is_collapsible then title_arg = 2 end if template then title_arg = 'template' end return title_arg end local function choose_links(template, args) -- The show table indicates the default displayed items. -- view, talk, edit, hist, move, watch -- TODO: Move to configuration. local show = {true, true, true, false, false..."
- 18:2318:23, 15 December 2024 diff hist +9,894 N Module:InfoboxImage Created page with "-- Inputs: -- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link -- page - page to display for multipage images (DjVu) -- size - size to display the image -- maxsize - maximum size for image -- sizedefault - default size to display the image if size param is blank -- alt - alt text for image -- title - title text for image -- border - set to yes if border -- center - set to yes, if th..." current
- 18:2218:22, 15 December 2024 diff hist −4,725 Module:Infobox No edit summary Tag: Reverted
- 18:1618:16, 15 December 2024 diff hist +340 N Template:Infobox Created page with "{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|{{remove first word|{{SUBPAGENAME}}}}}}}}|}}</includeonly><noinclude> {{documentation}} <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> </noinclude>" current
- 18:1618:16, 15 December 2024 diff hist +7,457 N Template:Infobox military unit Created page with "<includeonly>{{Infobox | bodystyle = {{WPMILHIST Infobox style|main_box_raw}} | abovestyle = {{WPMILHIST Infobox style|header_raw}} | subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}} | above = {{{unit_name|{{PAGENAMEBASE}}}}} | subheader = {{{native_name|}}} | imagestyle = {{WPMILHIST Infobox style|image_box_raw}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|u..."
- 18:0818:08, 15 December 2024 diff hist +77 N Template:Wpl Created page with "[[Wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude>{{documentation}}</noinclude>" current
- 18:0718:07, 15 December 2024 diff hist +531 6th Queen Elizabeth's Own Gurkha Rifles No edit summary Tag: Visual edit: Switched
- 18:0018:00, 15 December 2024 diff hist 0 File:ORBAT UK 1st Bn 6th Gurkhas.jpg Admin uploaded a new version of File:ORBAT UK 1st Bn 6th Gurkhas.jpg current