Fire Emblem Heroes Wiki
Advertisement

ul in output[]

How about using ul for the list of rewards instead of concatenation with +? It has semantic meaning as a list. There is an hlist class the wiki uses for navboxes which can also be applied here. Endilyn (talk) 04:04, 25 August 2019 (UTC)

The problem is MediaWiki automatically splits unindented paragraphs around lists even if they have display:inline; this isn't an issue for hlist since normally a navbox cell doesn't include anything other than the list, but text templates on the wiki should never break paragraph flow. For example, Total rewards: {{Rt|1=[{kind=Orb};{kind=Hero Feather}]}} (3 rounds) produces:

Total rewards: OrbHero Feather (3 rounds)

The same works if the paragraph is indented (wrapped inside <dl> and <dd>):
Total rewards: OrbHero Feather (3 rounds)
I will revert to the <span> version if this MediaWiki parse issue can't be fixed. --HertzDevil (talk) 11:09, 9 September 2019 (UTC)
There is an hlist inline as well I happened to find in this list, <ul class="hlist inline><li>a</li><li>b</li></ul> for example produces:
  • a
  • b
, though it looks like it has problems as well with the strange space before the text, plus it doesn't appear to be part of the MediaWiki default, but on this wiki is on MediaWiki:Hydra.css and is missing from MediaWiki:Common.css and MediaWiki:Mobile.css. Endilyn (talk) 05:16, 31 January 2020 (UTC)
Advertisement