Template:Infobox service: Difference between revisions
More actions
Create an infobox for services provided by Neodyland |
Use an Extension-style layout with service-specific fields |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="Template:Infobox service/styles.css" /> | |||
{{Infobox | {{Infobox | ||
| | | bodyclass = infobox-service infobox-service-status-{{#switch:{{lc:{{{status|unknown}}}}} | ||
| | | planned = planned | ||
| | | experimental = experimental | ||
| alpha = alpha | |||
| beta = beta | |||
| stable = stable | |||
| maintenance = maintenance | |||
| unstable = unstable | |||
| deprecated = deprecated | |||
| unmaintained = unmaintained | |||
| discontinued = discontinued | |||
| unknown = unknown | |||
| #default = unknown | |||
}} | |||
| bodystyle = width:280px; | |||
| title = '''[[Template:Infobox service|Neodyland services]]''' | |||
| titleclass = infobox-service-caption | |||
| above = <div class="infobox-service-header__inner"><span class="infobox-service-header__icon">[[File:OOjs UI icon advanced-invert.svg|40px|link=Template:Infobox service|alt=]]</span><span class="infobox-service-header__copy"><span class="infobox-service-header__name">{{{name|{{PAGENAME}}}}}</span><span class="infobox-service-header__status">[[Template:Infobox Release status|Release status:]] {{Infobox Release status|{{{status|unknown}}}}}</span></span></div> | |||
| aboveclass = infobox-header infobox-service-header notheme | |||
| subheader = {{{tagline|}}} | | subheader = {{{tagline|}}} | ||
| subheaderclass = infobox-service-tagline | |||
| image = {{#if:{{{logo|}}} | | image = {{#if:{{{logo|}}}|[[File:{{{logo}}}|{{{logo_size|240px}}}|alt={{{logo_alt|{{{name|{{PAGENAME}}}}} logo}}}]]}} | ||
| imageclass = infobox-service-image | |||
}} | |||
| caption = {{{logo_caption|}}} | | caption = {{{logo_caption|}}} | ||
| label1 = | | label1 = [[Template:Infobox service#Parameters|Service type]] | ||
| data1 = {{{type|}}} | |||
| | |||
| | |||
| | | label2 = [[Template:Infobox service#Parameters|Description]] | ||
| data2 = {{{description|}}} | |||
| | | label3 = [[Template:Infobox service#Parameters|Provided by]] | ||
| | | data3 = {{{provider|Neodyland}}} | ||
| | | label4 = [[Template:Infobox service#Parameters|Developer(s)]] | ||
| | | data4 = {{{developer|}}} | ||
| | | label5 = [[Template:Infobox service#Parameters|Maintainer(s)]] | ||
| | | data5 = {{{maintainer|}}} | ||
| | | label6 = [[Template:Infobox service#Parameters|Initial release]] | ||
| | | data6 = {{{released|}}} | ||
| | | label7 = [[Template:Infobox service#Parameters|Latest version]] | ||
| | | data7 = {{#if:{{{version|}}} | ||
| {{{version}}}{{#if:{{{updated|}}}| | | {{{version}}}{{#if:{{{updated|}}}| ({{{updated}}})}} | ||
}} | }} | ||
| | | label8 = [[Template:Infobox service#Parameters|Platform]] | ||
| data8 = {{{platform|}}} | |||
| | |||
| | |||
| | | label9 = [[Template:Infobox service#Parameters|Availability]] | ||
| | | data9 = {{{availability|}}} | ||
| | | label10 = [[Template:Infobox service#Parameters|Languages]] | ||
| | | data10 = {{{languages|}}} | ||
| | | label11 = [[Template:Infobox service#Parameters|Access]] | ||
| | | data11 = {{{access|}}} | ||
| | | label12 = [[Template:Infobox service#Parameters|Licence]] | ||
| data12 = {{{license|}}} | |||
| | | label13 = [[Template:Infobox service#Parameters|Website]] | ||
| | | data13 = {{{website|}}} | ||
| | | label14 = [[Template:Infobox service#Parameters|Service status]] | ||
| | | data14 = {{{status_page|}}} | ||
| | | label15 = [[Template:Infobox service#Parameters|Documentation]] | ||
| | | data15 = {{{documentation|}}} | ||
| | | label16 = [[Template:Infobox service#Parameters|Source code]] | ||
| | | data16 = {{{source|}}} | ||
| | | label17 = [[Template:Infobox service#Parameters|Support]] | ||
| | | data17 = {{{support|}}} | ||
}} | }} | ||
{{#if:{{{nocat|}}}||{{#ifeq:{{NAMESPACE}}|Template|| | {{#if:{{{nocat|}}}||{{#ifeq:{{NAMESPACE}}|Template|| | ||
| Line 124: | Line 131: | ||
The <code>status</code> parameter accepts the values documented at {{tl|Infobox Release status}}. Article transclusions are automatically placed in [[:Category:Neodyland services]] and the corresponding release-status category. Set <code>nocat=1</code> in examples and test transclusions. | The <code>status</code> parameter accepts the values documented at {{tl|Infobox Release status}}. Article transclusions are automatically placed in [[:Category:Neodyland services]] and the corresponding release-status category. Set <code>nocat=1</code> in examples and test transclusions. | ||
== Parameters == | |||
All fields except <code>status</code> are optional. The infobox displays only rows whose values are provided. The parameters describe service ownership, lifecycle, availability, implementation platform, and relevant operational links; they do not expose MediaWiki-extension-specific fields such as hooks or PHP requirements. | |||
== Example == | == Example == | ||
Latest revision as of 15:15, 14 August 2026
| Provided by | Neodyland |
|---|---|
This infobox describes a service provided, developed, or operated by Neodyland. It follows the general structure of MediaWiki's extension infobox, adapted for hosted services.
Usage
{{Infobox service
| name =
| tagline =
| logo =
| logo_size =
| logo_alt =
| logo_caption =
| status =
| type =
| description =
| provider =
| developer =
| maintainer =
| released =
| version =
| updated =
| platform =
| availability =
| languages =
| access =
| license =
| website =
| status_page =
| documentation =
| source =
| support =
}}
The status parameter accepts the values documented at {{Infobox Release status}}. Article transclusions are automatically placed in Category:Neodyland services and the corresponding release-status category. Set nocat=1 in examples and test transclusions.
Parameters
All fields except status are optional. The infobox displays only rows whose values are provided. The parameters describe service ownership, lifecycle, availability, implementation platform, and relevant operational links; they do not expose MediaWiki-extension-specific fields such as hooks or PHP requirements.
Example
| A shared record of Neodyland | |
|
| |
| Service type | Wiki |
| Description | A collaboratively edited knowledge base operated by Neodyland. |
| Provided by | Neodyland |
| Platform | MediaWiki |
| Availability | Public |
| Languages | English and Japanese |
| Access | Readable without registration |
| Licence | CC BY-SA 4.0 |
| Website | wiki.neody.land |
An infobox for a service provided, developed, or operated by Neodyland.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Service name | name | no description
| String | suggested |
| Tagline | tagline | no description | String | optional |
| Logo | logo | Filename without the File: prefix. | File | optional |
| Logo size | logo_size | no description
| String | optional |
| Logo alternative text | logo_alt | no description | String | optional |
| Logo caption | logo_caption | no description | String | optional |
| Release status | status | no description
| String | required |
| Service type | type | no description | String | optional |
| Description | description | no description | Content | suggested |
| Provider | provider | no description
| Content | optional |
| Developer | developer | no description | Content | optional |
| Maintainer | maintainer | no description | Content | optional |
| Initial release | released | no description | Date | optional |
| Latest version | version | no description | String | optional |
| Latest update | updated | no description | Date | optional |
| Platform | platform | no description | Content | optional |
| Availability | availability | no description | Content | optional |
| Languages | languages | no description | Content | optional |
| Access | access | For example: public, registration required, or internal. | Content | optional |
| Licence | license | no description | Content | optional |
| Website | website | no description | Content | suggested |
| Service status page | status_page | no description | Content | optional |
| Documentation | documentation | no description | Content | optional |
| Source code | source | no description | Content | optional |
| Support | support | no description | Content | optional |
| Disable categories | nocat | Set to a non-empty value in examples and documentation. | Boolean | optional |