Log in

Template talk:Adventure overview

From PathfinderWiki
← $1

Using hList

Is there a way to make this template display the unordered lists using {{hlist}}? If so, I can't seem to figure it out.—Paizo Publishing, LLC.png Yoda8myhead (talk) 20:28, 15 September 2014 (UTC)

I need to dig into how to make #foreach and unordered lists play well together, but using <li> tags and class = hlist on the table itself seems to do the trick. --Oznogon (talk) 00:33, 16 September 2014 (UTC)
The long and short of it: #foreach doesn't put each unordered list item on its own line, breaking the formatting. That was the preferred behavior for {{dot}}, but it breaks unordered lists as mediawiki treats all asterisks after the first as actual asterisks rather than new list items. Using <li> tags with #foreach forces it to recognize each list item as list items regardless of line breaks. A (beneficial?) side effect is that this method no longer produces a bullet before the first item in these lists, as .hlist is smart enough to omit the dot from the first item. I've tweaked the styles to accommodate this by adding a slight padding on the right side of the table cells to prevent the list items from colliding with the left-side row headers, and removing the valign attribute as .hlist overrides it. (On my browser, it's about a 1px difference.)
(tl;dr: When using #foreach to generate lists to use with .hlist, we have to use <li> HTML tags instead of * to build lists or mediawiki won't render the list correctly.) --Oznogon (talk) 00:49, 16 September 2014 (UTC)

Scenario Tiers

I've noticed this template now assigns a category (such as Category:Tier 1-3 scenarios) to all adventures. First off, holy cow - that's an impressive feat! Second, I'm not sure it's working as intended. I see on In Hell's Bright Shadow that the pfs flag isn't set, but the tier still gets assigned. --FoiledAgain (talk) 12:13, 17 November 2014 (UTC)

Good catch! The tier autocategorization assumed only PFS scenarios would have multiple levels. I've tweaked {{Adventure overview}} to also require the pfs flag. Thanks! --Oznogon (talk) 20:18, 17 November 2014 (UTC)