Jump to content

Template:Knowledge: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
Line 113: Line 113:
'''Template:Knowledge'''
'''Template:Knowledge'''


Master template for Knowledge entries. Call via format wrappers only (e.g., {{Summary}}). Handles infobox and shared semantics for headless API pulls.
Master template for Knowledge entries. Call via format wrappers only (e.g.,  
</noinclude>
<nowiki>{{Summary|…}}</nowiki>). Handles infobox and shared semantics for headless API pulls.
<templatedata>
{
"params": {
"Image": {
"label": "Image",
"description": "The filename of the image to display in the infobox (e.g., \"My_Book_Cover.jpg\").",
"type": "wiki-file-name"
},
"Display Title": {
"label": "Display Title",
"description": "The primary, user-facing title of the entry.",
"type": "line"
},
"Subtitle": {
"label": "Subtitle",
"description": "A short, descriptive tagline that appears below the main title.",
"type": "line"
},
"Knowledge Format": {
"label": "Knowledge Format",
"description": "The format of the entry. This is set automatically by the wrapper template and should not be changed.",
"example": "Summary",
"type": "wiki-page-name",
"suggestedvalues": [
"Summary",
"Guide",
"Big Idea",
"Tips",
"Visual",
"Framework",
"Quick Insight"
],
"suggested": true
},
"Author": {
"label": "Author",
"description": "The original creator of the work (e.g., the book's author).",
"type": "line"
},
"Original Title": {
"label": "Original Title",
"description": "The official title of the original work being summarized.",
"type": "line"
},
"Original Source": {
"label": "Original Source",
"description": "The type of the original work.",
"example": "Book",
"type": "line"
},
"URL": {
"label": "URL",
"description": "A relevant external link, such as to the original article or a purchase page.",
"type": "url"
},
"Topic Tags": {
"label": "Tags",
"description": "A comma-separated list of relevant Topic Tags. You must use the full page name.",
"type": "line",
"required": true
},
"Status": {
"label": "Status",
"description": "The publication status of the entry. \"Draft\" keeps it hidden from public view.",
"type": "line",
"suggestedvalues": [
"Draft",
"Published",
"Archived"
],
"default": "Draft",
"required": true
},
"Is Featured": {
"label": "Featured?",
"description": "Set to 'yes' to highlight this content on hub pages.",
"type": "boolean"
},
"Owner": {
"label": "Owner",
"description": "The username of the person responsible for this content's accuracy (do not include the \"User:\" prefix).",
"type": "wiki-user-name",
"required": true
},
"Description": {
"label": "Description",
"description": "The short, 1-2 sentence summary used on content cards across the site.",
"type": "string",
"required": true
},
"Content": {
"label": "Main Content",
"description": "The main body of the article. This is a free-form text area that supports all standard wikitext formatting.",
"type": "content",
"suggested": true
}
},
"description": "Master template for all Knowledge entries. Handles infobox and shared semantics. Should only be called by a format-specific wrapper template.",
"format": "block"
}
</templatedata></noinclude>

Revision as of 17:01, 21 September 2025

Template:Knowledge

Master template for Knowledge entries. Call via format wrappers only (e.g., {{Summary|…}}). Handles infobox and shared semantics for headless API pulls.

Master template for all Knowledge entries. Handles infobox and shared semantics. Should only be called by a format-specific wrapper template.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
ImageImage

The filename of the image to display in the infobox (e.g., "My_Book_Cover.jpg").

Fileoptional
Display TitleDisplay Title

The primary, user-facing title of the entry.

Lineoptional
SubtitleSubtitle

A short, descriptive tagline that appears below the main title.

Lineoptional
Knowledge FormatKnowledge Format

The format of the entry. This is set automatically by the wrapper template and should not be changed.

Suggested values
Summary Guide Big Idea Tips Visual Framework Quick Insight
Example
Summary
Page namesuggested
AuthorAuthor

The original creator of the work (e.g., the book's author).

Lineoptional
Original TitleOriginal Title

The official title of the original work being summarized.

Lineoptional
Original SourceOriginal Source

The type of the original work.

Example
Book
Lineoptional
URLURL

A relevant external link, such as to the original article or a purchase page.

URLoptional
TagsTopic Tags

A comma-separated list of relevant Topic Tags. You must use the full page name.

Linerequired
StatusStatus

The publication status of the entry. "Draft" keeps it hidden from public view.

Suggested values
Draft Published Archived
Default
Draft
Linerequired
Featured?Is Featured

Set to 'yes' to highlight this content on hub pages.

Booleanoptional
OwnerOwner

The username of the person responsible for this content's accuracy (do not include the "User:" prefix).

Userrequired
DescriptionDescription

The short, 1-2 sentence summary used on content cards across the site.

Stringrequired
Main ContentContent

The main body of the article. This is a free-form text area that supports all standard wikitext formatting.

Contentsuggested