Jump to content

Talk:Conway's Game of Life

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Template gadget request

[edit]

I would like to add the Game of Life template gadget to the article, immediately below the Origins heading. (Please see the discussion here for details.) 28bytes (talk) 02:09, 26 May 2024 (UTC)[reply]

Specific steps for an interface admin to follow:
  1. Copy mw:MediaWiki:Gadget-Global-Vivarium.js to MediaWiki:Gadget-Vivarium.js
  2. Add the following line to MediaWiki:Gadgets-definition#modules:
    * Vivarium[ResourceLoader|hidden|default|categories=Pages using Conway's Game of Life gadget]|Vivarium.js
    
  3. (optional and only requires a regular admin) Add the following lines to User:SDZeroBot/Gadgets-sync-config.json:
    		{
    			"source": "mw:MediaWiki:Gadget-Global-Vivarium.js",
    			"page": "MediaWiki:Gadget-Vivarium.js",
    			"talkPage": "MediaWiki talk:Gadget-Vivarium.js"
    		}
    
  4. (optional and requires no advanced permissions) add {{Conway's Game of Life gadget}} to the appropriate place on this page.
See mw:Template gadgets for a general description of this system. I am personally unlikely to use my own interface admin permission to break into this uncharted territory , but describing the exact edit requested for the aid of whoever is brave enough to do so. Xaosflux described this as needing "serious testing" at MediaWiki talk:Common.js#Class-triggered gadgets. * Pppery * it has begun... 03:30, 26 May 2024 (UTC)[reply]
Can the primary functionality for this be tested via supportsUrlLoad options while the greater question about managing these category triggers can occur? We should probably put them all in to some standard naming convention (e.g. Category:Wikipedia Gadget-XXXXXXXXXXXXXXXX) or the like? — xaosflux Talk 22:49, 26 May 2024 (UTC)[reply]
I can't think of any reason it wouldn't. And I'm fine with using any naming convention. * Pppery * it has begun... 00:48, 27 May 2024 (UTC)[reply]
Additionally, the remote source indicated to source this script from does not appear to exist. — xaosflux Talk 23:06, 26 May 2024 (UTC)[reply]
"global" should be capitalised.— Qwerfjkltalk 23:48, 26 May 2024 (UTC)[reply]
Apologies for making a typo. * Pppery * it has begun... 00:48, 27 May 2024 (UTC)[reply]
Vivarium.js has been loaded and gadget linked, currently only for use via supportsUrlLoad; however that should be enough to start testing this in a sandbox here. Perhaps in Talk:Conway's Game of Life/sandbox? Please confirm that everything is working about the gadget with the template/layout/etc first. — xaosflux Talk 16:23, 27 May 2024 (UTC)[reply]
It doesn't seem to be working yet; Template:Conway's Game of Life gadget just displays the fallback GIF. (Compare to es:Plantilla:Juego de la vida, where you can interact with it.) 28bytes (talk) 21:04, 27 May 2024 (UTC)[reply]
Thanks Xaosflux. 28bytes, you have to go to https://en.wikipedia.org/wiki/Template:Conway's_Game_of_Life_gadget?withgadget=Vivarium to test it. Xaosflux didn't set up the automatic enabling of the gadget yet. And it turned out there was also a CSS page that needed to be imported, which I've done. * Pppery * it has begun... 01:53, 28 May 2024 (UTC)[reply]

  • Next steps for testers, please try and report any issues. Would be good to test with different skins/views as well:
  1. OPT-IN to the gadget (this will eventually be opt-out, or non-opt-outable) at Special:Preferences#mw-prefsection-gadgets-gadget-section-template-gadgets
  2. Browse to Template:Conway's Game of Life gadget
xaosflux Talk 14:29, 29 May 2024 (UTC)[reply]
@28bytes, Pppery, and Qwerfjkl:xaosflux Talk 14:30, 29 May 2024 (UTC)[reply]
Thanks Xaosflux, when I opted in, it worked great. Oddly, though, it's marked as D (enabled by default) on the preferences page. I'm using Vector 2022 FWIW. 28bytes (talk) 16:46, 29 May 2024 (UTC)[reply]
That was just me getting it ready to be default, those are manually applied tags. — xaosflux Talk 17:27, 29 May 2024 (UTC)[reply]