Module:StreetBrawlItems: Difference between revisionsGive feedback
Filter out disabled items; render Common as a clickable label toggle with a pipe-delimited list (with help from vergir-bot LLM) |
Common: use native collapsible toggle so its state class drives a flipping caret (with help from vergir-bot LLM) |
||
| Line 122: | Line 122: | ||
if collapse then | if collapse then | ||
-- Common: a | -- Common: a native collapsible whose header ("Common") reads like the other | ||
-- labels; styles.css hides the default toggle text and shows a flipping caret. | |||
local head = (label ~= "" and label) or "Common" | local head = (label ~= "" and label) or "Common" | ||
return ' | return '{| class="wikitable mw-collapsible mw-collapsed sb-common"\n' | ||
.. '! class="sb-common-head" | ' .. head .. '\n|-\n' | |||
.. ' | .. '| <div class="sb-common-body">' .. table.concat(parts, " | ") .. '</div>\n|}' | ||
.. '<div class="sb-common-body | |||
end | end | ||