User:JohnE/Hover Text on Link: Difference between revisions
From The Elvis Costello Wiki
Jump to navigationJump to search
(blank line) |
(add details of trying to use the byline tags in a template) |
||
Line 7: | Line 7: | ||
*[[Stereoplay, September 1984|<span title="Willi Andresen reviews Goodbye Cruel World.">Stereoplay, September 1984</span>]] | *[[Stereoplay, September 1984|<span title="Willi Andresen reviews Goodbye Cruel World.">Stereoplay, September 1984</span>]] | ||
---- | ---- | ||
<pre> | |||
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|</pre> | |||
<onlyinclude>{{#ifeq:{{{transcludesection|byline}}}|byline| | <onlyinclude>{{#ifeq:{{{transcludesection|byline}}}|byline| | ||
<!-- {{bylinebegin}} --> | <!-- {{bylinebegin}} --> | ||
'''Use Template for Hover Text''' | '''Use Template for Hover Text''' | ||
Line 17: | Line 21: | ||
* [[Now Magazine, October 2, 2003|<span title="Tim Perlich reviews North.">Now Magazine, October 2, 2003</span>]] | * [[Now Magazine, October 2, 2003|<span title="Tim Perlich reviews North.">Now Magazine, October 2, 2003</span>]] | ||
<!-- {{bylineend}} --> | <!-- {{bylineend}} --> | ||
<pre>}}Ending tag for the byline | |||
</onlyinclude></pre> | |||
}}</onlyinclude> | }}</onlyinclude> | ||
<pre>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}}: | |||
<nowiki> <onlyinclude>{{#ifeq:{{{transcludesection|byline}}}|byline| </nowiki> | |||
Opening bracket is "&-l-t-;", without the hypens bw each letter. | |||
This is the template, {{bylineend}}: | |||
}}</onlyinclude> | |||
</pre> | |||
------- | |||
Template: | Template: |
Latest revision as of 23:58, 2 March 2024
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}}