m (make link work) |
m (preceded and superseded are not default) |
||
(66 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right; margin-left: 10px;" | <templatestyles src="Tilde Infobox/styles.css" /> | ||
| | <noinclude> | ||
{{#template_params:name (label=Name)|link (label=Link)|admins (label=Admins)|location (label=Location)|created (label=Created)|description (label=Description)|irc (label=IRC)|image (label=Image;namespace=File)|os (label=OS)|git (label=Git)|tildeverse (label=Tildeverse)|dead (label=Inactive) |stub (label=Stub) |stubmessage (label=Stub Message)}} | |||
{{#cargo_declare:_table=Tildes|name=String|link=URL|admins=List (,) of String|location=String|created=Date|description=String|irc=List (,) of String|image=File|os=String|git=URL|tildeverse=Boolean|dead=boolean}} | |||
</noinclude><includeonly>{{#ifeq:{{{stub|}}}|yes|{{stub|1={{{stubmessage|}}}|tilde=yes}}|[[Category:Known Tildes]]}}{{#cargo_store:_table=Tildes}} | |||
{| class="wikitable infobox" style="float:right; margin-left: 10px; width: 30%;" | |||
{{#if:{{{image|}}}|{{!}} colspan=2{{!}}[[{{{image}}}{{!}}thumb{{!}}150px]]}} | |||
|- | |- | ||
| | |colspan="2"|{{{name}}} | ||
|- | |- | ||
| | {{#if:{{{description|}}}|{{!}}colspan="2"{{!}}{{{description}}}}} | ||
|{{{ | |||
|- | |- | ||
|Created | |Created | ||
|{{{created}}} | |{{{created}}} | ||
|- | |- | ||
|Admins | {{#if:{{{admins|}}}|{{!}}Admins}} | ||
|{{{admins}}} | {{#if:{{{admins|}}}|{{!}}{{{admins}}}}} | ||
|- | |- | ||
|Link | |Link | ||
|[{{{link}}} {{{name}}}] | |[{{{link}}} {{{name}}}] | ||
|- | |||
{{#if:{{{irc|}}}|{{!}}IRC}} | |||
{{#if:{{{irc|}}}|{{!}}[https://tilde.chat/kiwi/{{{irc}}} {{{irc}}}]}} | |||
|- | |||
{{#if:{{{location|}}}|{{!}}Location}} | |||
{{#if:{{{location|}}}|{{!}}{{{location}}}}} | |||
|- | |||
{{#if:{{{git|}}}|{{!}}Git}} | |||
{{#if:{{{git|}}}|{{!}}{{{git}}}}} | |||
|- | |||
{{#if:{{{os|}}}|{{!}}OS}} | |||
{{#if:{{{os|}}}|{{!}}{{{os}}}}} | |||
|- | |||
{{#if:{{{preceded|}}}|{{!}}Preceded by}} | |||
{{#if:{{{preceded|}}}|{{!}}{{{preceded}}}}} | |||
|- | |||
{{#if:{{{preceded|}}}|{{!}}Superseded by}} | |||
{{#if:{{{preceded|}}}|{{!}}{{{superseded}}}}} | |||
|} | |} | ||
</includeonly> | |||
<noinclude> | |||
== Usage == | |||
todo: move this to its own page, this is real messy. | |||
<nowiki>{{Tilde Infobox|name=Tilde Name|created=whenever|admins=Guy Standing|link=https://example.com|image=File:ExampleTilde.bmp|irc=#wiki}}</nowiki> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "this tilde's name", | |||
"example": "very cool tilde", | |||
"required": true | |||
}, | |||
"created": { | |||
"label": "Created", | |||
"description": "when this tilde was created.", | |||
"example": "never", | |||
"type": "date", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "an image to represent this tilde", | |||
"example": "File:CoolTilde.midi", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"admins": { | |||
"label": "Admins", | |||
"description": "who runs/ran this tilde", | |||
"example": "danny devito", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"link": { | |||
"label": "Link", | |||
"description": "a link to this tilde", | |||
"example": "https://example.org", | |||
"type": "url", | |||
"required": true | |||
}, | |||
"irc": { | |||
"label": "IRC", | |||
"description": "a name of irc channel on tilde.chat", | |||
"example": "#meta", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"location": { | |||
"label": "Location", | |||
"description": "where this tilde is hosted", | |||
"example": "detroit", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"description": { | |||
"label": "Description", | |||
"description": "a short summary of this tilde", | |||
"example": "this is my really cool tilde that i made :))", | |||
"suggested": true | |||
}, | |||
"git": { | |||
"label": "Git", | |||
"description": "link to a github/tildegit/other org", | |||
"type": "url" | |||
}, | |||
"os": { | |||
"label": "OS", | |||
"description": "the os this tilde runs on", | |||
"example": "Windows 98", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"tildeverse": { | |||
"label": "Tildeverse", | |||
"description": "is this one a member of the tildeverse?", | |||
"type": "boolean", | |||
"default": "no", | |||
"suggested": true, | |||
"example": "no" | |||
}, | |||
"dead": { | |||
"label": "Inactive", | |||
"description": "is this tilde dead?", | |||
"example": "no", | |||
"type": "boolean", | |||
"default": "no" | |||
}, | |||
"stub": { | |||
"label": "Stub", | |||
"description": "is this article about a tilde lacking information?", | |||
"example": "yes", | |||
"type": "boolean", | |||
"default": "no" | |||
}, | |||
"stubmessage": { | |||
"label": "Stub Message", | |||
"description": "an optional parameter to input an optional message for the Stub template", | |||
"type": "string" | |||
}, | |||
"preceded": { | |||
"label": "Preceded by", | |||
"description": "name of the tilde or service that this one replaced", | |||
"type": "string", | |||
"default": "no" | |||
}, | |||
"superseded": { | |||
"label": "Superseded by", | |||
"description": "name of the tilde or service that replaced this one", | |||
"type": "string", | |||
"default": "no" | |||
} | |||
}, | |||
"description": "lil infobox for tildes", | |||
"paramOrder": [ | |||
"name", | |||
"description", | |||
"created", | |||
"location", | |||
"image", | |||
"admins", | |||
"link", | |||
"git", | |||
"os", | |||
"irc", | |||
"tildeverse", | |||
"dead", | |||
"stub", | |||
"stubmessage", | |||
"preceded", | |||
"superseded" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata> | |||
[[Category:Article management templates|{{PAGENAME}}]] | |||
[[Category:Templates|{{PAGENAME}}]] | |||
</noinclude> |
Latest revision as of 20:32, 26 December 2021
This is the "Tilde Infobox" template.
It should be called in the following format:
{{Tilde Infobox |name= |link= |admins= |location= |created= |description= |irc= |image= |os= |git= |tildeverse= |dead= |stub= |stubmessage= }}
Edit the page to see the template text.
This template defines the table "Tildes". View table.
Usage
todo: move this to its own page, this is real messy.
{{Tilde Infobox|name=Tilde Name|created=whenever|admins=Guy Standing|link=https://example.com|image=File:ExampleTilde.bmp|irc=#wiki}}
lil infobox for tildes
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | this tilde's name
| Unknown | required |
Description | description | a short summary of this tilde
| Unknown | suggested |
Created | created | when this tilde was created.
| Date | required |
Location | location | where this tilde is hosted
| String | suggested |
Image | image | an image to represent this tilde
| File | suggested |
Admins | admins | who runs/ran this tilde
| String | suggested |
Link | link | a link to this tilde
| URL | required |
Git | git | link to a github/tildegit/other org | URL | optional |
OS | os | the os this tilde runs on
| String | suggested |
IRC | irc | a name of irc channel on tilde.chat
| String | suggested |
Tildeverse | tildeverse | is this one a member of the tildeverse?
| Boolean | suggested |
Inactive | dead | is this tilde dead?
| Boolean | optional |
Stub | stub | is this article about a tilde lacking information?
| Boolean | optional |
Stub Message | stubmessage | an optional parameter to input an optional message for the Stub template | String | optional |
Preceded by | preceded | name of the tilde or service that this one replaced
| String | optional |
Superseded by | superseded | name of the tilde or service that replaced this one
| String | optional |