Jump to content

Template:Website: Difference between revisions

No edit summary
Redesign: modern infobox style (right side, uniform 22em width); same parameters
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width:25%; float:right; border:1px solid #aaaaaa; font-size:90%;"
<includeonly>{{#invoke:Infobox|infoboxTemplate
! colspan="2" style="text-align:center; background-color:#cedaf2;" | {{{name|{{PAGENAME}}}}}
| bodyclass = vcard
|-
| bodystyle = width:22em;
{{#if:{{{logo|}}}|{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{logo}}}|100x80px]]
| abovestyle = background-color:#0074b3; color:#fff;
{{!}}-
| above = {{{name|{{PAGENAME}}}}}
| image = {{#if:{{{logo|}}}|[[File:{{{logo}}}|100x80px]]}}
| image2 = {{#if:{{{image|}}}|[[File:{{{image}}}|250px]]}}
| caption2 = {{{caption|}}}
| label1 = Description | data1 = {{{description|}}}
| label2 = Type | data2 = {{{type|}}}
| label3 = In collaboration with | data3 = {{{collaboration|}}}
| label4 = Slogan | data4 = {{{slogan|}}}
| label5 = Founded | data5 = {{{founded|}}}
| label6 = Closed | data6 = {{{defunct|}}}
| label7 = Founders | data7 = {{{founders|}}}
| label8 = CEO | data8 = {{{CEO|}}}
| label9 = Ownership | data9 = {{{owner|}}}
| label10 = Editor | data10 = {{{editor|}}}
| label11 = Key services | data11 = {{{services|}}}
| label12 = Valuation | data12 = {{{valuation|}}}
| label13 = Revenue | data13 = {{{revenue|}}}
| label14 = Registration | data14 = {{{registration|}}}
| label15 = Advertising | data15 = {{{advertising|}}}
| label16 = Programming languages | data16 = {{{programming_languages|}}}
| data20 = {{#if:{{{website|}}}|[{{{website}}} Official website]}}
}}</includeonly><noinclude>
This template displays information about websites.
 
== Usage ==
<pre>
{{Website
| name =
| logo =
| image =
| caption =
| description =
| type =
| collaboration =
| slogan =
| founded =
| defunct =
| founders =
| CEO =
| owner =
| editor =
| services =
| valuation =
| revenue =
| registration =
| advertising =
| programming_languages =
| website =
}}
}}
{{#if:{{{image|}}}|{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|220px]]
</pre>
{{!}}-
 
}}
<templatedata>
{{#if:{{{caption|}}}|! colspan="2" style="text-align:center;" {{!}} {{{caption}}}
{
{{!}}-
  "description": "An infobox for websites.",
}}
  "params": {
{{#if:{{{description|}}}|! colspan="2" {{!}} {{{description}}}
    "name": {
{{!}}-
      "label": "Name",
}}
      "description": "Name of the website.",
{{#if:{{{type|}}}|! Type
      "type": "string"
{{!}} {{{type}}}
    },
{{!}}-
    "logo": {
}}
      "label": "Logo",
{{#if:{{{collaboration|}}}|! In collaboration with
      "description": "Logo filename, without the File: prefix.",
{{!}} {{{collaboration}}}
      "type": "wiki-file-name"
{{!}}-
    },
}}
    "image": {
{{#if:{{{slogan|}}}|! Slogan
      "label": "Image",
{{!}} {{{slogan}}}
      "description": "Screenshot or other image filename.",
{{!}}-
      "type": "wiki-file-name"
}}
    },
{{#if:{{{founded|}}}|! Founded
    "caption": {
{{!}} {{{founded}}}
      "label": "Caption",
{{!}}-
      "description": "Caption displayed below the image.",
}}
      "type": "string"
{{#if:{{{defunct|}}}|! Closed
    },
{{!}} {{{defunct}}}
    "description": {
{{!}}-
      "label": "Description",
}}
      "description": "Short description of the website.",
{{#if:{{{founders|}}}|! Founders
      "type": "string"
{{!}} {{{founders}}}
    },
{{!}}-
    "type": {
}}
      "label": "Type",
{{#if:{{{CEO|}}}|! CEO
      "description": "Type of website.",
{{!}} {{{CEO}}}
      "type": "string"
{{!}}-
    },
}}
    "collaboration": {
{{#if:{{{owner|}}}|! Ownership
      "label": "In collaboration with",
{{!}} {{{owner}}}
      "description": "Organizations or entities collaborating on the website.",
{{!}}-
      "type": "string"
}}
    },
{{#if:{{{editor|}}}|! Editor
    "slogan": {
{{!}} {{{editor}}}
      "label": "Slogan",
{{!}}-
      "description": "Website slogan.",
}}
      "type": "string"
{{#if:{{{services|}}}|! Key services
    },
{{!}} {{{services}}}
    "founded": {
{{!}}-
      "label": "Founded",
}}
      "description": "Date or year the website was launched.",
{{#if:{{{valuation|}}}|! Valuation
      "type": "string"
{{!}} {{{valuation}}}
    },
{{!}}-
    "defunct": {
}}
      "label": "Closed",
{{#if:{{{revenue|}}}|! Revenue
      "description": "Date or year the website ceased operating.",
{{!}} {{{revenue}}}
      "type": "string"
{{!}}-
    },
}}
    "founders": {
{{#if:{{{registration|}}}|! Registration
      "label": "Founders",
{{!}} {{{registration}}}
      "description": "Founder or founders.",
{{!}}-
      "type": "string"
}}
    },
{{#if:{{{advertising|}}}|! Advertising
    "CEO": {
{{!}} {{{advertising}}}
      "label": "CEO",
{{!}}-
      "description": "Chief executive officer.",
}}
      "type": "string"
{{#if:{{{programming_languages|}}}|! Programming languages
    },
{{!}} {{{programming_languages}}}
    "owner": {
{{!}}-
      "label": "Ownership",
}}
      "description": "Owner or ownership organization.",
{{#if:{{{website|}}}|! colspan="2" style="text-align:center;" {{!}} [{{{website}}} Official website]
      "type": "string"
{{!}}-
    },
}}
    "editor": {
|}
      "label": "Editor",
</includeonly>
      "description": "Editor or editorial team.",
<noinclude>
      "type": "string"
    },
    "services": {
      "label": "Key services",
      "description": "Main services provided.",
      "type": "string"
    },
    "valuation": {
      "label": "Valuation",
      "description": "Valuation of the website or its company.",
      "type": "string"
    },
    "revenue": {
      "label": "Revenue",
      "description": "Revenue.",
      "type": "string"
    },
    "registration": {
      "label": "Registration",
      "description": "Registration requirements.",
      "type": "string"
    },
    "advertising": {
      "label": "Advertising",
      "description": "Advertising service or model.",
      "type": "string"
    },
    "programming_languages": {
      "label": "Programming languages",
      "description": "Programming languages used to build the website.",
      "type": "string"
    },
    "website": {
      "label": "Official website",
      "description": "Full URL of the official website.",
      "type": "url"
    }
  },
  "paramOrder": [
    "name",
    "logo",
    "image",
    "caption",
    "description",
    "type",
    "collaboration",
    "slogan",
    "founded",
    "defunct",
    "founders",
    "CEO",
    "owner",
    "editor",
    "services",
    "valuation",
    "revenue",
    "registration",
    "advertising",
    "programming_languages",
    "website"
  ],
  "format": "block"
}
</templatedata>
 
[[Category:Templates]]
[[Category:Templates]]
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 12:48, 19 November 2026

This template displays information about websites.

Usage[edit source]

{{Website
| name =
| logo =
| image =
| caption =
| description =
| type =
| collaboration =
| slogan =
| founded =
| defunct =
| founders =
| CEO =
| owner =
| editor =
| services =
| valuation =
| revenue =
| registration =
| advertising =
| programming_languages =
| website =
}}

An infobox for websites.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the website.

Stringoptional
Logologo

Logo filename, without the File: prefix.

Fileoptional
Imageimage

Screenshot or other image filename.

Fileoptional
Captioncaption

Caption displayed below the image.

Stringoptional
Descriptiondescription

Short description of the website.

Stringoptional
Typetype

Type of website.

Stringoptional
In collaboration withcollaboration

Organizations or entities collaborating on the website.

Stringoptional
Sloganslogan

Website slogan.

Stringoptional
Foundedfounded

Date or year the website was launched.

Stringoptional
Closeddefunct

Date or year the website ceased operating.

Stringoptional
Foundersfounders

Founder or founders.

Stringoptional
CEOCEO

Chief executive officer.

Stringoptional
Ownershipowner

Owner or ownership organization.

Stringoptional
Editoreditor

Editor or editorial team.

Stringoptional
Key servicesservices

Main services provided.

Stringoptional
Valuationvaluation

Valuation of the website or its company.

Stringoptional
Revenuerevenue

Revenue.

Stringoptional
Registrationregistration

Registration requirements.

Stringoptional
Advertisingadvertising

Advertising service or model.

Stringoptional
Programming languagesprogramming_languages

Programming languages used to build the website.

Stringoptional
Official websitewebsite

Full URL of the official website.

URLoptional