Template talk:Sic

From Guild Wars 2 Wiki
Jump to navigationJump to search

mouseover[edit]

Is it possible to add a mouseover event that displays an optional text (added parameter) describing the sic error? ~~ User Kiomadoushi sig.png Kiomadoushi 03:13, 29 June 2011 (UTC)

It is, but it is a bit complicated. I will try anyway. - Yandere Talk to me... 10:37, 4 August 2012 (UTC)
<span style="margin: 0em 0.1em; font-size: 85%;" {{#if:{{{1|}}}|title="{{{1}}}"}}>{{#if:{{{1|}}}|[''sic'']|[''[[wikipedia:sic|sic]]'']}}</span> should work, but you'd lose the link to wikipedia when you invoke the tooltip. Not sure if that's acceptable, maybe someone could come up with a more desirable solution. — Rari User Rari sig.png 12:18, 4 August 2012 (UTC)
Yeah I found this solution, too. It is way more complicated if you try to keep the link. - Yandere Talk to me... 12:27, 4 August 2012 (UTC)
I have a sic template in [[User:Yandere/sic| my Userspace]] which can do a hover over text and a link, but it redirects to the sic page in this wiki. Is it possible to put a redirect on the wikipedia page on the [[sic]] page?
With the we can have pretty much both. {{User:Yandere/sic|template:sic with mouse over text}} - Yandere Talk to me... 20:29, 4 August 2012 (UTC)
I took the relevant code from {{H:title}} and stuck it in here. Seemed pretty easy to me. —Dr Ishmael User Dr ishmael Diablo the chicken.png 20:36, 4 August 2012 (UTC)
Well, I started to learn the Media Wiki macro language a week ago, so I am still not sure how everything works. :P
But anyway, nice work. - Yandere Talk to me... 07:19, 5 August 2012 (UTC)
When there's a reason given, can we give the text a dotted underline and give the cursor a question mark thing, like Template:UTC time? pling User Pling sig.png 00:08, 4 May 2013 (UTC)
Ooh, I love it when you talk technical. — snogratUser Snograt signature.png 00:14, 4 May 2013 (UTC)
Done; although there are two lines now when hovering over it… poke | talk 01:30, 4 May 2013 (UTC)
Assign class="sic" to the span wrapper, then add span.sic a { text-decoration: none; } to Common.css. You could even move the cursor/border styles into the class definition. —Dr Ishmael User Dr ishmael Diablo the chicken.png 02:40, 4 May 2013 (UTC)