Template:Knowledge
Appearance
Template:Knowledge
Master template for Knowledge entries—call via format wrappers only (e.g.,
| No image provided
| |
| Format | Summaries
|
|---|---|
). Handles infobox and shared semantics for headless API pulls.
Parameters
- Display Title: Required; user-facing title (Text).
- Subtitle: Optional; tagline (Text).
- Description: Optional; card teaser (Text).
- Image: Optional; filename, auto-prefixes File: (File).
- Knowledge Format: Auto-passed by wrapper (Page; controlled: Guides|Summaries|etc.).
- Topic Tags: Required; comma-separated Tag: pages (e.g., Tag:Habits,Tag:Productivity) for multi-value filtering (Page).
- Status: Publication state; defaults Draft (Text; controlled: Draft|Published|Archived).
- Is Featured: yes/no flag; defaults no (Boolean).
- Owner: Required; username for accountability (Text).
- URL: Optional; external link (URL).
- Author: Optional; original creator (Text).
- Original Title: Optional; source title (Text).
- Original Source: Optional; e.g., Book|Article (Text; controlled vocab via forms).
- Content: Auto-passed; main body wikitext.
Validation
- **Test Query**: On a sample page: `Tag:Habits Published`—should annotate correctly, queryable via API. - **Edge Case**: Empty tags defaults to no property (avoids blank arrays); boolean false hides from featured lists.
Next: Audit format-specific wrappers (e.g., Template:Summary)?