Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User contributions for Adam

A user with 4,852 edits. Account created on 24 September 2024.
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

10 October 2024

  • 16:0016:00, 10 October 2024 diff hist +90 N Template:InfoboxNeueCreated page with "<includeonly>{{#invoke:InfoboxNeue|fromArgs}}</includeonly><noinclude>{{/doc}}</noinclude>" current
  • 15:5915:59, 10 October 2024 diff hist +14,560 N Module:InfoboxNeue/styles.cssCreated page with ".infobox { margin-bottom: var(--space-md); width: 100%; max-width: 400px; border-radius: var(--border-radius--medium); background-color: var(--color-surface-2); font-size: var(--font-size-small); line-height: var(--line-height-sm); } .infobox.mw-collapsed { background-color: transparent; box-shadow: inset 0 0 0 1px var(--border-color-base); } .infobox__content { position: relative; } .infobox__image { position: relative; margin-bottom: -2rem; } .infobox__..."
  • 15:5615:56, 10 October 2024 diff hist +5,491 N Module:InfoboxNeue/docCreated page with "{{Documentation|scwShared=true}} This module is used by Lua modules to build infobox. == Components == {{#invoke:InfoboxNeue/example|makeComponentsExample}} === Image === <syntaxhighlight lang="lua"> infobox:renderImage( 'Pico at New Babbage 1 1.jpg' ) </syntaxhighlight> === Indicator === {| class="wikitable" ! Parameter !! Description !! Type !! Status |- | <code>data</code> || Data of the indicator || string || '''required''' |- | <code>desc</code> || De..."
  • 15:5615:56, 10 October 2024 diff hist +18,620 N Module:InfoboxNeueCreated page with "local InfoboxNeue = {} local metatable = {} local methodtable = {} local libraryUtil = require( 'libraryUtil' ) local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti local i18n = require( 'Module:i18n' ):new() metatable.__index = methodtable metatable.__tostring = function ( self ) return tostring( self:renderInfobox() ) end --- Wrapper function for Module:i18n.translate --- --- @param key string The translation key --- @return..."
  • 15:0515:05, 10 October 2024 diff hist −243 Main PageNo edit summary Tag: Manual revert
  • 15:0415:04, 10 October 2024 diff hist +243 Main PageNo edit summary Tag: Reverted
  • 14:4414:44, 10 October 2024 diff hist +32 N Module:Common/Api/docCreated page with "{{Documentation|scwShared=true}}" current
  • 14:4314:43, 10 October 2024 diff hist +1,875 N Module:Common/ApiCreated page with "local common = {} --- Checks if Api Request was successful and if the Response is valid --- @param response table --- @param errorOnData boolean --- @param errorOnData boolean --- @return boolean function common.checkResponseStructure( response, errorOnStatus, errorOnData ) if response[ 'status_code' ] ~= nil and response[ 'status_code' ] ~= 200 then if errorOnStatus == nil or errorOnStatus == true then error( 'API request returns the error code..." current
  • 14:4214:42, 10 October 2024 diff hist +17 N Module:Pluralize/docCreated page with "{{Documentation}}" current
  • 14:4214:42, 10 October 2024 diff hist +1,780 N Module:PluralizeCreated page with "local p = {} -- Pluralize a word based on local dictionary or rules. -- To use this directly in Lua, use common.pluralize instead function p.pluralize( frame ) local base = frame.args[ 1 ] local return_val local base_len = string.len( base ) local base_end = string.sub( base, -1 ) local base_last2 = string.sub( base, -2 ) -- dictionary first - irregular plurals if (string.lower( base ) == 'nebula') then return_val = string.sub( base,..." current
  • 14:4114:41, 10 October 2024 diff hist +32 N Module:Common/docCreated page with "{{Documentation|scwShared=true}}" current
  • 14:4114:41, 10 October 2024 diff hist +5,610 N Module:CommonCreated page with "local common = {} --- Convert an input to number ---@param num string|integer Input ---@param onFail string|integer Output if conversion fails ---@param base integer Base for tonumber, defaults to 10 ---@return number function common.toNumber( num, onFail, base ) base = base or 10 if num == nil then return onFail end local numCopy = num if type( num ) == 'string' then numCopy = num:gsub( ',', '.' ) end numCopy = tonumber( numCopy..." current
  • 14:4114:41, 10 October 2024 diff hist +32 N Module:Common/SMW/docCreated page with "{{Documentation|scwShared=true}}" current
  • 14:4014:40, 10 October 2024 diff hist +13,438 N Module:Common/SMWCreated page with "local commonSMW = {} local common = require( 'Module:Common' ) local libraryUtil = require( 'libraryUtil' ) local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti --- Formats a value to be used by smw.set --- --- @param datum table An entry from data.json --- @param val any The value to be formatted --- @param moduleConfig table Optional, only used for multilingual text (phasing out) --- @param lang table Content language, uses page l..." current
  • 14:3714:37, 10 October 2024 diff hist +271 N Template:Infobox/docCreated page with "{{Documentation|fromWikipedia=true}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> Please refer to {{t|Infobox}} on Wikipedia for more details <noinclude></noinclude> <includeonly> <!-- Template catergories go here --> Category:Infobox templates </includeonly>" current
  • 14:3714:37, 10 October 2024 diff hist +271 N Template:InfoboxCreated page with "{{Documentation|fromWikipedia=true}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> Please refer to {{t|Infobox}} on Wikipedia for more details <noinclude></noinclude> <includeonly> <!-- Template catergories go here --> Category:Infobox templates </includeonly>" current
  • 14:3514:35, 10 October 2024 diff hist +168 N Module:Infobox/docCreated page with "{{Documentation|fromWikipedia=true}} '''Module:Infobox''' is a module that implements the {{tl|Infobox}} template. Please see the template page for usage instructions." current
  • 14:3514:35, 10 October 2024 diff hist +16,087 N Module:InfoboxCreated page with "-- -- This module implements {{Infobox}} -- local p = {} -- local navbar = require('Module:Navbar')._navbar local args = {} local origArgs local root local function notempty( s ) return s and s:match( '%S' ) end local function fixChildBoxes(sval, tt) if notempty(sval) then local marker = '<span class=special_infobox_marker>' local s = sval s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker) i..." current

9 October 2024

6 October 2024

(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)
Cookies help us deliver our services. By using our services, you agree to our use of cookies. We only use cookie to make the site function and save your preferences, nothing else.