WdsTooltips/Usage Notes

This page is a documentation on troubleshooting of issues often encountered when setting up WdsTooltips.
== Toggle Creating Line Breaks ==
By default, MediaWiki wraps plain text blocks inside paragraphs (). Since is a block-level element which only allows phrasing elements inside, it gets cut off/closed as soon as meeting a element, preventing the tooltip toggle from being used in-line with other text. This behaviour can be worked around by manually wrapping the containing text block with or (or any of the relevant HTML tags) that can avoid the auto-generation of elements.
To best comply with accessibility and semantics, the format specified below is recommended.
;Wikitext
:
;Output
:This is an tooltip.
== Using Line-break Wikitext ==
As whitespaces are stripped from the beginning and end of the content, starting the content with line-break wikitext markups (*, #, ;, :, {| |}) might not be straightforward. This can be worked around by inserting a whitespace character <nowiki/> at the beginning.
Wikitext
Output
== Passing Named Parameters ==
Depending on the complexity of markup, passing parameters as named (2 = or content =) might also be necessary for the parser to properly understand the template call.
Wikitext
Output