Template:Tilde Infobox: Difference between revisions

Template page
(Add os and git to template)
No edit summary
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)|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)}}
{{#cargo_declare:_table=Tildes|name=String|link=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}}
</noinclude><includeonly>{{#cargo_store:_table=Tildes}}
</noinclude><includeonly>{{#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%;"
Line 25: Line 25:
{{#if:{{{location|}}}|{{!}}Location}}
{{#if:{{{location|}}}|{{!}}Location}}
{{#if:{{{location|}}}|{{!}}{{{location}}}}}
{{#if:{{{location|}}}|{{!}}{{{location}}}}}
 
|-
{{#if:{{{git|}}}|{{!}}Git}}
{{#if:{{{git|}}}|{{!}}{{{git}}}}}
|-
{{#if:{{{os|}}}|{{!}}OS}}
{{#if:{{{os|}}}|{{!}}{{{os}}}}}
|}
|}
[[Category:Known Tildes]]
[[Category:Known Tildes]]
Line 90: Line 95:
"suggested": true
"suggested": true
},
},
"dead": {
"git": {},
"label": "Inactive",
"os": {}
"description": "is this tilde inactive?",
"type": "boolean"
},
"tildeverse": {
"label": "Tildeverse Member",
"description": "is this tilde a member of the tildeverse?",
"type": "boolean"
},
"Git": {
"aliases": [
"git"
],
"label": "Git",
"description": "Link to a  tilde organization on tildegit or repo with your tilde sources",
"example": "https://tildegit.org/team",
"type": "url",
"suggested": true
},
"OS": {
"aliases": [
"os",
"distro",
"distibution"
],
"label": "OS",
"description": "Your tilde running on",
"example": "FreeBSD, Arch LInux",
"type": "string",
"required": true
}
},
},
"description": "lil infobox for tildes",
"description": "lil infobox for tildes",
Line 132: Line 107:
"admins",
"admins",
"link",
"link",
"OS",
"git",
"Git",
"os",
"irc",
"irc"
"dead",
"tildeverse"
],
],
"format": "inline"
"format": "block"
}
}
</templatedata>
</templatedata>

Revision as of 17:14, 4 June 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=
}}

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

no description

Unknownoptional
osos

no description

Unknownoptional
IRCirc

a name of irc channel on tilde.chat

Example
#meta
Stringsuggested