Difference between revisions of "Template:IFDB/doc"

From blackwiki
Jump to navigation Jump to search
imported>Rqndom
m (Rqndom moved page User:Rqndom/IFDB/doc to Template:IFDB/doc: move template doc subpage draft)
imported>Rqndom
(use TemplateData for documentation)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
Use this template to reference entries on the [https://ifdb.tads.org/ Interactive Fiction Database].
+
{{Format TemplateData|JSON=
 +
{
 +
"params": {
 +
"id": {
 +
"description": "the IFDB game id (listed as '''TUID''' under Game Details)",
 +
"example": "0dbnusxunq7fw5ro",
 +
"type": "line",
 +
"required": true
 +
},
 +
"title": {
 +
"description": "the title of the game, to be shown as link text",
 +
"example": "Zork I",
 +
"type": "line",
 +
"required": true
 +
}
 +
},
 +
"description": "Use this template to reference entries on the [https://ifdb.tads.org/ Interactive Fiction Database].",
 +
"format": "inline"
 +
}
 +
|TOC=1}}
 +
 
 
== Usage ==
 
== Usage ==
 
Sample usage:
 
Sample usage:
Line 7: Line 27:
 
{{IFDB | id=0dbnusxunq7fw5ro | title=Zork I}}
 
{{IFDB | id=0dbnusxunq7fw5ro | title=Zork I}}
 
</pre>
 
</pre>
 
== Parameters ==
 
; id
 
: the IFDB game id (listed as '''TUID''' under Game Details)
 
 
; title
 
: the title of the game, to be shown as link text
 
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 14:03, 13 September 2020

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for IFDB

Use this template to reference entries on the Interactive Fiction Database.

Template parameters

ParameterDescriptionTypeStatus
idid
the IFDB game id (listed as TUID under Game Details)
Example
0dbnusxunq7fw5ro
Linerequired
titletitle
the title of the game, to be shown as link text
Example
Zork I
Linerequired

Format: inline

Usage

Sample usage:

{{IFDB | id=0dbnusxunq7fw5ro | title=Zork I}}