Module:T-CountryHub: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 147: | Line 147: | ||
'intro', | 'intro', | ||
'overview', | 'overview', | ||
' | 'intelligentMasonry', | ||
'wrapperClose', | 'wrapperClose', | ||
'categories', | 'categories', | ||
| Line 514: | Line 512: | ||
} | } | ||
-- MASONRY LAYOUT INTEGRATION | -- INTELLIGENT MASONRY LAYOUT INTEGRATION | ||
-- | -- Single block that handles all masonry logic at render-time (Blueprint pattern) | ||
template.config.blocks.intelligentMasonry = { | |||
feature = 'fullPage', | |||
render = function(template, args) | |||
return MasonryLayout.renderIntelligentLayout(template, args, { | |||
cardDefinitions = cardDefinitions, | |||
options = masonryOptions, | |||
blockRenderers = { | |||
organizations = template.config.blocks.organizations, | |||
people = template.config.blocks.people, | |||
geoTlds = template.config.blocks.geoTlds, | |||
meetings = template.config.blocks.meetings, | |||
nra = template.config.blocks.nra, | |||
laws = template.config.blocks.laws, | |||
documents = template.config.blocks.documents, | |||
resources = template.config.blocks.resources | |||
} | |||
}) | |||
end | |||
} | } | ||