Jump to content

Template talk:Talkback

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

This is an old revision of this page, as edited by South Bay (talk | contribs) at 05:32, 16 March 2010 (add talk header). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Clash with archives template?

When used with an {{archives}} template the image in the talkback box jumps out and decides to put itself a couple of lines down the page. It it doing this naughty carry on at my talk page and I can simulate it on this page as well. Am running the latest version of Firefox and it does not do it with Micro$oft IE7.-- Alan Liefting (talk) - 05:27, 24 May 2009 (UTC)[reply]

Hmm, this could be prevented here by using an absolutely positioned image and moving the text a bit to the right, but since this problem always has more widespread issues (like the misplaced edit links you also had on your talkpage, in addition to the misplaced image, if used the WP:BUNCHING workaround on your talkpage instead. Amalthea 11:15, 24 May 2009 (UTC)[reply]

In other skins

<rant class="minor">This template really doesn't look terrific under other skins. For example, in modern, the "new messages" bar is embedded tightly into the interface, doesn't use much padding and no border. The result of using the "usermessage" class is this. And while modern is possibly the most popular alternative to monobook, similar thing happens with Cologne Blue and Nostalgia while under Chick the image is a wreck.</rant> Миша13 22:14, 2 June 2009 (UTC)[reply]

That looks a bit like a mess. I can hardcode the CSS, or use {{tmbox}} as a framework. EdokterTalk 12:19, 3 June 2009 (UTC)[reply]

Suggestion

At present the usage of this template is

{{Talkback|Username|Section}}

I'd propose to change this to

{{Talkback|Username#Section}}

, since that would allow for simply copying from the url-bar.

Please notice that what I suggest will work anyway. I only propose to make this the official usage. Debresser (talk) 12:48, 13 September 2009 (UTC)[reply]

If it works already then why change anything? — Martin (MSGJ · talk) 13:45, 13 September 2009 (UTC)[reply]
Well the documentation can be changed. Rich Farmbrough, 14:01, 13 September 2009 (UTC).[reply]

I seem to remember it worked. It doesn't. But it should, because it is the easiest and most natural way. Debresser (talk) 15:06, 13 September 2009 (UTC)[reply]

If the second parameter is not defined then it will link to the TOC. This is also a useful feature, no? — Martin (MSGJ · talk) 15:13, 13 September 2009 (UTC)[reply]
Yes, definitely. But it should be easy to link to a section with "#". After all, that is how we link to sections all the time. Debresser (talk) 19:02, 13 September 2009 (UTC)[reply]

Proposal

 Done Actually, after having a good look at the template, and doing a small test on the sandbox, I saw that it is precisely this feature, redirecting to the TOC, that invalidates links to sections. This also explains why I remember it used to work, because this feature was added only in October 2008. So I propose to remove the linking to the TOC. The TOC is anyways usually at the beginning. Personally, I have even found it annoying at times, to be redirected to the TOC rather, a few lines below the top, than to the precise top of the page. Debresser (talk) 10:49, 5 October 2009 (UTC)[reply]

I don't have a problem with this. — Martin (MSGJ · talk) 11:20, 5 October 2009 (UTC)[reply]
Neither do I, so done, I've seen newly added talkbacks trying to link to the section that way, so it's probably a good thing to have that functionality back right away. I first thought that something like {{tb|Example#Some section header}} would look stupid like "new messages at Example#Some section header's talk page", but since we route the name through {{PAGENAME}} the section part is chopped off.
Amalthea 11:42, 5 October 2009 (UTC)[reply]
Sounds about right to me. But the template looks OK, is the problem that it inserts the "#" and so do you? Where's your test code? Rich Farmbrough, 12:37, 5 October 2009 (UTC).[reply]
To whom are you replying? Amalthea 12:43, 5 October 2009 (UTC)[reply]
He was answering to a notice about this discussion on his talkpage. No, the problem is not that both the template and I add "#". As I said, the problem is the default anchoring to the TOC, which meshes with my anchoring through "#". It is fixed now. Thank you for your reply. Debresser (talk) 14:06, 5 October 2009 (UTC)[reply]
Ah, I should have added a {{tick}} to make it more obvious that it had been changed already. Amalthea 14:30, 5 October 2009 (UTC)[reply]

{{mytalk}} description typo

Resolved

you username > your username Eric talk 17:35, 7 October 2009 (UTC)[reply]

checkY Done, but you could have done that yourself, template documentation is usually stored in a subpage of the documentation itself. Amalthea 07:57, 8 October 2009 (UTC)[reply]
Sorry, I didn't see an indication of that when I looked over the edit protection message. Thanks. Eric talk 11:57, 8 October 2009 (UTC)[reply]
No need to apologize, just wanted to point it ot for the future. --Amalthea 12:10, 8 October 2009 (UTC)[reply]

Date parameter

I'd like to propose adding a date parameter to this template. Because sometimes you see a talkback template on a talkpage and would like to know when it was placed there. It's not a big deal, but it's small and informative. Debresser (talk) 16:18, 9 November 2009 (UTC)[reply]

Something like <small>{{#time: j F Y}}</small>, rendering 10 August 2024. Debresser (talk) 16:25, 9 November 2009 (UTC)[reply]
The template already has the ts timestamp parameter. Since the talkback template isn't substed onto talk pages, it needs to be provided manually though, that's why you don't see it used that much. Friendly automatically adds it. Amalthea 18:05, 9 November 2009 (UTC)[reply]
Could we add it automatically? Debresser (talk) 18:13, 9 November 2009 (UTC)[reply]
Not without substitution, I'm afraid, the time parameter has to be placed in the talk page source in plain text, and that only works if you type it manually, use the five tildes, or subst it there. I've just modified an unused redirect to do the work for you, and default to the user who's placing the template, so you can now use {{subst:Talkback subst}}. Documentation is still outdated, the template name is cumbersome, and I'm unsure if the template signature should be changed to make it easier to pass a section anchor, currently you'd have to use an empty first parameter. Feel free, anyone, to tweak it at your will. Amalthea 19:27, 9 November 2009 (UTC)[reply]
Then we come back to the original proposal, to add a date in the way outlined above. Debresser (talk) 00:13, 10 November 2009 (UTC)[reply]
You propose to include the time parser function in the template and you expect that it will then show the time the six letters {{tb}} were added to some page source? How could that possibly work? Imagine there are several transclusions on one page, where would they get the required information? Feel very free to demonstrate this magic in the sandbox.
The only way I can think of that doesn't require changing people's behavior (or MediaWiki) is to ask smackbot to date them post factum, but I don't think you'll find consensus for that.
Amalthea 02:01, 10 November 2009 (UTC)[reply]
You're right. But can't a timesignature be added automatically with some code involving includeonly? Debresser (talk) 02:10, 10 November 2009 (UTC)[reply]
In the end, you always need to have the timestamp as part of the source text of the talk page – there's nowhere else it can come from. The only way to get it there is by typing it manually, using the tilde macro, or having it placed there in the PST phase via a subst:. Amalthea 10:53, 10 November 2009 (UTC)[reply]
I tried it, but you seem to be right. Ok, thanks. Debresser (talk) 13:08, 10 November 2009 (UTC)[reply]
Could we have a parameter called date that does the same thing as ts as that is slightly unusual? -- Eraserhead1 <talk> 12:56, 6 March 2010 (UTC)[reply]
PS couldn't we use the Template:Timestamp to insert the current date automatically? -- Eraserhead1 <talk> 14:00, 6 March 2010 (UTC)[reply]

Please remove the interwiki link to es, this template was seldom used and has been deleted as an unnecessary template. [1]

- ignore me; I just found it on the /doc subpage.   pablohablo. 15:57, 7 December 2009 (UTC)[reply]

Interwiki possibility

I'd like to propose an addition to this template to allow interwiki links by setting interwiki=yes:

<!--

// Check for {{{1}}} parameter

-->{{#if:{{{1|<noinclude>Example</noinclude>}}}|<!--then:

// Image

--><div class="usermessage" style="background-color: #BBDDFF; border-color: #4169E1;"><!--
-->  [[Image:Nuvola apps edu languages.svg|left|40px|link=<!--
// Prefix the given page with User talk:, if no namespace given, unless interwiki=yes
-->    {{#ifeq:{{{interwiki|}}}|yes||{{#ifeq:{{NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}|{{ns:0}}|{{ns:3}}:}}}}<!--
-->    {{{1<noinclude>|Example</noinclude>}}}<!--
// Section link
-->    {{#if:{{{2|}}}|&#35;{{{2}}}}}|You have new messages]]<!--

// Text

-->Hello, {{#titleparts:{{PAGENAME}}|1}}. You have new messages at <!--
// Prefix the given page with User talk:, if no namespace given, unless interwiki=yes
-->  [[{{#ifeq:{{{interwiki|}}}|yes||{{#ifeq:{{NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}|{{ns:0}}|{{ns:3}}}}}}<!--
// Page link
-->: {{{1<noinclude>|Example</noinclude>}}}<!--
// Section link
-->  {{#if:{{{2|}}}|&#35;{{{2}}}}}<!--
// Link text
-->  |{{#if:<!--
// Evaluates to "NOT USERSPACE" if namespace is neither 0 nor 3
-->    {{#switch:{{NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}<!--
-->      |{{ns:0}}|{{ns:3}}=<!--silent--><!--
-->      |NOT USERSPACE}}<!--
// Evaluates to "IS SUBPAGE" if the page is a subpage
-->    {{#ifeq:{{#titleparts:{{{1<noinclude>|Example</noinclude>}}}|1|2}}|<!--
-->      <!--empty-->|<!--silent-->|IS SUBPAGE}}<!--
// Display full page title if either NOT USERSPACE or IS SUBPAGE is true
-->    |{{#ifeq:{{{interwiki|}}}|yes||{{#ifeq:{{NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}|{{ns:0}}|{{ns:3}}:}}}}<!--
-->    {{{1<noinclude>|Example</noinclude>}}}<!--
// Display the PAGENAME of {{{1}}} (i.e. the user name) otherwise
-->    |{{#ifeq:{{{interwiki|}}}|yes|{{{1|}}}|{{PAGENAME:{{{1<noinclude>|Example</noinclude>}}}}}'s talk page}}}}]].<br /><!--

// Timestamp, notice

--><span class="plainlinks" style="font-size: 88%; font-weight: normal;">{{#if:{{{ts|}}}|Message added {{{ts}}}.}} You can [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} remove this notice] at any time by removing the {{tl|Talkback}} or {{tl|Tb}} template.</span><!--
--></div><!--

// Display an error message if no parameter given

-->|<!--else:
--><span class="error">ERROR: Please enter the ''username'' parameter when using the {{tl|Talkback}} template.</span>}}
<noinclude>

{{Documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
{{pp-template}}
</noinclude>

Any corrections or opposition? MC10 (TCGBLEM) 21:32, 31 December 2009 (UTC)[reply]

Wait, it doesn't work yet. Fixing. MC10 (TCGBLEM) 21:48, 31 December 2009 (UTC) Fixed. MC10 (TCGBLEM) 22:28, 31 December 2009 (UTC)[reply]


Please change the current code to the code written above to allow interwiki capability. MC10 (TCGBLEM) 03:26, 11 January 2010 (UTC)[reply]

Done. User:Zscout370 (Return Fire) 08:23, 11 January 2010 (UTC)[reply]
This broke the testcases with anchored links, see the current Template:Talkback/testcases, so I've reverted it.
In any case, could we find some implicit way to do this? Detect whether a link looks like an interwiki link using {{Str find}}?
Amalthea 09:27, 11 January 2010 (UTC)[reply]
That would complicate the code a lot—you would have to input all of the language prefixes (es: fr: zh: etc.). MC10 (TCGBL) 17:42, 17 January 2010 (UTC)[reply]
The anchor links were broken because the &#35; entities were replaced with a simple # sign, which breaks the link. I restored the entities in the code above and in the sandbox. Please do some more testing. EdokterTalk 20:52, 17 January 2010 (UTC)[reply]
Which probably happened because the entities are properly rendered, and the code was copied from the rendered page instead of from the source. It should now display properly as well. EdokterTalk 20:57, 17 January 2010 (UTC)[reply]

Yes, what about interwiki link !
link=User talk::fr:Discussion utilisateur:Calliopejen1#Modèle:Carte avec géolocalisation
link=User talk::fr:Discussion utilisateur:Calliopejen1#Modèle:Carte avec géolocalisation
Hello, Talkback. You have new messages at [[User talk::fr:Discussion utilisateur:Calliopejen1#Modèle:Carte avec géolocalisation|Discussion utilisateur:Calliopejen1's talk page]].
Message added 11 mars 2010 à 17:43. You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.
It doesn't work !
"interwiki=yes" is not a good solution ; "iw=fr" seems better. But best solution is :
{{#ifexits:Talk {{{1}}}|<!-- else use "Talk {{{1}}}"
-->
|<!-- else use "{{{1}}}"

[[{{{1}}}|You have new message]]  is enough

-->}}
  <STyx @ 17:07, 11 March 2010 (UTC)[reply]

CSS class

Why does this template use class="usermessage"? Is there a specific need for it to act like a mediawiki message, or is this a "neat design choice" kind of thing?
— V = I * R (Talk • Contribs) 20:24, 12 February 2010 (UTC)[reply]

Yes, it was indeed initially intended to mimic the "You have new messages" box. That, and it allows the box to fit all the skins, as they all have different styling. EdokterTalk 23:44, 12 February 2010 (UTC)[reply]
Ah. Well, that kind of sucks. The only reason I noticed (and hence, brought the subject up here) is because I recently customized the usermessage class in my personal CSS, and I've suddenly noticed that it's been affecting this template as well. I'd say that it's a bad kludge use the usermessage class here, but then I'm complaining because I've customized it, so... *shrug* It would be nice if you guys could find a different method to accomplish the same things though. (copying the directly relevant CSS from the class to be in a local div within the template seems to be an obvious possible solution, by the way)
— V = I * R (Talk • Contribs) 02:43, 13 February 2010 (UTC)[reply]
Perhaps that would be better. Having looked through the skins, it doesn't look all that hot anyway, while other box templates look the same as in monobook. EdokterTalk 21:51, 18 February 2010 (UTC)[reply]
Thanks Edokter!
— V = IR (Talk • Contribs) 09:29, 20 February 2010 (UTC)[reply]

hi,

I am a resident of ahmedabad. The lines " jab kutte pe sassa aaya......" which have been removed, are very famous punch lines for the establishment of ahmedabad city. 'kutta' means dog, and sassa means rabbit....The lines says...when a rabbit was seen chasing a dog...king ahmed shah was so astonished...that he built a new city ahmedabad there.

regards, ankita —Preceding unsigned comment added by 117.196.15.39 (talk) 06:51, 26 February 2010 (UTC)[reply]

Melesse (user) PLEASE EXCUSE MY IGNORANCE AS IM WIKI NOVICE CANT SEE HOW TO MESSAGE BACK RE A CHANGE YOUVE MADE TO John Reames article, i own the photo in question as it is my father who commissioned the photo in his capacity of owner of lincoln city football club at the time and the photos were handed over directly by the club, please reinstate the photo and article as i left it PLEASE. big thanks and sorry..didnt know where to message —Preceding unsigned comment added by Tomreames (talkcontribs) 18:59, 26 February 2010 (UTC)[reply]

TB for talk pages

The word "Wikipedia" needs to be removed from the code to copy and paste, as it makes the link invalid -

Hello, Talkback. You have new messages at Wikipedia talk:2010 Bahrain Grand Prix.
You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

- it should look like this

Hello, Talkback. You have new messages at Talk:2010 Bahrain Grand Prix.
You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

. Mjroots2 (talk) 10:01, 13 March 2010 (UTC)[reply]