Template:Tilde Infobox: Difference between revisions

Template page
(Undo revision 523 by G1n (talk))
Tag: Undo
m (preceded and superseded are not default)
 
(25 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<templatestyles src="Tilde Infobox/styles.css" />
<templatestyles src="Tilde Infobox/styles.css" />
<noinclude>
<noinclude>
{{#template_params:name (label=Name)|link (label=Link)|os (label=OS) |git (label=Git)|admins (label=Admins)|location (label=Location)|created (label=Created)|description (label=Description)|irc (label=IRC)|image (label=Image;namespace=File)}}
{{#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|os=String|git=URL|admins=List (,) of String|location=String|created=Date|description=String|irc=List (,) of String|image=File}}
{{#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>{{#cargo_store:_table=Tildes}}
</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%;"
{| class="wikitable infobox" style="float:right; margin-left: 10px; width: 30%;"
{{#if:{{{image|}}}|{{!}} colspan=2{{!}}[[{{{image}}}{{!}}thumb{{!}}150px]]}}
{{#if:{{{image|}}}|{{!}} colspan=2{{!}}[[{{{image}}}{{!}}thumb{{!}}150px]]}}
Line 20: Line 20:
|[{{{link}}} {{{name}}}]
|[{{{link}}} {{{name}}}]
|-
|-
|OS
{{#if:{{{irc|}}}|{{!}}IRC}}
|[{{{os}}}]
{{#if:{{{irc|}}}|{{!}}[https://tilde.chat/kiwi/{{{irc}}} {{{irc}}}]}}
|-
{{#if:{{{location|}}}|{{!}}Location}}
{{#if:{{{location|}}}|{{!}}{{{location}}}}}
|-
|-
{{#if:{{{git|}}}|{{!}}Git}}
{{#if:{{{git|}}}|{{!}}Git}}
{{#if:{{{git|}}}|{{!}}{{{git}}}}}
{{#if:{{{git|}}}|{{!}}{{{git}}}}}
|-
|-
{{#if:{{{irc|}}}|{{!}}IRC}}
{{#if:{{{os|}}}|{{!}}OS}}
{{#if:{{{irc|}}}|{{!}}{{{irc}}}}}
{{#if:{{{os|}}}|{{!}}{{{os}}}}}
|-
{{#if:{{{preceded|}}}|{{!}}Preceded by}}
{{#if:{{{preceded|}}}|{{!}}{{{preceded}}}}}
|-
|-
{{#if:{{{location|}}}|{{!}}Location}}
{{#if:{{{preceded|}}}|{{!}}Superseded by}}
{{#if:{{{location|}}}|{{!}}{{{location}}}}}
{{#if:{{{preceded|}}}|{{!}}{{{superseded}}}}}
 
|}
|}
[[Category:Known Tildes]]
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 95: Line 99:
"example": "this is my really cool tilde that i made :))",
"example": "this is my really cool tilde that i made :))",
"suggested": true
"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": {
"dead": {
"label": "Inactive",
"label": "Inactive",
"description": "is this tilde inactive?",
"description": "is this tilde dead?",
"type": "boolean"
"example": "no",
"type": "boolean",
"default": "no"
},
},
"tildeverse": {
"stub": {
"label": "Tildeverse Member",
"label": "Stub",
"description": "is this tilde a member of the tildeverse?",
"description": "is this article about a tilde lacking information?",
"type": "boolean"
"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"
},
},
"Git": {
"preceded": {
"aliases": [
"label": "Preceded by",
"git"
"description": "name of the tilde or service that this one replaced",
],
"type": "string",
"label": "Git",
"default": "no"
"description": "Link to your tildegit organization or tilde sources repo",
"example": "https://tildegit.org/team",
"type": "url",
"suggested": true
},
},
"OS": {
"superseded": {
"aliases": [
"label": "Superseded by",
"os",
"description": "name of the tilde or service that replaced this one",
"distro",
"distribution"
],
"label": "OS",
"description": "Your tilde running on",
"example": "FreeBSD, Arch Linux",
"type": "string",
"type": "string",
"required": true
"default": "no"
}
}
},
},
Line 138: Line 161:
"admins",
"admins",
"link",
"link",
                "OS",
"git",
                "Git",
"os",
"irc",
"irc",
"tildeverse",
"dead",
"dead",
"tildeverse"
"stub",
"stubmessage",
"preceded",
"superseded"
],
],
"format": "inline"
"format": "block"
}
}
</templatedata>
</templatedata>

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

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

this tilde's name

Example
very cool tilde
Unknownrequired
Descriptiondescription

a short summary of this tilde

Example
this is my really cool tilde that i made :))
Unknownsuggested
Createdcreated

when this tilde was created.

Example
never
Daterequired
Locationlocation

where this tilde is hosted

Example
detroit
Stringsuggested
Imageimage

an image to represent this tilde

Example
File:CoolTilde.midi
Filesuggested
Adminsadmins

who runs/ran this tilde

Example
danny devito
Stringsuggested
Linklink

a link to this tilde

Example
https://example.org
URLrequired
Gitgit

link to a github/tildegit/other org

URLoptional
OSos

the os this tilde runs on

Example
Windows 98
Stringsuggested
IRCirc

a name of irc channel on tilde.chat

Example
#meta
Stringsuggested
Tildeversetildeverse

is this one a member of the tildeverse?

Default
no
Example
no
Booleansuggested
Inactivedead

is this tilde dead?

Default
no
Example
no
Booleanoptional
Stubstub

is this article about a tilde lacking information?

Default
no
Example
yes
Booleanoptional
Stub Messagestubmessage

an optional parameter to input an optional message for the Stub template

Stringoptional
Preceded bypreceded

name of the tilde or service that this one replaced

Default
no
Stringoptional
Superseded bysuperseded

name of the tilde or service that replaced this one

Default
no
Stringoptional