User:JohnE/Hover Text on Link
From The Elvis Costello Wiki
Jump to navigationJump to search
Use <span title>
- Lansdale Reporter, November 14, 2014
- Now Magazine, October 2, 2003
- Now Magazine, September 23, 2004
- Der Spiegel, March 19, 1989
- Stereoplay, September 1984
Add this to the byline of an article, and then auto include this as the hover text for the article link on the What's New page. <onlyinclude>{{#ifeq:{{{transcludesection|byline}}}|byline|
Use Template for Hover Text
Original:
[[Now Magazine, October 2, 2003|<span title="Tim Perlich reviews North.">Now Magazine, October 2, 2003</span>]]
}}Ending tag for the byline </onlyinclude>
Want to have the byline tags as a standard template to make this easier to insert. There is a problem with having "<onlyinclude>" in a template. Have tried many different points from web that people say fixes this, but it doesn't seem to for me. This is the template, {{bylinebegin}}: <onlyinclude>{{#ifeq:{{{transcludesection|byline}}}|byline| Opening bracket is "&-l-t-;", without the hypens bw each letter. This is the template, {{bylineend}}: }}</onlyinclude>
Template:
{{HoverLink|Now Magazine, October 2, 2003|Tim Perlich reviews North.}}
Template with no hover text:
{{HoverLink|Now Magazine, October 2, 2003}}