PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

Template:Featured/doc: Difference between revisions

From PC Gaming Shelter
No edit summary
No edit summary
Line 2: Line 2:
{
{
"params": {
"params": {
"1": {
"label": "Type of content",
"description": "Selects the featured card variant.",
"type": "string",
"suggestedvalues": [
"video",
"image"
],
"required": true
},
"header": {
"header": {
"label": "Card header text",
"label": "Card header text",
"type": "string"
"type": "string",
"description": "Text of the card header."
},
},
"title": {
"title": {
"label": "Card title",
"label": "Card title",
"type": "string"
"type": "string",
"description": "Display title of the featured content. "
},
},
"tagline": {
"tagline": {
"label": "Card tagline",
"label": "Card tagline",
"type": "string"
"type": "string",
"description": "Tagline of the featured content."
},
},
"description": {
"description": {
"aliases": [
"text"
],
"label": "Featured description",
"label": "Featured description",
"description": "Text displayed in the card and stored as the featured description.",
"description": "Text displayed in the card and stored as the featured description.",
Line 34: Line 24:
"image": {
"image": {
"label": "Image name",
"label": "Image name",
"description": "File name of the featured image, without the File: prefix.",
"description": "File name of the featured image.",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"id": {
"id": {
"aliases": [
"label": "YouTube video ID.",
"url"
"description": "YouTube video identifier",
],
"label": "YouTube video ID or URL",
"description": "YouTube video identifier or complete video URL.",
"type": "string"
"type": "string"
},
},
"video id": {
"attribution": {
"label": "Video ID",
"label": "Attribution",
"description": "Explicit video identifier to store semantically.",
"description": "Creator, uploader, owner, or source credited for the media.",
"type": "string"
"type": "string"
},
},
"external link": {
"game": {
"label": "External link",
"label": "Related game",
"description": "External source or media URL associated with the featured content.",
"description": "Wiki page for the game associated with the featured content.",
"type": "url"
"type": "wiki-page-name"
},
},
"featured media": {
"mediatype": {
"aliases": [
"label": "Type of content",
"media"
"description": "Selects the featured card variant.",
"type": "string",
"suggestedvalues": [
"Video",
"Image"
],
],
"label": "Featured media page",
"default": "Video",
"description": "Local wiki file or page associated with the featured content.",
"required": true
"type": "wiki-page-name"
},
},
"featured category": {
"category": {
"aliases": [
"category"
],
"label": "Featured category",
"label": "Featured category",
"description": "Editorial category assigned to the featured content.",
"description": "Editorial category assigned to the featured content.",
"type": "string",
"suggestedvalues": [
"Picture of the Month",
"Video of the Month"
]
},
"attribution": {
"label": "Attribution",
"description": "Creator, uploader, owner, or source credited for the media.",
"type": "string"
"type": "string"
},
},
"alt text": {
"alt": {
"aliases": [
"label": "Alternative text.",
"alt"
],
"label": "Alternative text",
"description": "Accessible textual description of the featured media.",
"description": "Accessible textual description of the featured media.",
"type": "string"
"type": "string"
},
"game": {
"label": "Related game",
"description": "Wiki page for the game associated with the featured content.",
"type": "wiki-page-name"
}
}
},
},
"paramOrder": [
"paramOrder": [
"1",
"mediatype",
"category",
"header",
"header",
"title",
"title",
Line 102: Line 73:
"image",
"image",
"id",
"id",
"video id",
"external link",
"featured media",
"featured category",
"attribution",
"attribution",
"alt text",
"alt",
"game"
"game"
]
]

Revision as of 09:58, 7 June 2026

No description.

Template parameters

ParameterDescriptionTypeStatus
Type of contentmediatype

Selects the featured card variant.

Suggested values
Video Image
Default
Video
Stringrequired
Featured categorycategory

Editorial category assigned to the featured content.

Stringoptional
Card header textheader

Text of the card header.

Stringoptional
Card titletitle

Display title of the featured content.

Stringoptional
Card taglinetagline

Tagline of the featured content.

Stringoptional
Featured descriptiondescription

Text displayed in the card and stored as the featured description.

Contentoptional
Image nameimage

File name of the featured image.

Fileoptional
YouTube video ID.id

YouTube video identifier

Stringoptional
Attributionattribution

Creator, uploader, owner, or source credited for the media.

Stringoptional
Alternative text.alt

Accessible textual description of the featured media.

Stringoptional
Related gamegame

Wiki page for the game associated with the featured content.

Page nameoptional

Example

{{Featured
|video
|Video of the Month
|EF2 Multiplayer Highlights!
|Rediscover Elite Force 2 multiplayer and newly resurrected community servers.
|iQ0pANm9kls
}}
Result

Script error: The function "" does not exist.