Template:Proposal/doc
Appearance
Description
Template used to declare work-in-progress articles related to glossaLAB.edu clarification activities. This template:
- Handles semantic data storage for authors and metadata.
- Sets the page language dynamically, based on parent Clarus activity.
- Renders a standardized infobox.
- If
PAGENAME/Pending improvementspage exists, transcludes its contents in a textbox at the beginning of the page.
Usage
Place the following code at the top of the proposal page:
{{Proposal
| Created from clarus =
| Has author =
| Was created on date =
| Has publication status =
}}
Parameters
| Parameter | Description | Type | SMW Property |
|---|---|---|---|
| Created from clarus | Source identifier from the Clarus system. Used to look up the page language. | Page | Property:Created from clarus |
| Has author | The username(s) of the author(s). Supports multiple values separated by // string. |
Text/User | Property:Has author username |
| Was created on date | Date the proposal was created. | Date | Property:Was created on date |
| Has publication status | Current status of the document (e.g., Draft, Final). | Text | Property:Has publication status |
Technical Logic
- Semantic Transformation: The template stores raw input in
Has author username, then uses{{#arraymap}}to convert those strings into User-namespace links forProperty:Has author. - Language Handling: Uses
ento set the BCP47 code based on a lookup of the Clarus source page. - Dependencies:
- Template:Infobox proposal: Renders the visual data table.
- Module:Strings: Used for the
parentheticalfunction during author processing. - Module:Page: Handles the
transcludeAsCommentsIfDefinedlogic for improvements.
Tracking
- Pages using this template are added to Category:Proposal.