Template:Website: Difference between revisions

No edit summary
Redesign: modern infobox style (right side, uniform 22em width); same parameters
 
(16 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly>{{#invoke:Infobox|infoboxTemplate
<includeonly>
| bodyclass = vcard
{| class="infobox" style="width:25%; float:right; border:1px solid #aaaaaa; font-size:90%;"
| bodystyle = width:22em;
! colspan="2" style="text-align:center; background-color:#cedaf2;" | {{{name|{{PAGENAME}}}}}
| abovestyle = background-color:#0074b3; color:#fff;
|-
| above = {{{name|{{PAGENAME}}}}}
{{#if:{{{logo|}}}|{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{logo}}}|100x80px]]
| image = {{#if:{{{logo|}}}|[[File:{{{logo}}}|100x80px]]}}
{{!}}-
| image2 = {{#if:{{{image|}}}|[[File:{{{image}}}|250px]]}}
}}
| caption2 = {{{caption|}}}
{{#if:{{{image|}}}|{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|220px]]
| label1 = Description | data1 = {{{description|}}}
{{!}}-
| label2 = Type | data2 = {{{type|}}}
}}
| label3 = In collaboration with | data3 = {{{collaboration|}}}
{{#if:{{{caption|}}}|! colspan="2" style="text-align:center;" {{!}} {{{caption}}}
| label4 = Slogan | data4 = {{{slogan|}}}
{{!}}-
| label5 = Founded | data5 = {{{founded|}}}
}}
| label6 = Closed | data6 = {{{defunct|}}}
{{#if:{{{description|}}}|! colspan="2" {{!}} {{{description}}}
| label7 = Founders | data7 = {{{founders|}}}
{{!}}-
| label8 = CEO | data8 = {{{CEO|}}}
}}
| label9 = Ownership | data9 = {{{owner|}}}
{{#if:{{{type|}}}|! Type
| label10 = Editor | data10 = {{{editor|}}}
{{!}} {{{type}}}
| label11 = Key services | data11 = {{{services|}}}
{{!}}-
| label12 = Valuation | data12 = {{{valuation|}}}
}}
| label13 = Revenue | data13 = {{{revenue|}}}
{{#if:{{{collaboration|}}}|! In collaboration with
| label14 = Registration | data14 = {{{registration|}}}
{{!}} {{{collaboration}}}
| label15 = Advertising | data15 = {{{advertising|}}}
{{!}}-
| label16 = Programming languages | data16 = {{{programming_languages|}}}
}}
| data20 = {{#if:{{{website|}}}|[{{{website}}} Official website]}}
{{#if:{{{slogan|}}}|! Slogan
}}</includeonly><noinclude>
{{!}} {{{slogan}}}
{{!}}-
}}
{{#if:{{{founded|}}}|! Founded
{{!}} {{{founded}}}
{{!}}-
}}
{{#if:{{{defunct|}}}|! Closed
{{!}} {{{defunct}}}
{{!}}-
}}
{{#if:{{{founders|}}}|! Founders
{{!}} {{{founders}}}
{{!}}-
}}
{{#if:{{{CEO|}}}|! CEO
{{!}} {{{CEO}}}
{{!}}-
}}
{{#if:{{{owner|}}}|! Ownership
{{!}} {{{owner}}}
{{!}}-
}}
{{#if:{{{editor|}}}|! Editor
{{!}} {{{editor}}}
{{!}}-
}}
{{#if:{{{services|}}}|! Key services
{{!}} {{{services}}}
{{!}}-
}}
{{#if:{{{valuation|}}}|! Valuation
{{!}} {{{valuation}}}
{{!}}-
}}
{{#if:{{{revenue|}}}|! Revenue
{{!}} {{{revenue}}}
{{!}}-
}}
{{#if:{{{registration|}}}|! Registration
{{!}} {{{registration}}}
{{!}}-
}}
{{#if:{{{advertising|}}}|! Advertising
{{!}} {{{advertising}}}
{{!}}-
}}
{{#if:{{{programming_languages|}}}|! Programming languages
{{!}} {{{programming_languages}}}
{{!}}-
}}
{{#if:{{{website|}}}|! colspan="2" style="text-align:center;" {{!}} [{{{website}}} Official website]
{{!}}-
}}
|}
</includeonly><noinclude>
This template displays information about websites.
This template displays information about websites.


== Usage ==
== Usage ==
<pre>
<pre>
{{Website infobox
{{Website
| name =
| name =
| logo =
| logo =
Line 110: Line 54:
</pre>
</pre>


== Parameters ==
<templatedata>
* '''name''' – Name of the website.
{
* '''logo''' – Logo filename, without the "File:" prefix.
  "description": "An infobox for websites.",
* '''image''' – Screenshot or other image filename.
  "params": {
* '''caption''' – Caption displayed below the image.
    "name": {
* '''description''' – Short description of the website.
      "label": "Name",
* '''type''' – Type of website.
      "description": "Name of the website.",
* '''collaboration''' – Organizations or entities collaborating on the website.
      "type": "string"
* '''slogan''' – Website slogan.
    },
* '''founded''' – Date or year the website was launched.
    "logo": {
* '''defunct''' – Date or year the website ceased operating.
      "label": "Logo",
* '''founders''' – Founder or founders.
      "description": "Logo filename, without the File: prefix.",
* '''CEO''' – Chief executive officer.
      "type": "wiki-file-name"
* '''owner''' – Owner or ownership organization.
    },
* '''editor''' – Editor or editorial team.
    "image": {
* '''services''' – Main services provided.
      "label": "Image",
* '''valuation''' – Valuation.
      "description": "Screenshot or other image filename.",
* '''revenue''' – Revenue.
      "type": "wiki-file-name"
* '''registration''' – Registration requirements.
    },
* '''advertising''' – Advertising service or model.
    "caption": {
* '''programming_languages''' – Programming languages used.
      "label": "Caption",
* '''website''' – Full URL of the official website.
      "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]]
[[Category:Templates]]
</noinclude>
</noinclude>