Template:Resource: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 119: | Line 119: | ||
=== Validation === | === Validation === | ||
- **Syntax Check**: Braces balanced; Owner as User: for namespace queries. | - **Syntax Check**: Braces balanced; Owner as User: for namespace queries. | ||
- **Test Query**: `{{#ask: [[Category:Resources]] [[Has resource type::[[Books]]]] [[Has owner::User:TestUser]] |?Has display title |format=plainlist }}`—lists owned Books. | - **Test Query**: `{{#ask: [[Category:Resources]] [[Has resource type::[[Books]]]] [[Has owner::User:TestUser]] |?Has display title|format=plainlist }}`—lists owned Books. | ||
</noinclude> | </noinclude> | ||
Revision as of 06:36, 21 September 2025
Template:Resource
Master template for Resource entries—call via type wrappers only (e.g.,
| No image provided
| |
| Type | Book
|
|---|---|
). 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).
- Resource Type: Auto-passed by wrapper (Page; controlled: Apps|Books|etc.).
- Topic Tags: Required; comma-separated Tag: pages (e.g., Tag:Productivity,Tag:Habits) 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; stores as User: page).
- URL: Optional; external link (URL).
- Author: Optional; creator/author (Text).
- Content: Auto-passed; main body wikitext (e.g., why this resource works).
Validation
- **Syntax Check**: Braces balanced; Owner as User: for namespace queries. - **Test Query**: `The part "]]" of the query was not understood.</br>Results might not be as expected.`—lists owned Books.