Template:Resource: Difference between revisions
No edit summary |
No edit summary |
||
| Line 32: | Line 32: | ||
{{!}} [{{{URL}}} Visit Site] | {{!}} [{{{URL}}} Visit Site] | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{#show: {{FULLPAGENAME}} |?Has topic tag}}| | ||
{{!}}- | {{!}}- | ||
! Topics | ! Topics | ||
{{!}} {{#show: {{FULLPAGENAME}} |?Has topic tag}} | {{!}} {{#arraymap:{{#show: {{FULLPAGENAME}} |?Has topic tag}}|,|t| | ||
[[{{#trim:t}}|{{#replace:{{#trim:t}}|Tag:|}}]] | |||
|, }} | |||
}} | }} | ||
{{#if:{{{Status|}}}| | {{#if:{{{Status|}}}| | ||
Revision as of 06:15, 23 September 2025
Template:Resource Master template for Resource entries. Call via type wrappers only (e.g., {{Book|…}}). Handles infobox and shared semantics for headless API pulls.
Master template for all Resource entries. Use via type-specific wrappers (e.g., Book, App).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | Image | Filename of the image for the infobox (e.g., "Tool_Logo.png"). | File | optional |
| Display Title | Display Title | Primary, user-facing title of the resource. | Line | optional |
| Subtitle | Subtitle | Short descriptive tagline. | Line | optional |
| Resource Type | Resource Type | Type of resource (e.g., Book, App, Course). Set by wrapper templates. | Page name | optional |
| Author/Creator | Author | Creator, publisher, or vendor as appropriate. | Line | optional |
| URL | URL | Primary external link (homepage, store page, etc.). | URL | optional |
| Topic Tags | Topic Tags | Comma-separated Topic Tags. Enter either "Tag:Habits, Tag:Productivity" or "Habits, Productivity". | Line | required |
| Status | Status | Publication status. Only Published should surface on the front end.
| Line | required |
| Featured? | Is Featured | Set to 'yes' to highlight this item. | Boolean | optional |
| Owner | Owner | Responsible username (no "User:" prefix). | User | required |
| Description | Description | Short 1–2 sentence summary shown on cards and lists. | String | required |
| Main Content | Content | Body content; wikitext/VisualEditor supported. | Content | suggested |