Template:Infobox game: Difference between revisions

From fattwiki
(Add TemplateData to make infobox work with visual editor)
Tag: 2017 source edit
m (moved templatedata to documentation page and added documentation template)
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
   </data>
   </data>
</infobox>
</infobox>
<noinclude>
<noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>
Example usage:<pre>
{{Infobox Game
| title      = Example
| image      = Example
| caption    = Example
| creators    = Example
| players    = Example
| link        = Example
| appears_in  = Example
}}
</pre>
<templatedata>
{
"params": {
"title": {
"label": "Title",
"description": "Title of the game",
"example": "World Wide Wrestling",
"type": "content",
"default": "Defaults to page name",
"required": true
},
"image": {
"label": "Image",
"description": "Game cover art",
"example": "World Wide Wrestling RPG.png",
"type": "string"
},
"caption": {
"label": "Caption",
"description": "Image caption",
"example": "Cover art",
"type": "content"
},
"creators": {
"label": "Creator(s)",
"description": "Creator(s) of the game",
"example": "Nathan D. Paoletta",
"type": "content",
"suggested": true
},
"players": {
"label": "Players",
"description": "Number of players the game is designed for",
"example": "3-9",
"type": "content"
},
"link": {
"label": "Link",
"description": "External link to the game",
"example": "[https://ndpdesign.com/wwwrpg Official site]",
"type": "content",
"suggested": true
},
"appears_in": {
"label": "Appears In",
"description": "Episodes, arcs, or seasons of Friends at the Table where the game is played",
"example": "[[The Grapplers Down at Promenade Arena]]",
"type": "content",
"suggested": true
}
}
}
</templatedata>
[[Category:Infoboxes]]</noinclude>

Latest revision as of 15:01, 23 November 2023

Syntax[edit source]

{{Infobox game
 | title       = 
 | image       = 
 | caption     = 
 | creators    = 
 | players     = 
 | link        = 
 | appears_in  = 
}}

Example[edit source]

{{Infobox game
 | title       = World Wide Wrestling
 | image       = 
 | caption     = 
 | creators    = Nathan D. Paoletta
 | players     = 3-9
 | link        = [https://ndpdesign.com/wwwrpg Official site]
 | appears_in  = [[The Grapplers Down at Promenade Arena]]
}}

TemplateData[edit source]

This is the TemplateData for this template. It is used by the Visual Editor and other tools.

This template can be used to create an infobox for an RPG that has been played on the show.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title of the game

Default
Defaults to page name
Example
World Wide Wrestling
Contentrequired
Imageimage

Game cover art

Example
World Wide Wrestling RPG.png
Stringoptional
Captioncaption

Image caption

Example
Cover art
Contentoptional
Creator(s)creators

Creator(s) of the game

Example
Nathan D. Paoletta
Contentsuggested
Playersplayers

Number of players the game is designed for

Example
3-9
Contentoptional
Linklink

External link to the game

Example
[https://ndpdesign.com/wwwrpg Official site]
Contentsuggested
Appears Inappears_in

Episodes, arcs, or seasons of Friends at the Table where the game is played

Example
[[The Grapplers Down at Promenade Arena]]
Contentsuggested