MediaWiki talk:Guidedtour-tour-twa1.js
Login/signup step
[edit]It was my mistake to suggest the isPage('Special:GettingStarted')
earlier. It doesn't work, since that URL is done in a special way (replaceState). However, there's an alternative that could work nicely. If you're okay with logged in users never seeing the "Your impact can change the world" step (perhaps some of the verbiage could be moved to another step), you can add a shouldSkip to the step of:
shouldSkip: function () {
return mw.config.get( 'wgUserId' ) !== 0;
}
-- This means the step will automatically be skipped if they are logged in (only logged in users have a non-zero wgUserId). That would also allow you to remove the "I already did" link. Also, the tour and step parameters in the signup link shouldn't be necessary, since tours can no longer be shown on the signup and login pages themselves (security reasons). Superm401 - Talk 02:07, 12 July 2013 (UTC)
- My mistake, it should be !== null.
wgUserId
isn't set at all for anonymous page views, which translates to null. Superm401 - Talk 18:45, 2 August 2013 (UTC)
typo
[edit]The editing toolbar makes Wikipedia much much easiser. I can't correct it myself from my account. Ijon (talk) 00:47, 6 December 2013 (UTC)
- I see the page has been edited but the typo is still there. Did you miss it? Ijon (talk) 17:55, 6 December 2013 (UTC)
- Ijon, thanks much for catching it. Sorry I didn't see your message sooner. Fixed Ocaasi t | c 23:30, 19 December 2013 (UTC)
wikiGetlink → getUrl
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hi!
Could someone update this script by replacing wikiGetlink by getUrl everywhere? It is currently causing the warning "Use of "wikiGetlink" is deprecated. Use mw.util.getUrl instead." Helder.wiki 20:44, 11 July 2014 (UTC)
- @Helder.wiki: Thanks for catching this. So I know how urgent/priority this is, can you tell me if you're seeing the warning while going through the game, or only when you're in the console? Thanks again, Jake Ocaasi t | c 23:09, 11 July 2014 (UTC)
- Ocaasi, it is not urgent since this feature was deprecated (see the documentation) but not removed yet from MW. The output of mw.log calls is only visible in the console. Helder.wiki 23:41, 11 July 2014 (UTC)
- Done. --Krenair (talk • contribs) 00:37, 15 July 2014 (UTC)
Interface-protected edit request on 7 February 2019
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace:
[[File:Toolbaricon_bold_B-1.png]]
with[[File:OOjs UI icon bold-b.svg]]
[[File:Toolbaricon_italics_I.png]]
with[[File:OOjs UI icon italic-i.svg]]
[[File:Toolbar_Insert_link.png]]
with[[File:OOjs UI icon link-ltr.svg]]
This updates the icons displayed in the tutorial to the ones that are currently used in the Vector skin's WikiEditor toolbar. Here is a visual comparison:
Tutorial icon | Toolbar icon | |
---|---|---|
Bold | ||
Italic | ||
Link |
Thank you. — Newslinger talk 15:32, 7 February 2019 (UTC)
- Doing... — xaosflux Talk 15:52, 7 February 2019 (UTC)
Interface-protected edit request on 24 April 2021
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Center HTML tags are discontinued and result in lint errors. Please change line 297's center tags to either {{center}} or <div class="center">...</div> TheSandDoctor Talk 02:55, 24 April 2021 (UTC)
Interface-protected edit request on 24 April 2021 (2)
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
My apologies for missing this in my previous request. Center HTML tags are discontinued and result in lint errors. Please change line 408's center tags to either {{center}} or <div class="center">...</div> TheSandDoctor Talk 17:58, 24 April 2021 (UTC)
Can I ask a help?
[edit]I edited the Bikol Sentral Version of "The Wikipedia Adventure" and I got to the "MediaWiki: Guidedtour-tour-twa1.js" section but it's forbidden to edit, how can I edit it to make my version work properly and be the same as in the English Version? Thank you very much.
Here's the link: https://bcl.wikipedia.org/wiki/MediaWiki:Guidedtour-tour-twa1.js
Thank you -- Shimin_Ufesoj 14:34, 17 June 2021 (UTC)
Interface-protected edit request on 28 March 2022
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I started the guided tour as a test to check it out, but I'd like to exit the adventure. I managed to exit the adventure by deleting the enwiki-mw-tour
cookie. I propose that a user should have the option of exiting the adventure. My original idea was altering twa1 as follows:
{
name: 'twa1',
shouldLog: true,
steps: [ {
//1
title: 'Welcome to Wikipedia!',
description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Wikipedia is a free encyclopedia that <b>anyone can edit</b>. I\'m here to take you on an interactive tour of our universe.<br><br>The journey has 7 missions, each with its own skills and surprises, all designed for you to become a great contributor to Wikipedia.<br><br>',
onShow: gt.parseDescription,
overlay: true,
closeOnClickOutside: false,
buttons: [ {
name: 'Get equipped for the trip',
action: 'next',
}, {
name: 'I\'d like to leave',
onclick: function() { document.cookie = 'enwiki-mw-tour=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; document.location.replace('/wiki/Wikipedia:The Wikipedia Adventure')); return false; }
} ],
allowAutomaticOkay: false
},
elijahpepe@wikipedia (he/him) 00:19, 28 March 2022 (UTC)
- @ElijahPepe are you referring to WP:TWA? It has a box with an "X" to exit TWA at any time already. It even tells you that clicking the X will exit. What am I missing? — xaosflux Talk 01:10, 28 March 2022 (UTC)
- Exiting TWA in that way doesn't clear the cookie that triggers that popup (so it just continues to pop up over and over again for every page). This addition will add in the ability to leave the adventure and have it stay that way until the user intends to go on it again. elijahpepe@wikipedia (he/him) 01:15, 28 March 2022 (UTC)
- On hold @ElijahPepe: your snippet above appears to have at least one syntax error (unmatched {}'s). Would you please make your proposed change in this sandbox: User:ElijahPepe/Guidedtour-tour-twa1.js, test, then reactivate the edit request above and comment below when ready? — xaosflux Talk 15:08, 17 April 2022 (UTC)
- Should be good now. elijahpepe@wikipedia (he/him) 16:56, 17 April 2022 (UTC)
- @ElijahPepe I don't see that you made the change in the sandbox I linked (User:ElijahPepe/Guidedtour-tour-twa1.js) - please edit that page, as if you could edit this message directly, and let me know when done. — xaosflux Talk 19:18, 17 April 2022 (UTC)
- Apologies for that, I can see the edit in the edit history now so the changes should be there. elijahpepe@wikipedia (he/him) 20:54, 17 April 2022 (UTC)
- @ElijahPepe I don't see that you made the change in the sandbox I linked (User:ElijahPepe/Guidedtour-tour-twa1.js) - please edit that page, as if you could edit this message directly, and let me know when done. — xaosflux Talk 19:18, 17 April 2022 (UTC)
- Should be good now. elijahpepe@wikipedia (he/him) 16:56, 17 April 2022 (UTC)
- Done @ElijahPepe: this has been loaded and should be live in a few mins, let me know if any issues. Thank you, — xaosflux Talk 21:58, 17 April 2022 (UTC)