Jump to content

Module:ParameterCount: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 April 2025

  • curprev 21:0221:02, 6 April 2025 Thehighwayman talk contribs m 2,509 bytes 0 Protected "Module:ParameterCount" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
  • curprev 21:0221:02, 6 April 2025 Thehighwayman talk contribs 2,509 bytes +2,509 Created page with "-- This module produces a count of all the arguments passed to it. local yesno = require('Module:Yesno') -- Trim a string local function trim(s) return s:match('^%s*(.-)%s*$') end -- Test whether a string is blank local function isBlank(s) return not s:find('%S') end -- Tests whether a string is a valid positional key, and if so, returns it. If -- the key is invalid, this returns nil. local function isPositionalKey(s) s = trim(s) if s:find('^[1-9][0-9]*$') then..."