User talk:Lucario: Difference between revisions

m
mNo edit summary
 
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Exploring ways to deprecate the parameters in [[Template:VideoGallery]] ==
=== Currenttimestamp? ===
What am I trying to accomplish?
As far as I can see, the CURRENTTIMESTAMP template (i.e. {{CURRENTTIMESTAMP}}) doesn't update per page refresh, it seems to stay stuck at the point when the last edit occurred or the cache page was generated. So I'm not sure it can be used to generate the random value. I think we had determined that some JavaScript is needed to either handle the random selection, or minimally generate an actual random value here. BTW, a parameterless version of things would be nicer, even if it can't handle the random selection. [[User:Kolano|Kolano]] ([[User talk:Kolano|talk]]) 08:42, 27 January 2018 (CET)
<pre>
{{VideoGallery|
https://www.youtube.com/watch?v=wjzv0KtDXOA Xenoblade JP 1 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=tJtCp8rPXWg Xenoblade PAL 1 [Dolphin Emulator @ 1080p]
https://www.youtube.com/watch?v=_VLNa9PKT0Y Xenoblade PAL 2 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=dp3QnvFn_Hc Xenoblade PAL 3 (Dolphin Emulator @ 720p)
}}
</pre>


... to produce the familiar layout & random video logic the VideoGallery has been doing.
:You're right, it didn't update on page load. I was hoping that it was just cache of another template rather than on page directly, but nope it's still not updated, as confirmed in next section below. We'll look into Javascript I guess. I've wondered how will Javascript look and how will it pick three lucky videos and list the rest. I'm no Javascript expert so I won't be able to tell how hard it'd be. [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 09:00, 27 January 2018 (CET)


;Find max number
::You can't cheat the cache. You have to use [[MediaWiki:Common.js]]. That's the only way. If you put logic in there to generate a random seed, that should be enough. - [[User:Xerxes|Xerxes]] ([[User talk:Xerxes|talk]]) 09:15, 27 January 2018 (CET)
{{#vardefineecho:tl_vg_videocount|{{#vardefineecho:tl_vg_currentvideo|{{#expr:{{#regex:https://www.youtube.com/watch?v=wjzv0KtDXOA Xenoblade JP 1 (Dolphin Emulator @ 720p)
:::Thanks for letting me know, it kinda suck we've had to wait for the cache to purge out for the time to update. [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 14:18, 27 January 2018 (CET)
https://www.youtube.com/watch?v=tJtCp8rPXWg Xenoblade PAL 1 [Dolphin Emulator @ 1080p]
https://www.youtube.com/watch?v=_VLNa9PKT0Y Xenoblade PAL 2 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=dp3QnvFn_Hc Xenoblade PAL 3 (Dolphin Emulator @ 720p)|/(.+)/|+1}}}}}}}}


;Incremental #vardefine for each video
:I agree! Parameterless seems better. With it the uploader can just select all > copy'n'paste the url then append with caption. It'll have same feel as you'd copy full url then append with caption in brackets. There was one editor who deliberately assign +1 to all vid/cap parameters then use the first parameter for his video. It made me want to curl! [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 09:12, 27 January 2018 (CET)
{{#while:|{{#ifeq:{{#var:tl_vg_currentvideo}}|0||yo}}|{{#vardefine:video{{#var:tl_vg_currentvideo}}|{{#regex:videolist


https://www.youtube.com/watch?v=wjzv0KtDXOA Xenoblade JP 1 (Dolphin Emulator @ 720p)
:: Yes, they also frequently will perform arbitrary edits (i.e. adding/removing spacing) until their video comes to the top. This is the exact reason we want to restore true randomness. [[User:Kolano|Kolano]] ([[User talk:Kolano|talk]]) 09:32, 27 January 2018 (CET)
https://www.youtube.com/watch?v=tJtCp8rPXWg Xenoblade PAL 1 [Dolphin Emulator @ 1080p]
https://www.youtube.com/watch?v=_VLNa9PKT0Y Xenoblade PAL 2 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=dp3QnvFn_Hc Xenoblade PAL 3 (Dolphin Emulator @ 720p)|/videolist(\n.*){1,{{#var:tl_vg_currentvideo}}}\n(.+)([\s\S]*)/|{{#vardefine:tl_vg_currentvideo|{{#expr:{{#var:tl_vg_currentvideo}}-1}}}}$2}}}}}}


;Shuffle! Three lucky videos are...
: Generating a random ID in common.js is easy enough. However, I'm not clear there is any way for that to hand off to wiki handling, so I think any randomization related logic here is likely pointless. Since I'm not clear there is any good way to perform a hand-off, I think we need to perform the random selection and HTML generation in JavaScript, which makes things more complicated (though not particularly difficult). [[User:Kolano|Kolano]] ([[User talk:Kolano|talk]]) 09:37, 27 January 2018 (CET)
{{#vardefine:tl_vg_luckyvideos|3}}
:: I don't think I'll be around to do that stuff. Anyone else can try. [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 14:18, 27 January 2018 (CET)
{{#while:|{{#ifeq:{{#var:tl_vg_luckyvideos}}|0||lucky!}}|{{#var:video{{#vardefineecho:tl_vg_luckyvideo|{{#expr:{{Mod|(({{#time:U}}+({{#vardefineecho:tl_vg_luckyvideos|{{#expr:{{#var:tl_vg_luckyvideos}}-1}}}}))*(67)+({{NUMBEROFARTICLES:R}} mod (67)))|{{#var:tl_vg_videocount}}}}+1}}}}}}{{#vardefine:video{{#var:tl_vg_luckyvideo}}|done}}}}
 
;Losers
{{#while:|{{#ifeq:{{#var:tl_vg_videocount}}|0||dang!}}|{{#ifeq:{{#var:video{{#vardefineecho:tl_vg_videocount|{{#expr:{{#var:tl_vg_videocount}}-1}}}}}}|done||{{#var:video{{#var:tl_vg_videocount}}}}}}}}


== Time refresh on page load test ==
== Time refresh on page load test ==
Line 39: Line 20:
* expecting empty #var:trololo default: <code>{{#var:trololo|{{CURRENTTIMESTAMP}}}}</code>
* expecting empty #var:trololo default: <code>{{#var:trololo|{{CURRENTTIMESTAMP}}}}</code>
* expecting defined #var:trololo: <code>{{#vardefine:trololo|{{CURRENTTIMESTAMP}}}}{{#var:trololo}}</code>
* expecting defined #var:trololo: <code>{{#vardefine:trololo|{{CURRENTTIMESTAMP}}}}{{#var:trololo}}</code>
Which one updates faster?
:{{CURRENTTIMESTAMP}}
:{{#time:U}}
:{{#time:z}}


== SNES Ratings==
== SNES Ratings==
Line 105: Line 91:
}}
}}
*Chinese release dates - consoles were banned in China (2000-2015)
*Chinese release dates - consoles were banned in China (2000-2015)
== Released in Korea but no Korean GameID ==
{{#dpl:
|mode=inline
|inlinetext=<nowiki>, </nowiki>
|namespace=
|notlinksfrom={{#dpl:|mode=userformat|format=,{{!}},%TITLE%|titlematch=___K__|redirects=only}}
|category=Korea (Release region)
}}
DPL-in-DPL is possible but obviously DPL can only go up to 500, there's not much Korean releases so it works, didn't work too well for other regions where there will be far more than 500 games released.
:I dealt with some of this to generate my titles missing videos lists. You can use the offset parameter to add additional DLPs that pull in more results (i.e. "|offset=500" / "|offset=1000"). [[User:Kolano|Kolano]] ([[User talk:Kolano|talk]]) 09:54, 29 January 2022 (CET)
::Thank you! That actually worked. I used DPL for each alphabetical but it's terrible solution. [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 11:08, 29 January 2022 (CET)


== Config Template Spacing ==
== Config Template Spacing ==
Line 137: Line 138:
:Wasn't aware of the abilities to make my edit "minor" without me doing it each time. I have tried 1000 in recent days but returned to 250 because of page loading. [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 05:11, 15 January 2018 (CET)
:Wasn't aware of the abilities to make my edit "minor" without me doing it each time. I have tried 1000 in recent days but returned to 250 because of page loading. [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 05:11, 15 January 2018 (CET)
::A lot of the time I was just manually clicking the button every time because I'm weird, but there's really no need to do that. At this point I just said fuck it and set recent changes to display 1500. (Sorry for blowing everything up by the way.) - [[User:Xerxes|Xerxes]] ([[User talk:Xerxes|talk]]) 05:26, 15 January 2018 (CET)
::A lot of the time I was just manually clicking the button every time because I'm weird, but there's really no need to do that. At this point I just said fuck it and set recent changes to display 1500. (Sorry for blowing everything up by the way.) - [[User:Xerxes|Xerxes]] ([[User talk:Xerxes|talk]]) 05:26, 15 January 2018 (CET)
== Removed redirects ==
Why are you removing the redirects from the pages of specific game IDs? That breaks the "open wiki page" shortcut from Dolphin's game list and should be done only when the same ID points to completely different titles (like [[GNHE5d]], [[GVSJ8P]], [[RABAZZ]] or [[RELSAB]])... [[User:mbc07|mbc07]] ([[User talk:mbc07|talk]]) 06:16, 22 January 2022 (CET)
:If you're thinking of [[Metroid Prime: Trilogy]] then I dunno what is right, just making consistent with others. It's one oddball on this Wiki for having one single game to have four pages. How would their GameIDs be populated if not for disambig pages that redirections recently turned into? I don't necessarily trying to break Dolphin's open wiki page for losing a redirection (though it was very interesting of you calling them "breaking"). What about [[Phantasy Star Online Episode I & II]] and [[Phantasy Star Online Episode I & II Plus]] that are on separate disc & having own wiki? [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 07:38, 22 January 2022 (CET)
:: You're actually making things '''less''' consistent. Metroid Prime Trilogy has its own IDs and they should point directly to the [[Metroid Prime Trilogy|main game page]], as it was the case before. The behavior of the shortcut inside Dolphin is to open the matching game page '''directly''' once you click on it. Your recent changes not only broke this behavior by pointing users to an unneeded disambig page but also made {{tl|Infobox VG}} associate the IDs from MP Trilogy to the individual games contained in the disc, which is completely inaccurate since they really don't have any IDs associated with them.
::Regarding Phantasy Star Online, if two different (but still closely related) titles share the same IDs, they should redirect to the "main" page (likely [[Phantasy Star Online Episode I & II]] in this case) and mention the other page with the same IDs right at the beginning of the article via {{tl|For2}}, not through a disambig page (for some examples, take a look at [[Mario Kart Wii]], [[Wii Fit]] or [[Wii Fit Plus]] and their inclusion of {{tl|See Associated Channel}}, which itself is a wrapper for {{tl|For2}} -- another variant is available on [[Wii Fit Channel]], which although added directly instead of using a template may fit better).
:: The shared IDs I mentioned in the initial comment right now are the only exceptions because they literally are used by completely different titles. All other pages from [[:Category:Disambiguation pages]] are automatically generated by {{tl|disambig}} and are normally accessible only if you use the wiki's search function, as the behavior of both the game lists from the wiki and also the shortcut from inside Dolphin is to bypass disambig pages altogether and link directly to the relevant game page whenever possible. I almost reverted your edits on sight, and honestly I'm more inclined to do so now if that's the only reasoning you got for replacing the redirects in with unneeded disambig pages and to associate existing IDs to game pages that shouldn't have any. - [[User:mbc07|mbc07]] ([[User talk:mbc07|talk]]) 10:22, 22 January 2022 (CET)
::: Like I said, Metroid Trilogy is oddball on this Wiki, how is my edit any less continent? Whether it's right to use disambig page or not for Metroid Trilogy is your call. I'd have to disagree about the Phantasy game, disambig page gives people choice between page for their game. It's what disambig page is for. Still, you should ask for a third opinion because I don't want to argue and having you threaten to revert my edits over disagreement when it's not up to your taste. I haven't seen it discussed before and I cannot discuss further with your current attitude. And besides can you please stop calling new things you didn't like broken? [[User:Lucario|Lucario]] ([[User talk:Lucario|talk]]) 01:12, 23 January 2022 (CET)
:::: About MP Trilogy, yes, it's an oddball, but that oddball was already handled via the dedicated "Game Pages" section only MP Trilogy and the related subpages has. Your recent edit made the IDs from the main game to be associated with the subpages as well, as if they were individual games, with their own IDs, when they clearly aren't. You cannot launch them separately from the main game thus they aren't treated as separate entries, neither in [[Wii#M|the wiki]], nor in Dolphin's game list. Regarding Phantasy Star, yes, the situation is different but we already had precedents for identical cases, as well as how to handle them (again, go see the games I linked on my previous comment and their associated channels -- same IDs associated with different but still closely related titles -- how is that any different from [[Phantasy Star Online Episode I & II]] and [[Phantasy Star Online Episode I & II Plus]]?).
:::: You can argue all you want, but you did break the behavior of the "open wiki page" shortcut from the emulator with the unneeded disambig pages you created for MP Trilogy and PSO, that's a fact and not a matter of liking your change or not. I have no objection if you want to somehow make the IDs from PSO I & II to also appear on II & II Plus infobox since that would be accurate to how those IDs are used outside the wiki and could also benefit [[Mario Kart Wii]], [[Wii Fit]] and [[Wii Fit Plus]] as well (the ID field in the infobox of the channels remain empty when in reality they reuse the same IDs from the associated game). Still, I do not agree on how you did that (replaced existing redirects with completely avoidable disambig pages), neither in why you did that (to associate IDs to infoboxes that don't have any by hijacking the disambig category in a special case -- even through now they associate IDs to pages that shouldn't have any as a side effect, while also breaking existing functionality in the process).
:::: Speaking of that, it's not the first time you go pushing behavioral changes directly to core templates we use on the wiki when you already were warned about that in the past (more than once, BTW) and thus known damn well those kind of changes should go to a sandbox first and only after discussion and consensual approval they should be merged back to the live templates. That alone was enough to warrant a nuke on sight of the edits you did recently, yet I still opted to create this topic on your talk page instead. So, perhaps stop insinuating I keep chasing and threatening to revert all edits your do (not true, neither the fist time), and respect the currently established procedures from the wiki for a change.
:::: Anyway, I have nothing more to add on this subject and already made my stance clear. If you want other opinions about this subject, fine, I'm all ears. I do reserve the right to (and definitely will) revert those changes in about two or three weeks if no consensual approval comes out of this, though. I also won't bother going to your talk page anymore if I catch you again pushing behavioral changes directly to live templates in the future (especially if they break existing behaviors and weren't discussed before), I'll simply nuke them and move on. Every time I did differently it ended like this topic, while I could have spent that time and energy in something more useful to the wiki or to Dolphin itself. - [[User:mbc07|mbc07]] ([[User talk:mbc07|talk]]) 06:28, 23 January 2022 (CET)
6,576

edits