Page MenuHomePhabricator
Feed Advanced Search

Jun 11 2018

Gerrit Code Review <gerrit@wikimedia.org> committed rEDTBf9406e14afe0: Update patch set 1 (authored by Jackmcbarn).
Update patch set 1
Jun 11 2018, 2:16 PM

Jun 9 2018

Gerrit Code Review <gerrit@wikimedia.org> committed rEDPTd70caaa96971: Update patch set 2 (authored by Jackmcbarn).
Update patch set 2
Jun 9 2018, 11:31 PM
Gerrit Code Review <gerrit@wikimedia.org> committed rEDPT03f0f2d01b8c: Update patch set 1 (authored by Jackmcbarn).
Update patch set 1
Jun 9 2018, 11:31 PM
Gerrit Code Review <gerrit@wikimedia.org> committed rEDPT25fb0c60258a: Update patch set 1 (authored by Jackmcbarn).
Update patch set 1
Jun 9 2018, 11:31 PM

Mar 25 2018

revi awarded T72922: Add a dropdown for the reason when deleting Flow posts a The World Burns token.
Mar 25 2018, 1:45 PM · Growth-Team, Design, Collaboration-Team-Triage, StructuredDiscussions

Oct 12 2017

Jackmcbarn awarded T49799: Scribunto should allow coroutines in Lua a Like token.
Oct 12 2017, 3:47 PM · MediaWiki-extensions-Scribunto

Feb 21 2017

Jackmcbarn added a comment to T68051: Implement Lua alternative to {{int:Lang}} / wgUserLanguage.

What you're saying is that we should only display Wikimedia Commons in English.

Feb 21 2017, 6:32 PM · MediaWiki-Internationalization, Wikidata, MediaWiki-extensions-Scribunto

Feb 19 2017

Jackmcbarn added a comment to T68051: Implement Lua alternative to {{int:Lang}} / wgUserLanguage.

IMO, it was a bad idea for {{int:}} to ever work on user language instead of on content/page/site language. I don't think we should extend that mistake.

Feb 19 2017, 4:53 PM · MediaWiki-Internationalization, Wikidata, MediaWiki-extensions-Scribunto

Feb 6 2017

Jackmcbarn removed a project from T141395: AceEditor in with RTL interface - text selection is broken: MediaWiki-extensions-Scribunto.
Feb 6 2017, 9:51 PM · Patch-For-Review, User-Ryasmeen, Wikimedia-Israel-Hackers, VisualEditor, RTL, I18n

Feb 5 2017

Jackmcbarn merged T157185: Bug or feature? A \n is automatically inserted before returned string if it starts with a colon into T14974: The newline added to a template, magic word, variable, or parser function that returns line-start wikicode formatting (*#:; {|) causes unexpected parsing.
Feb 5 2017, 3:20 AM · Epic, MediaWiki-Parser
Jackmcbarn merged task T157185: Bug or feature? A \n is automatically inserted before returned string if it starts with a colon into T14974: The newline added to a template, magic word, variable, or parser function that returns line-start wikicode formatting (*#:; {|) causes unexpected parsing.
Feb 5 2017, 3:19 AM · MediaWiki-extensions-Scribunto
Jackmcbarn merged T157148: Allow querying MediaWiki's Web API in Scribunto into T78171: Make a subset of API query modules available to the Lua scripting environment.
Feb 5 2017, 3:17 AM · MediaWiki-extensions-Scribunto
Jackmcbarn merged task T157148: Allow querying MediaWiki's Web API in Scribunto into T78171: Make a subset of API query modules available to the Lua scripting environment.
Feb 5 2017, 3:17 AM · MediaWiki-extensions-Scribunto

Feb 2 2017

Jackmcbarn closed T155898: Preview change from external local editors as Invalid.

I understand what @Rical is saying. @Anomie is right that MediaWiki already does everything it has to for it to be feasible. All of the rest of the work has to be done on JEdit's side, and as such, this isn't our issue.

Feb 2 2017, 4:07 AM · Developer-Wishlist (2017)

Jan 10 2017

Jackmcbarn added a comment to T154769: When "Erreur Lua : attempt to call a string value", where?.

But I continue to ask the same description for all runtime errors in modules : module name, line, function and details.

That already all exists. You get it when an error makes it back to the console or wikitext without (x)pcall catching it.

Jan 10 2017, 3:14 AM · MediaWiki-extensions-Scribunto

Jan 7 2017

Jackmcbarn added a comment to T154769: When "Erreur Lua : attempt to call a string value", where?.

@Rical A cursory look at that module reveals that you're using "select" as a variable name in it. That's a bad idea, since it's the name of a built-in global function. It wouldn't surprise me if that were the root of the problem.

Jan 7 2017, 3:31 AM · MediaWiki-extensions-Scribunto

Jan 1 2017

Jackmcbarn added a comment to T154346: Provide "wikitext" means of accessing arbitrary wiki page's default category sort key.

Do you dislike the {{#ifexist:Page name}} ParserFunction parser function?

No, since the output of the parser can't change whether or not a page exists. Basically, I don't like things that could cause paradoxes if called on themselves, or on other pages in a loop. (See also my response to T71441).

Jan 1 2017, 5:12 AM · good first bug, ParserFunctions, MediaWiki-Parser, MediaWiki-extensions-Scribunto, MediaWiki-General-or-Unknown
Jackmcbarn added a comment to T154346: Provide "wikitext" means of accessing arbitrary wiki page's default category sort key.

I dislike the idea of exposing through the parser any properties that can be set via the parser.

Jan 1 2017, 1:31 AM · good first bug, ParserFunctions, MediaWiki-Parser, MediaWiki-extensions-Scribunto, MediaWiki-General-or-Unknown
Jackmcbarn awarded T154346: Provide "wikitext" means of accessing arbitrary wiki page's default category sort key a Dislike token.
Jan 1 2017, 1:30 AM · good first bug, ParserFunctions, MediaWiki-Parser, MediaWiki-extensions-Scribunto, MediaWiki-General-or-Unknown

Nov 2 2016

Jackmcbarn added a comment to T149792: Exclude sysops from triggering the SpamBlacklist.

Instead of splitting discussion, if you still think this should happen, please reopen the old issue.

Nov 2 2016, 9:41 PM · SpamBlacklist
Jackmcbarn merged task T149792: Exclude sysops from triggering the SpamBlacklist into T36928: Create a user right that allows ignoring the spam blacklist.
Nov 2 2016, 9:41 PM · SpamBlacklist
Jackmcbarn merged T149792: Exclude sysops from triggering the SpamBlacklist into T36928: Create a user right that allows ignoring the spam blacklist.
Nov 2 2016, 9:41 PM · SpamBlacklist

Nov 1 2016

Jackmcbarn added a comment to T71441: Feature request: add detection for disambiguation pages to Scribunto.

I still don't really like the idea. When is this even useful? (And my point wasn't that it's not possible at all, but that it will necessarily give the wrong answer sometimes.)

Nov 1 2016, 12:09 AM · Patch-For-Review, MediaWiki-extensions-Disambiguator, MediaWiki-extensions-Scribunto
Jackmcbarn awarded T71441: Feature request: add detection for disambiguation pages to Scribunto a Dislike token.
Nov 1 2016, 12:09 AM · Patch-For-Review, MediaWiki-extensions-Disambiguator, MediaWiki-extensions-Scribunto

Oct 16 2016

Jackmcbarn added a project to T148333: <nowiki> doesn't deactivate <onlyinclude> when transcluding: MediaWiki-Parser.
Oct 16 2016, 4:47 PM · MediaWiki-Parser, MediaWiki-Templates
Jackmcbarn closed T148313: Put wrapped data in mw.loadData cache as Declined.

Passing the same dataWrapper result more than once would introduce another way that T67258 could happen.

Oct 16 2016, 4:46 PM · Performance, MediaWiki-extensions-Scribunto

Sep 27 2016

Jackmcbarn added a comment to T146616: Expose DBNAME in Lua Site library.

The concept of local config modules is understood, as you might see here or here or here.

However, local configs require local people and even sysops to maintain a software configuration theirselves. I know many wiks that are not able to do this with local software experts, asking e.g. German Wikipedia for support. They would have to adapt each new feature locally.

A config scenario might be shared on a larger number of wikis, with exceptions for only a few ones, like e.g. Commons. Then global maintenance of a few standard groups of different profiles provides a more robust behaviour and will share all updates, and adaptions are performed by some global experts. Might be combined and overruled by local config modules anyway.

This seems like a non sequitur. None of this is improved by being able to automatically switch by wiki ID, since the different configurations for different wiki IDs would have to be written anyway (just in a different place). And centralized modules are also totally orthogonal to this.

Sep 27 2016, 7:01 PM · good first bug, MediaWiki-extensions-Scribunto

Sep 26 2016

Jackmcbarn added a comment to T146616: Expose DBNAME in Lua Site library.

I tend to agree with Anomie on this. I'm not sure this should be done.

Sep 26 2016, 6:07 PM · good first bug, MediaWiki-extensions-Scribunto

Jun 26 2016

Jackmcbarn added a comment to T138632: 1.28.0-wmf.7 on editing English Wikisource using Firefox, disables tools linked to Mediawiki tool collection.

Done. (You do "Merge Duplicates In" from the other task.)

Jun 26 2016, 6:48 PM · Wikisource
Jackmcbarn merged T138632: 1.28.0-wmf.7 on editing English Wikisource using Firefox, disables tools linked to Mediawiki tool collection into T138554: 1.28.0-wmf.7 on English Wikisource generates different problems for different users.
Jun 26 2016, 6:48 PM · ProofreadPage, Wikisource
Jackmcbarn merged task T138632: 1.28.0-wmf.7 on editing English Wikisource using Firefox, disables tools linked to Mediawiki tool collection into T138554: 1.28.0-wmf.7 on English Wikisource generates different problems for different users.
Jun 26 2016, 6:48 PM · Wikisource

Jun 19 2016

Jackmcbarn removed a project from T137584: Allow Scribunto code to add a category without changing output: MediaWiki-extensions-Lua.
Jun 19 2016, 3:26 AM · MediaWiki-extensions-Scribunto

Jun 16 2016

Jackmcbarn added a subtask for T137900: Deal with poor edit stash hit rate due to Lua modules using {{REVISIONID}}: T138022: Parser warnings should contain location information.
Jun 16 2016, 9:07 PM · MediaWiki-Parser, Performance-Team, User-notice, Parsoid
Jackmcbarn added a parent task for T138022: Parser warnings should contain location information: T137900: Deal with poor edit stash hit rate due to Lua modules using {{REVISIONID}}.
Jun 16 2016, 9:07 PM · MediaWiki-Templates, MediaWiki-Parser
Jackmcbarn created T138022: Parser warnings should contain location information.
Jun 16 2016, 9:06 PM · MediaWiki-Templates, MediaWiki-Parser
Jackmcbarn added a comment to T137900: Deal with poor edit stash hit rate due to Lua modules using {{REVISIONID}}.

We already have a show-only-on-preview warning system through ParserOutput::addWarning() and ParserOutput::getWarnings(), I would be in favor of exposing that via Scribunto/Lua and allowing module authors to take advantage of showing real errors upon preview instead of the current hacks.

These don't have locational context, but I'd agree that they'd be useful for some things. Errors like "invalid param 'foo'" would just mean the user has to cntrl-f for 'foo' to find that parameter.

I'm pretty sure that the lack of locational context would keep enwiki from switching to this.

Jun 16 2016, 8:26 PM · MediaWiki-Parser, Performance-Team, User-notice, Parsoid

Jun 14 2016

Jackmcbarn edited projects for T137640: Learning Lua, added: MediaWiki-extensions-Scribunto; removed MediaWiki-extensions-Lua.
Jun 14 2016, 4:08 PM · MediaWiki-extensions-Scribunto, Wikimania-Hackathon-2016

Jun 9 2016

Jackmcbarn updated subscribers of T137369: Title blacklist warning does not account for <autoconfirmed> restriction in certain circumstances.

Hmm, apparently this was intentionally done by @ori in rETBLa05d0abed95481de9009050c0e0a759900708d4a. Adding him for comment.

Jun 9 2016, 11:29 PM · MW-1.28-release (WMF-deploy-2016-06-21_(1.28.0-wmf.7)), Patch-For-Review, TitleBlacklist
Jackmcbarn added a comment to T137369: Title blacklist warning does not account for <autoconfirmed> restriction in certain circumstances.

I don't see the utility in having a warning when the page is restricted to autoconfirmed only

Jun 9 2016, 11:24 PM · MW-1.28-release (WMF-deploy-2016-06-21_(1.28.0-wmf.7)), Patch-For-Review, TitleBlacklist

Jun 3 2016

Jackmcbarn updated the task description for T68278: __call metamethod doesn't work on elements of the export table.
Jun 3 2016, 10:10 PM · MediaWiki-extensions-Scribunto

May 29 2016

Jackmcbarn added a comment to T136515: {{{{PAGENAME}}}} doesn't work.

{{ {{PAGENAME}} }} seems to work. {{ {{PAGENAME}}}} and {{{{PAGENAME}} }} work too.

IMO, the second method here is the right way to do this, and this isn't a bug but rather intentional behavior.

May 29 2016, 7:25 PM · MediaWiki-Templates, MediaWiki-Parser

May 25 2016

Jackmcbarn closed T128238: EPH Gadget: Add Accept: header to your HTML requests to RESTBase/Parsoid as per T124365 as Resolved.

@ssastry I think I fixed this with this edit. Let me know if there's anything else I have to do.

May 25 2016, 1:02 AM · Wikimedia-General-or-Unknown
Jackmcbarn closed T128238: EPH Gadget: Add Accept: header to your HTML requests to RESTBase/Parsoid as per T124365, a subtask of T128231: All known clients of Parsoid HTML (either directly hitting Parsoid or via RESTBase) should provide Accept: headers in their requests, as Resolved.
May 25 2016, 1:02 AM · Parsoid, RESTBase

May 23 2016

Jackmcbarn added a comment to T119978: Get name and record-time of all modules to better manage their versions.

I still don't see anything to do here. Please give a clear, specific description of what functionality you want to be added.

May 23 2016, 6:21 PM · MediaWiki-extensions-Scribunto
Jackmcbarn removed a subtask for T41610: Scribunto should support global module invocations: T119978: Get name and record-time of all modules to better manage their versions.
May 23 2016, 6:21 PM · MediaWiki-extensions-Scribunto
Jackmcbarn removed a parent task for T119978: Get name and record-time of all modules to better manage their versions: T41610: Scribunto should support global module invocations.
May 23 2016, 6:21 PM · MediaWiki-extensions-Scribunto

May 22 2016

Jackmcbarn removed a subtask for T121470: Central Global Repository for Templates, Lua modules, and Gadgets: T135845: Convert any module as central or centralisable.
May 22 2016, 4:42 PM · Language-strategy, Core Platform Team Backlog (Watching / External), Community-Tech (2015-2017), Epic, Wikimedia-General-or-Unknown, Category, Community-Wishlist-Survey-2015
Jackmcbarn removed a parent task for T135845: Convert any module as central or centralisable: T121470: Central Global Repository for Templates, Lua modules, and Gadgets.
May 22 2016, 4:42 PM · Community-Tech (2015-2017), Developer-Advocacy, MediaWiki-extensions-Scribunto
Jackmcbarn added a comment to T119978: Get name and record-time of all modules to better manage their versions.

@Rical, you still haven't given a specific example of what you'd like to be done in Scribunto.

May 22 2016, 3:07 AM · MediaWiki-extensions-Scribunto
Jackmcbarn added a comment to T85419: User groups should be exposed to Scribunto.

Rical, please don't do that.

May 22 2016, 3:06 AM · Patch-For-Review, MediaWiki-extensions-Scribunto
Jackmcbarn renamed T85419: User groups should be exposed to Scribunto from Expose users groups to modules to better adapt their displays to readers or supporters to User groups should be exposed to Scribunto.
May 22 2016, 3:05 AM · Patch-For-Review, MediaWiki-extensions-Scribunto

May 14 2016

Jackmcbarn closed T134660: Lua DISPLAYTITLE precondition predicate as Declined.

Closing since T28546, now fixed, was a better solution.

May 14 2016, 4:07 PM · MediaWiki-extensions-Scribunto, MediaWiki-General-or-Unknown
Jackmcbarn closed T28546: add message for invalid displaytitle as Resolved.

My patchset was merged. I'm not sure why gerritbot didn't post here about it.

May 14 2016, 4:07 PM · MW-1.28-release (WMF-deploy-2016-05-17_(1.28.0-wmf.2)), User-notice, MediaWiki-Parser

May 8 2016

Jackmcbarn added a comment to T134660: Lua DISPLAYTITLE precondition predicate.

I see no reason that this has anything to do with Lua. I think my patch at https://gerrit.wikimedia.org/r/#/c/158098/ is a much better solution.

May 8 2016, 3:02 AM · MediaWiki-extensions-Scribunto, MediaWiki-General-or-Unknown

Apr 26 2016

Jackmcbarn added a comment to T133266: Somebody is able to suppress redirect without permission to do that.

@Urbanecm Support for that is requested in T120794.

Apr 26 2016, 6:26 PM · Security, MediaWiki-General-or-Unknown
Jackmcbarn closed T133266: Somebody is able to suppress redirect without permission to do that as Invalid.

As legoktm said, this happens because it's currently impossible to create a module redirect. Rest assured that this will never allow unauthorized users to access the block or delete buttons. (Also, my personal opinion is that suppressredirect should not be required to move modules, etc.)

Apr 26 2016, 6:20 PM · Security, MediaWiki-General-or-Unknown

Apr 6 2016

Jackmcbarn added a comment to T131975: Add confirmation feature to Nuke extension.

CAPTCHA isn't meant to be "Are you sure". It's meant to be "Are you a human". If you want a bigger confirmation step, please ask for something different (like typing the username of the user to nuke again).

Apr 6 2016, 9:15 PM · MW-1.33-notes (1.33.0-wmf.9; 2018-12-18), MW-1.31-release-notes (WMF-deploy-2018-02-06 (1.31.0-wmf.20)), Patch-For-Review, User-Ladsgroup, MediaWiki-extensions-Nuke
Jackmcbarn added a comment to T126607: Add a new level of article protection on en.wikipedia.org.

Looking at everything that uses $wgSemiprotectedRestrictionLevels, it does look like exactly what we want. Let's do that.

Apr 6 2016, 5:13 PM · MW-1.27-release (WMF-deploy-2016-03-29_(1.27.0-wmf.19)), User-Luke081515, MW-1.27-release (WMF-deploy-2016-04-05_(1.27.0-wmf.20)), Patch-For-Review, MW-1.27-release (WMF-deploy-2016-03-01_(1.27.0-wmf.15)), Wikimedia-Site-requests
Jackmcbarn added a comment to T131911: Allow retrieving/getting page image file name from wikitext using Scribunto/Lua or parser function or something.

I really don't like all of these recent ideas to let Lua fetch information about pages that isn't known until the page is parsed.

MZ and I discussed on IRC that we could only allow lookups of *other* pages so you'd never run into the issue of trying to depend on something that is determined in the current parse.

That feels clunky, though, and it doesn't completely fix the problem. If page A referenced page B and page B referenced page A, you'd still get the same issue.

Apr 6 2016, 4:37 PM · ParserFunctions, MediaWiki-Parser, MediaWiki-extensions-Scribunto, PageImages
Jackmcbarn added a comment to T131911: Allow retrieving/getting page image file name from wikitext using Scribunto/Lua or parser function or something.

I really don't like all of these recent ideas to let Lua fetch information about pages that isn't known until the page is parsed.

Apr 6 2016, 4:23 PM · ParserFunctions, MediaWiki-Parser, MediaWiki-extensions-Scribunto, PageImages
Jackmcbarn created T131910: Fatal error on Special:Version if Scribunto is set to use LuaSandbox without it being installed.
Apr 6 2016, 2:45 AM · MW-1.27-release (WMF-deploy-2016-04-12_(1.27.0-wmf.21)), Patch-For-Review, MediaWiki-extensions-Scribunto

Apr 2 2016

Jackmcbarn added a comment to T131040: please add scribunto function title:getTranscluded().

The problem with listing all pages transcluded on a given page is that it can't be accurate on a given page. Imagine if it were, and someone created a template called "IsTranscluded", that returned whether a given template was transcluded on a given page. Then suppose a page called {{#if:{{IsTranscluded|{{FULLPAGENAME}}|Template:Foobar}}||{{Foobar}}}}. Now the result of that will never be accurate.

Apr 2 2016, 7:21 PM · MediaWiki-extensions-Scribunto
Jackmcbarn added a comment to T131387: Ability to reverse number formatting and detect invalid formats at the same time.

In core, the formatnum and plural parser functions use it.

Apr 2 2016, 7:16 PM · MediaWiki-Internationalization

Mar 31 2016

Jackmcbarn renamed T131387: Ability to reverse number formatting and detect invalid formats at the same time from scribunto mw.language:parseFormattedNumber() is too lax to Language::parseFormattedNumber is too lax.
Mar 31 2016, 7:24 PM · MediaWiki-Internationalization
Jackmcbarn added a comment to T131387: Ability to reverse number formatting and detect invalid formats at the same time.

All parseFormattedNumber does is call Language::parseFormattedNumber in core, so this isn't Scribunto-related at all.

Mar 31 2016, 7:24 PM · MediaWiki-Internationalization
Jackmcbarn edited projects for T131387: Ability to reverse number formatting and detect invalid formats at the same time, added: MediaWiki-Internationalization; removed MediaWiki-extensions-Scribunto.
Mar 31 2016, 7:23 PM · MediaWiki-Internationalization

Mar 28 2016

Jackmcbarn added a comment to T131040: please add scribunto function title:getTranscluded().

Can you make it clearer what you're asking for? I'm not sure if you want all pages that transclude a page, or all pages that are transcluded by a page.

Mar 28 2016, 3:46 PM · MediaWiki-extensions-Scribunto

Mar 26 2016

Jackmcbarn created T131011: Allow certain categories to trigger a warning when a page would be added to them.
Mar 26 2016, 10:48 PM · MediaWiki-Page-editing, MediaWiki-Categories

Mar 20 2016

Jackmcbarn updated the task description for T130509: Edits display in the wrong order on Special:Contributions.
Mar 20 2016, 6:39 PM · MediaWiki-Special-pages
Jackmcbarn updated the task description for T130509: Edits display in the wrong order on Special:Contributions.
Mar 20 2016, 6:39 PM · MediaWiki-Special-pages
Jackmcbarn created T130509: Edits display in the wrong order on Special:Contributions.
Mar 20 2016, 6:38 PM · MediaWiki-Special-pages

Mar 8 2016

Jackmcbarn committed rSVEVa925e9eae157: Restore backwards compatibility (authored by Jackmcbarn).
Restore backwards compatibility
Mar 8 2016, 3:29 PM

Feb 24 2016

Jackmcbarn added a comment to T110474: Decom parsoid-lb.eqiad.wikimedia.org entrypoint.

No problem, I already have it taken care of.

Feb 24 2016, 1:55 AM · Operations, Patch-For-Review, Wikimedia-IEG-grant-review, VisualEditor, Parsoid, Traffic
Jackmcbarn added a comment to T110474: Decom parsoid-lb.eqiad.wikimedia.org entrypoint.

FYI, I didn't realize that this was taking parsoid-prod.wmflabs.org down until it happened, so a lot of the requests from it were probably from my https://en.wikipedia.org/wiki/WP:EPH script.

Feb 24 2016, 1:51 AM · Operations, Patch-For-Review, Wikimedia-IEG-grant-review, VisualEditor, Parsoid, Traffic

Feb 22 2016

Jackmcbarn added a project to T127763: Extension unit tests should not depend on VisualEditor (Cite/Citoid/Graph): Cite.
Feb 22 2016, 10:24 PM · MW-1.27-release (WMF-deploy-2016-03-01_(1.27.0-wmf.15)), Technical-Debt, Graphs, Citoid, Contributors-Team, VisualEditor, Cite

Feb 1 2016

Jackmcbarn closed T125347: Add a magic word which returns the number of sections in a given article as Declined.

This can't be done, since the number of sections in a page isn't known until after parser functions get evaluated. Imagine a page that contained {{#ifeq:{{NUMBEROFSECTIONS:{{FULLPAGENAME}}}}|0|== Section ==}}. This would cause a paradox.

Feb 1 2016, 2:59 AM · MediaWiki-General-or-Unknown, MediaWiki-Parser

Jan 3 2016

Jackmcbarn created T122772: Pure-Lua ustring doesn't always report errors.
Jan 3 2016, 8:41 PM · MediaWiki-extensions-Scribunto

Jan 1 2016

Jackmcbarn added a comment to T122292: It should be apparent when a link on a page redirects back to the same page.

https://en.wikipedia.org/wiki/User:Anomie/linkclassifier.js can add the class "self-redirect" to such links (which can then be styled with CSS), though I agree this would be nice to have in core.

Jan 1 2016, 11:19 PM · MediaWiki-Parser
Jackmcbarn renamed T122292: It should be apparent when a link on a page redirects back to the same page from Redirect link from=to to It should be apparent when a link on a page redirects back to the same page.
Jan 1 2016, 11:18 PM · MediaWiki-Parser
Jackmcbarn added a comment to T122572: New parser function {{#useris|user|group}}.

I proposed exposing this information from Lua in https://gerrit.wikimedia.org/r/#/c/188503/ and Tim didn't like it because changes to user groups don't have a practical way to invalidate caches of pages that use the information.

Jan 1 2016, 11:16 PM · ParserFunctions

Dec 22 2015

Jackmcbarn closed T122102: A function {{#ifloggedin:1|2}} as Declined.

No, for all the same reasons as T6196.

Dec 22 2015, 3:04 AM · MediaWiki-Parser

Dec 15 2015

Jackmcbarn closed T119978: Get name and record-time of all modules to better manage their versions as Invalid.

Closing then, as there's nothing to do. It doesn't make sense to make a task a blocking task if there's no work to do for it.

Dec 15 2015, 10:14 PM · MediaWiki-extensions-Scribunto
Jackmcbarn closed T119978: Get name and record-time of all modules to better manage their versions, a subtask of T41610: Scribunto should support global module invocations, as Invalid.
Dec 15 2015, 10:14 PM · MediaWiki-extensions-Scribunto
Jackmcbarn added a comment to T119978: Get name and record-time of all modules to better manage their versions.

Are there any features that you still need then, or can this be closed? Also, I encourage you to use callParserFunction rather than preprocess.

Dec 15 2015, 6:19 PM · MediaWiki-extensions-Scribunto

Dec 11 2015

Ebraminio awarded T66460: Dynamically generate files with Scribunto a Love token.
Dec 11 2015, 6:05 AM · Patch-For-Review, MediaWiki-extensions-Scribunto

Dec 7 2015

Jackmcbarn added a comment to T119978: Get name and record-time of all modules to better manage their versions.

For relatively-named submodules, do this:

local submodule = require(mw.getCurrentFrame():getTitle() .. '/submodule')

For versioning, either keep a version constant in the code, or use frame:callParserFunction with REVISIONTIMESTAMP. For ISO 8601 dates, call mw.getContentLanguage():formatDate('c', theDate).

Dec 7 2015, 1:11 AM · MediaWiki-extensions-Scribunto

Dec 4 2015

Jackmcbarn edited projects for T66421: Allow to import modules from Wikidata/other chapter per require(), added: MediaWiki-extensions-Scribunto; removed MediaWiki-extensions-Lua.
Dec 4 2015, 3:21 AM · MediaWiki-extensions-Scribunto
Jackmcbarn removed a project from T105754: Lua is eating the number 2 when ending mw.text.trim(mw.ustring.gsub()): MediaWiki-extensions-Lua.
Dec 4 2015, 3:21 AM · MediaWiki-extensions-Scribunto
Jackmcbarn edited projects for T99120: Wikidata page shows "Lua error: not enough memory", added: MediaWiki-extensions-Scribunto; removed MediaWiki-extensions-Lua.
Dec 4 2015, 3:20 AM · MediaWiki-extensions-Scribunto, Wikidata
Jackmcbarn renamed T120140: Lock wait timeout exceeded (WikiPage::insertRedirectEntry) when editing a self-redirecting template from Template page with self redirect cannot be edited to Lock wait timeout exceeded when editing a self-redirecting template.
Dec 4 2015, 3:14 AM · Wikimedia-production-error, MediaWiki-Database, MediaWiki-Templates
Jackmcbarn added a comment to T114200: Allow filtering by namespace on [[Special:WantedTemplates]].

I remain unconvinced that the old situation is better than it is now. It shouldn't be that hard to add the ability to filter this data if it's wanted that badly.

Dec 4 2015, 3:13 AM · MediaWiki-Special-pages

Nov 27 2015

Jackmcbarn edited projects for T119735: mw.wikibase.getEntity(nil) returns an entity object on Flow page preview, but nil on page save, added: MediaWiki-extensions-Scribunto; removed MediaWiki-extensions-Lua.
Nov 27 2015, 5:16 AM · Growth-Team, Wikibase-Lua, Wikidata, MediaWiki-extensions-WikibaseClient, MediaWiki-extensions-Scribunto, Collaboration-Team-Triage, StructuredDiscussions

Nov 18 2015

Jackmcbarn added a comment to T118977: frame:preprocess does not work when module is called with subst:.

EDIT: Anomie beat me to it.

Nov 18 2015, 6:54 PM · MediaWiki-extensions-Scribunto

Nov 4 2015

Restricted Application updated subscribers of T117523: "Pending Review" reverts by my user account makes my user account a target for reverts done subsequently.

When you performed your undo, you only undid one of two pending changes, so your revision wasn't automatically accepted. (The second pending change was this one.) As a reviewer, you could have accepted it yourself anyway by checking the "Accept this version (includes ## pending change(s))" box before saving, or just like any other pending change after saving. Unless I'm missing something else, there doesn't seem to be anything wrong here.

Nov 4 2015, 2:07 AM · MediaWiki-extensions-FlaggedRevs

Oct 29 2015

Jackmcbarn added a comment to T116925: Suggestion for new Lua function in mw.language library: language encoding.

I don't really see a need to add a built-in for something that it's trivial to write a module for.

Oct 29 2015, 2:35 AM · MediaWiki-extensions-Scribunto

Sep 30 2015

Jackmcbarn added a comment to T114200: Allow filtering by namespace on [[Special:WantedTemplates]].

please have it able to be set and displayed/filtered with desired namespaces so that communities like the Wikisources can target their needs.

I like this idea a lot. Making it work like Special:WhatLinksHere (for example) is probably the best way to go here.

Sep 30 2015, 5:14 PM · MediaWiki-Special-pages
Jackmcbarn renamed T114200: Allow filtering by namespace on [[Special:WantedTemplates]] from [[Special:Wanted templates]] to only query Template: and Module: namespace to Allow filtering by namespace on [[Special:WantedTemplates]].
Sep 30 2015, 5:13 PM · MediaWiki-Special-pages
Jackmcbarn added a comment to T114200: Allow filtering by namespace on [[Special:WantedTemplates]].

There's no 500-page limit as far as I can see, and on both en.wikisource and www.wikisource, I wouldn't exactly say it's "flooded" until you start getting into occurrences with only 1 or 2 transclusions. (The one thing I would like to fix is that transclusions of stock messages really shouldn't count.)

Sep 30 2015, 1:09 AM · MediaWiki-Special-pages

Sep 24 2015

Jackmcbarn added a comment to T32282: Return aspect ratio of an image.

https://gerrit.wikimedia.org/r/136274 makes file page count, width and height available to wiki pages via the Scribunto extension.

For clarification, that change was merged a while ago, so this is already possible.

Sep 24 2015, 3:33 AM · WorkType-NewFunctionality, MediaWiki-General-or-Unknown

Sep 23 2015

Jackmcbarn added a comment to T74775: Support {{void}} as a magic word (currently {{void}} template to include empty strings into pages).

I think {{ns:0}} is good enough.

Sep 23 2015, 6:24 PM · MediaWiki-Parser