Community card generator for Special:Community. This module generates card blocks that match the design of the "Start here" maintenance cards on the Community page.
These cards use a DPL category query under the hood, so they will only be displayed when the category is populated with >=1 page. The card will also update automatically as contributors empty the maintenance categories.
Usage
1. Install the {{CommunityCard}} template for each card module:
2. Install the {{CommunityBlock}} template to act as a wrapper for all the card modules:
Documentation
Package items
community.card_module(data, frame)(function)- Generates a community page card module.
- Parameters:
- Returns: (string)
community.card(frame)(function)- Wrapper for
p. card_moduleto be used in templates. - Parameter:
frameFrame from module context. (Frame) community.block(frame)(function)- Wrapper for card module block to be used in templates.
- Parameter:
frameFrame from module context. (Frame)