Template:Website: Difference between revisions

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


== Usage ==
== Usage ==
<pre>
<pre>
{{Website infobox
{{Website
| name =
| name =
| logo =
| logo =
Line 124: Line 53:
}}
}}
</pre>
</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]]
[[Category:Templates]]
</noinclude></nowiki>
</noinclude>