dev

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:
data Information for the card. (table)
data.icon Icon code (Material Icons). (string)
data.title Card title. (string)
data.link1 First article link (optional). (string)
data.link2 Second article link (optional). (string)
data.link3 Third article link (optional). (string)
data.footer Article link for full list. (string)
frame Frame from template context. (Frame)
Returns: (string)
community.card(frame) (function)
Wrapper for p. card_module to be used in templates.
Parameter: frame Frame from module context. (Frame)
community.block(frame) (function)
Wrapper for card module block to be used in templates.
Parameter: frame Frame from module context. (Frame)

See also

Special:Community on Dev Wiki