Template:Tilde Infobox: Difference between revisions

Template page
Line 23: Line 23:
<templatedata>
<templatedata>
{
{
"description": "Use this template to provide information about various tildes.",
"format": "inline",
"params": {
"params": {
"name: {
"name": {
"label": "Name",
"label": "Name",
"description": "The name of this tilde.",
"description": "this tilde's name",
"type": "string",
"example": "very cool tilde",
"example": "Very Cool Tilde",
"required": true
"required": true
},
},
"created": {
"created": {
"label": "Created",
"label": "Created",
"description": "The date the tilde was created.",
"description": "when this tilde was created.",
"example": "never",
"type": "date",
"type": "date",
"required": true
},
"link": {
"label": "Link",
"description": "The link to this tilde.",
"type": "URL",
"required": true
"required": true
},
},
"image": {
"image": {
"label": "Image",
"label": "Image",
"description": "The image to represent this tilde.",
"description": "an image to represent this tilde",
"type": "file",
"example": "File:CoolTilde.midi",
"required": true
"type": "wiki-file-name"
},
},
"admins": {
"admins": {
"label": "Admins"
"label": "Admins",
"description": "Who owns/owned this tilde."
"description": "who runs/ran this tilde",
"example": "danny devito",
"type": "string",
"type": "string",
"required": true
},
"link": {
"label": "Link",
"description": "a link to this tilde",
"example": "https://example.org",
"type": "url",
"required": true
"required": true
}
}
},
},
"description": "lil infobox for tildes",
"paramOrder": [
"paramOrder": [
"name",
"name",
"link",
        "image",
"created",
"created",
"admins"
"image",
]
"admins",
"link"
],
"format": "inline"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 22:20, 2 June 2021

{{{name}}}
[[{{{image}}}|thumb|150px]]
Name {{{name}}}
Created {{{created}}}
Admins {{{admins}}}
Link [{{{link}}} {{{name}}}]


Usage

todo: move this to it's own page, this is real messy.

{{Tilde Infobox|name=Tilde Name|created=whenever|admins=Guy Standing|link=https://example.com|image=File:ExampleTilde.bmp}}

lil infobox for tildes

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Namename

this tilde's name

Example
very cool tilde
Unknownrequired
Createdcreated

when this tilde was created.

Example
never
Daterequired
Imageimage

an image to represent this tilde

Example
File:CoolTilde.midi
Fileoptional
Adminsadmins

who runs/ran this tilde

Example
danny devito
Stringrequired
Linklink

a link to this tilde

Example
https://example.org
URLrequired