Template:Website: Difference between revisions

No edit summary
Redesign: modern infobox style (right side, uniform 22em width); same parameters
 
(5 intermediate revisions 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]]}}
{{#if:{{{image|}}}|{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|220px]]
| image2 = {{#if:{{{image|}}}|[[File:{{{image}}}|250px]]}}
{{!}}-
| caption2 = {{{caption|}}}
}}
| label1 = Description | data1 = {{{description|}}}
{{#if:{{{caption|}}}|! colspan="2" style="text-align:center;" {{!}} {{{caption}}}
| label2 = Type | data2 = {{{type|}}}
{{!}}-
| label3 = In collaboration with | data3 = {{{collaboration|}}}
}}
| label4 = Slogan | data4 = {{{slogan|}}}
{{#if:{{{description|}}}|! colspan="2" {{!}} {{{description}}}
| label5 = Founded | data5 = {{{founded|}}}
{{!}}-
| label6 = Closed | data6 = {{{defunct|}}}
}}
| label7 = Founders | data7 = {{{founders|}}}
{{#if:{{{type|}}}|! Type
| label8 = CEO | data8 = {{{CEO|}}}
{{!}} {{{type}}}
| label9 = Ownership | data9 = {{{owner|}}}
{{!}}-
| label10 = Editor | data10 = {{{editor|}}}
}}
| label11 = Key services | data11 = {{{services|}}}
{{#if:{{{collaboration|}}}|! In collaboration with
| label12 = Valuation | data12 = {{{valuation|}}}
{{!}} {{{collaboration}}}
| label13 = Revenue | data13 = {{{revenue|}}}
{{!}}-
| label14 = Registration | data14 = {{{registration|}}}
}}
| label15 = Advertising | data15 = {{{advertising|}}}
{{#if:{{{slogan|}}}|! Slogan
| label16 = Programming languages | data16 = {{{programming_languages|}}}
{{!}} {{{slogan}}}
| data20 = {{#if:{{{website|}}}|[{{{website}}} Official website]}}
{{!}}-
}}</includeonly><noinclude>
}}
This template displays information about websites.
{{#if:{{{founded|}}}|! Founded
 
{{!}} {{{founded}}}
== Usage ==
{{!}}-
<pre>
}}
{{Website
{{#if:{{{defunct|}}}|! Closed
| name =
{{!}} {{{defunct}}}
| logo =
{{!}}-
| image =
}}
| caption =
{{#if:{{{founders|}}}|! Founders
| description =
{{!}} {{{founders}}}
| type =
{{!}}-
| collaboration =
| slogan =
| founded =
| defunct =
| founders =
| CEO =
| owner =
| editor =
| services =
| valuation =
| revenue =
| registration =
| advertising =
| programming_languages =
| website =
}}
}}
</pre>
<templatedata>
{
  "description": "An infobox for websites.",
  "params": {
    "name": {
      "label": "Name",
      "description": "Name of the website.",
      "type": "string"
    },
    "logo": {
      "label": "Logo",
      "description": "Logo filename, without the File: prefix.",
      "type": "wiki-file-name"
    },
    "image": {
      "label": "Image",
      "description": "Screenshot or other image filename.",
      "type": "wiki-file-name"
    },
    "caption": {
      "label": "Caption",
      "description": "Caption displayed below the image.",
      "type": "string"
    },
    "description": {
      "label": "Description",
      "description": "Short description of the website.",
      "type": "string"
    },
    "type": {
      "label": "Type",
      "description": "Type of website.",
      "type": "string"
    },
    "collaboration": {
      "label": "In collaboration with",
      "description": "Organizations or entities collaborating on the website.",
      "type": "string"
    },
    "slogan": {
      "label": "Slogan",
      "description": "Website slogan.",
      "type": "string"
    },
    "founded": {
      "label": "Founded",
      "description": "Date or year the website was launched.",
      "type": "string"
    },
    "defunct": {
      "label": "Closed",
      "description": "Date or year the website ceased operating.",
      "type": "string"
    },
    "founders": {
      "label": "Founders",
      "description": "Founder or founders.",
      "type": "string"
    },
    "CEO": {
      "label": "CEO",
      "description": "Chief executive officer.",
      "type": "string"
    },
    "owner": {
      "label": "Ownership",
      "description": "Owner or ownership organization.",
      "type": "string"
    },
    "editor": {
      "label": "Editor",
      "description": "Editor or editorial team.",
      "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]]
</noinclude>