Template talk:Hovertext: Difference between revisions

From Epic Path
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 13: Line 13:
'''Example:'''
'''Example:'''
* <nowiki>{{Template:Hovertext|link=yes|This is the hover text displayed on mouseover|Weapon Properties#Silent|Silent}}</nowiki>
* <nowiki>{{Template:Hovertext|link=yes|This is the hover text displayed on mouseover|Weapon Properties#Silent|Silent}}</nowiki>
----
There's a bug here, where the <code>|</code> to indicate display text is colliding with the <code>|</code> which defines the end of the if.
It appears that the MediaWiki people know this and choose to ignore it (''q.v.'' [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions Help:Extension:ParserFunctions]).
This is causing the first link on [[Needlesword (Weapon)]]'s weapon qualities, for example, to display with ]] in the link.
I suppose you could hardcode <code><nowiki>https://www.epicpath.org/index.php?title=</nowiki></code> into the link and use <code>[]</code> links instead of <code>[[]]</code> but that seems icky.
[[User:Bstern|bstern]] <small>([[User talk:Bstern|talk]])</small> 23:27, 16 July 2019 (UTC)
... I don't know why the other links aren't doing this, BTW. [[User:Bstern|bstern]] <small>([[User talk:Bstern|talk]])</small> 23:28, 16 July 2019 (UTC)

Latest revision as of 13:33, 17 July 2019

Parameters:

  • link=yes (or exclude)
  • dotted=no (or exclude)


Variables:

  • 1 = hover text
  • 2 = link or display text
  • 3 = alias


Example:

  • {{Template:Hovertext|link=yes|This is the hover text displayed on mouseover|Weapon Properties#Silent|Silent}}