Jump to content

Template:Resource

From WYOS Wiki
Revision as of 06:35, 21 September 2025 by Admin (talk | contribs)

Template:Resource

Master template for Resource entries—call via type wrappers only (e.g.,

No image provided


Type Book





Book






false

{{#if:|}


). 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.