Wikipedia talk:TWA/Welcome
Protected edit request on 10 January 2015
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
@Ocaasi:
- What is posted to the user's talk page is a copy of Wikipedia:TWA/Welcome. It's not transcluded; that would be {{Wikipedia:TWA/Welcome}} posted to the talk page. But it's not substituted either; it's like a copy-paste was done.
- In MediaWiki:Guidedtour-tour-twa1.js, there are three calls to function sendMessage:
- sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Welcome' , mw.util.getUrl( 'Special:MyPage' ) + '?tour=twa1&step=9');
- sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/1template2' , mw.util.getUrl( 'Special:MyPage' ) + '?tour=twa1&step=15');
- sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/2template2' , mw.util.getUrl( 'Wikipedia:TWA/1/End' ) + '?tour=twa1&step=21');
Let's look at how the other two work—they are copied as well:
- The contents of Wikipedia:TWA/Badge/1template2 is {{Wikipedia:TWA/Badge/1template}}
- The contents of Wikipedia:TWA/Badge/2template2 is {{Wikipedia:TWA/Badge/2template}}
And I see that the latter two just transclude on my user page. A bit convoluted, but OK.
I found the documentation for this system: Help:Guided tours and mw:Extension:GuidedTour.
Back to Wikipedia:TWA/Welcome. We want that to have contents which, when copy-pasted to the user's talk page, work as intended. In other words, stop thinking of this page as a template, because it will not be transcluded or substituted.
This is what we want to have on that page. When copy-pasted, this works.
==Welcome to The Wikipedia Adventure!==
[[File:TWA guide left bottom.png |left|link=]]
:::::'''Hi {{subst:BASEPAGENAME}}!''' We're so happy you wanted to play to learn, as a friendly and fun way to get into our community and mission. I think these links might be helpful to you as you get started.
::::::* [[WP:TWA/Portal|The Wikipedia Adventure Start Page]]
::::::* [[WP:TWA/Lounge|The Wikipedia Adventure Lounge]]
::::::* [[WP:Teahouse|The Teahouse new editor help space]]
::::::* [[WP:Help|Wikipedia Help pages]]
-- {{subst:currentdate}}
{{Wikipedia:TWA/Navigation2}}
<includeonly>[[Category:Wikipedia Adventurers]]</includeonly>
But we can't just copy-paste that to Wikipedia:TWA/Welcome, because it will be prematurely substituted. This is where {{subst:delay subst}}
comes to the rescue!
Copy and paste this to Wikipedia:TWA/Welcome:
==Welcome to The Wikipedia Adventure!==
[[File:TWA guide left bottom.png |left|link=]]
:::::'''Hi {{subst:delay subst}}BASEPAGENAME}}!''' We're so happy you wanted to play to learn, as a friendly and fun way to get into our community and mission. I think these links might be helpful to you as you get started.
::::::* [[WP:TWA/Portal|The Wikipedia Adventure Start Page]]
::::::* [[WP:TWA/Lounge|The Wikipedia Adventure Lounge]]
::::::* [[WP:Teahouse|The Teahouse new editor help space]]
::::::* [[WP:Help|Wikipedia Help pages]]
-- {{subst:delay subst}}currentdate}}
{{Wikipedia:TWA/Navigation2}}
<includeonly>[[Category:Wikipedia Adventurers]]</includeonly>
and when it's saved it will look just like the first code block above, which is what we want. – Wbm1058 (talk) 01:34, 10 January 2015 (UTC)
- @Wbm1058: It looks like you're trying to initiate a discussion with Ocaasi. That is not the purpose of
{{edit protected}}
; accordingly, Not done: please establish a consensus for this alteration before using the{{edit protected}}
template. --Redrose64 (talk) 11:40, 10 January 2015 (UTC)- Actually continuing a conversation with Jake that I started on my talk page. Though if another admin cares to be bold... Note how your edit signed the section below, which is as expected. Wbm1058 (talk) 13:42, 10 January 2015 (UTC)
- How was I to know that my edit to this section would compromise other sections? What's it there for, anyway? --Redrose64 (talk) 15:27, 10 January 2015 (UTC)
- No worries, you didn't really "compromise" anything. I put the second section there for demonstration purposes. I created that section simply by copy-pasting the second code block above. When saved, it looks like the first code block above. For further explanation of why, please read my discussion above, and the earlier discussions here and here. Feel free to try it yourself. BTW, this shouldn't need a consensus. That would be like asking for a consensus to fix a misspelling! Admittedly this might be a kludgy solution, but a more robust fix is at least dependent on code changes to MediaWiki:Guidedtour-tour-twa1.js, and perhaps on changes to mw:Extension:GuidedTour. But for the short-term at least, this fix should be an easy and uncontroversial one. Thanks, Wbm1058 (talk) 17:16, 10 January 2015 (UTC)
- How was I to know that my edit to this section would compromise other sections? What's it there for, anyway? --Redrose64 (talk) 15:27, 10 January 2015 (UTC)
- Actually continuing a conversation with Jake that I started on my talk page. Though if another admin cares to be bold... Note how your edit signed the section below, which is as expected. Wbm1058 (talk) 13:42, 10 January 2015 (UTC)
@Ocaasi: Yet one more observation and fix from me. Because this page is just copied, and not transcluded or substituted, if you want to put users who have this message on their talk page into Category:Wikipedia Adventurers, the <includeonly> and </includeonly> sandwiching the category need to be removed. It seems that the only users currently in that category transclude Wikipedia:TWA/Badge/15end, which in turn transcludes Wikipedia:TWA/Userbox. The user box is what actually puts editors into the category. It might be better just to categorize user pages rather than user talk pages, in that case <includeonly>[[Category:Wikipedia Adventurers]]</includeonly>
can just be removed. Regards, Wbm1058 (talk) 15:13, 15 January 2015 (UTC)
- @Ocaasi: Thanks for removing the not needed category. Please see Template talk:Welcome § Template-protected edit request on 24 January 2015. Editors have a consensus to give the Adventure higher visibility by including it in the {{Welcome}} template, but I really think we should get the BASEPAGENAME and currentdate substitution issue fixed first! You haven't really responded to me about whether you object to my quick-and-dirty solution "{{delay subst}} or would prefer to fix MediaWiki:Guidedtour-tour-twa1.js instead. I'm game for suggesting changes to the javascript, but am a bit frustrated regarding that as I don't have much js experience and there isn't really a convenient sandbox mechanism for me, as a non-administrator, to experiment with it. I realize you may be busy with other priorities at this point. I know at least a couple of technically-oriented admins whose help we could solicit if you don't want to do it. Let me know what you think. Thanks, Wbm1058 (talk) 14:04, 27 January 2015 (UTC)
- @Wbm1058:, I've changed the protection so template editors can fix it. Please go and do whatever you think will work with your 'quick and dirty' solution :) Thanks for your help, very much. Ocaasi t | c 17:11, 27 January 2015 (UTC)
Welcome to The Wikipedia Adventure!
edit- Hi TWA! We're so happy you wanted to play to learn, as a friendly and fun way to get into our community and mission. I think these links might be helpful to you as you get started.
-- 11:40, Saturday, January 10, 2015 (UTC)
Mission 1 | Mission 2 | Mission 3 | Mission 4 | Mission 5 | Mission 6 | Mission 7 |
Say Hello to the World | An Invitation to Earth | Small Changes, Big Impact | The Neutral Point of View | The Veil of Verifiability | The Civility Code | Looking Good Together |
Improper indentation
editHi all, this template improperly uses the definition list syntax ":" for indenting. This emits extra markup that is not semantic and can be an accessibility issue. (if you inspect the generated HTML, it's one huge nested definition list) Please refer to an essay I wrote if a more detailed explanation is needed. Instead this template should enclose the problem elements in a div and utilize inline CSS to fix any layout issues. Thanks. Opencooper (talk) 13:57, 15 December 2016 (UTC)
What is the template to add this to a user's talkpage?
editWhat is the template to add this to a user's talkpage? Softlavender (talk) 23:57, 18 August 2018 (UTC)
- Softlavender, it's
{{Wikipedia:TWA/Portal}}
– wbm1058 (talk) 00:12, 19 August 2018 (UTC)- You don't see the title on the page Wikipedia:TWA/Portal because it transcludes {{Hidden title}} – wbm1058 (talk) 00:21, 19 August 2018 (UTC)
- @Softlavender: It's been a while since I've played with this, so I'm still refreshing myself on the details. I don't think you're supposed to transclude this because it blanks out the title of the user's talk page. You could just give them the link to it: Wikipedia:TWA/Portal but there's a fancier-looking welcome template that did that part.
- Wikipedia talk:The Wikipedia Adventure/Archive 2 § How do I post this to a new editor's talk page (if allowed)?
{{subst:Wikipedia:TWA/Invite|signature=~~~~}}
Click through to the template Wikipedia:TWA/Invite for the documentation including parameters for personalizing it. wbm1058 (talk) 00:56, 19 August 2018 (UTC)
Hi new editor!! You're invited: learn how to edit Wikipedia in under an hour. Hope to see you there! This message was delivered by wbm1058 (talk) 00:56, 19 August 2018 (UTC) |
- That info should be visible somewhere on one of the relevant pages, instead of hidden in the (talkpage) archives, in my opinion. Softlavender (talk) 04:22, 19 August 2018 (UTC)