No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
{ | { | ||
"params": { | "params": { | ||
"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": { | ||
"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 | "description": "File name of the featured image.", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"id": { | "id": { | ||
"label": "YouTube video ID.", | |||
"description": "YouTube video identifier", | |||
"label": "YouTube video ID | |||
"description": "YouTube video identifier | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "attribution": { | ||
"label": " | "label": "Attribution", | ||
"description": " | "description": "Creator, uploader, owner, or source credited for the media.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "game": { | ||
"label": " | "label": "Related game", | ||
"description": " | "description": "Wiki page for the game associated with the featured content.", | ||
"type": " | "type": "wiki-page-name" | ||
}, | }, | ||
"featured | "mediatype": { | ||
" | "label": "Type of content", | ||
" | "description": "Selects the featured card variant.", | ||
"type": "string", | |||
"suggestedvalues": [ | |||
"Video", | |||
"Image" | |||
], | ], | ||
" | "default": "Video", | ||
" | "required": true | ||
}, | }, | ||
" | "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" | "type": "string" | ||
}, | }, | ||
"alt | "alt": { | ||
"label": "Alternative text.", | |||
"label": "Alternative text", | |||
"description": "Accessible textual description of the featured media.", | "description": "Accessible textual description of the featured media.", | ||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "mediatype", | ||
"category", | |||
"header", | "header", | ||
"title", | "title", | ||
| Line 102: | Line 73: | ||
"image", | "image", | ||
"id", | "id", | ||
"attribution", | "attribution", | ||
"alt | "alt", | ||
"game" | "game" | ||
] | ], | ||
"description": "This is the main template for the Featured namespace." | |||
} | } | ||
</templatedata> | </templatedata> | ||
| Line 115: | Line 83: | ||
<pre> | <pre> | ||
{{Featured | {{Featured | ||
|video | |mediatype=video | ||
|Video of the Month | |header=Video of the Month | ||
|EF2 Multiplayer Highlights! | |title=EF2 Multiplayer Highlights! | ||
|Rediscover Elite Force 2 multiplayer and newly resurrected community servers. | |tagline=Rediscover Elite Force 2 multiplayer and newly resurrected community servers. | ||
|iQ0pANm9kls | |id=iQ0pANm9kls | ||
}} | }} | ||
</pre> | </pre> | ||
;Result | ;Result | ||
{{Featured | {{Featured | ||
|video | |mediatype=video | ||
|Video of the Month | |header=Video of the Month | ||
|EF2 Multiplayer Highlights! | |title=EF2 Multiplayer Highlights! | ||
|Rediscover Elite Force 2 multiplayer and newly resurrected community servers. | |tagline=Rediscover Elite Force 2 multiplayer and newly resurrected community servers. | ||
|iQ0pANm9kls | |id=iQ0pANm9kls | ||
}} | }} | ||
Latest revision as of 10:25, 7 June 2026
This is the main template for the Featured namespace.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Type of content | mediatype | Selects the featured card variant.
| String | required |
| Featured category | category | Editorial category assigned to the featured content. | String | optional |
| Card header text | header | Text of the card header. | String | optional |
| Card title | title | Display title of the featured content. | String | optional |
| Card tagline | tagline | Tagline of the featured content. | String | optional |
| Featured description | description | Text displayed in the card and stored as the featured description. | Content | optional |
| Image name | image | File name of the featured image. | File | optional |
| YouTube video ID. | id | YouTube video identifier | String | optional |
| Attribution | attribution | Creator, uploader, owner, or source credited for the media. | String | optional |
| Alternative text. | alt | Accessible textual description of the featured media. | String | optional |
| Related game | game | Wiki page for the game associated with the featured content. | Page name | optional |
Example
{{Featured
|mediatype=video
|header=Video of the Month
|title=EF2 Multiplayer Highlights!
|tagline=Rediscover Elite Force 2 multiplayer and newly resurrected community servers.
|id=iQ0pANm9kls
}}
- Result
Video of the Month
EF2 Multiplayer Highlights!
Rediscover Elite Force 2 multiplayer and newly resurrected community servers.
