Template talk:Hovertext: Difference between revisions

From Epic Path
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user 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)
Also also, hovertext with wikilinks in it gets hosed.  Check out the hovertext referring to making a target [[flat-footed]] - it renders surprisingly badly. [[User:Bstern|bstern]] <small>([[User talk:Bstern|talk]])</small> 23:30, 16 July 2019 (UTC)
yeah, you can't put any markup in any text that is supposed to show up as a hovertext.  I am awaare of this, and it's why the qualities page /should/ be free of all links, since that's the only place I really used it extensively.  If links have since been added (possibly by me, even), they need to come out, or you are correct, it will be ugly.

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}}