Template:Infobox website: Difference between revisions
en>Jonesey95 (Change span class=xxx to div to fix Linter div-span-flip error.) |
m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| bodyclass = vcard | | bodyclass = vcard | ||
| child = {{lc:{{{embed}}}}} | | child = {{lc:{{{embed|}}}}} | ||
| decat = yes | | decat = yes | ||
| titleclass = fn org | | titleclass = fn org | ||
| title = {{if empty|{{{name|}}} | | title = {{if empty|{{{name|}}}|{{{company_name|}}}|{{{websitename|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{ | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{if empty|{{{company_logo|}}}|{{{logo|}}}|{{{websitelogo|}}}}}|size={{{logo_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{logo_alt|}}}}} | ||
| caption1 = {{ | | caption1 = {{if empty|{{{logo_caption|}}}|{{{logocaption|}}}}} | ||
| image2 = {{#if:{{{collapsible|}}}|{{hidden begin|title={{{collapsetext|Screenshot}}}|titlestyle=background:{{{background|gainsboro}}};text-align:center|contentstyle=text-align:center}}}} | | image2 = {{#if:{{{collapsible|}}}|{{hidden begin|title={{{collapsetext|Screenshot}}}|titlestyle=background:{{{background|gainsboro}}};text-align:center|contentstyle=text-align:center}}}} | ||
{{#invoke:InfoboxImage|InfoboxImage|image={{{screenshot|}}}|size= | {{#invoke:InfoboxImage|InfoboxImage|image={{{screenshot|}}}|size={{{screenshot_size|}}}|sizedefault=300px|alt={{{screenshot_alt|}}}}} | ||
| caption2 = {{{caption|}}}{{#if:{{{collapsible|}}}|{{hidden end}}}} | | caption2 = {{{caption|}}}{{#if:{{{collapsible|}}}|{{hidden end}}}} | ||
| label1 = [[Types of business entity|Type of business]] | | label1 = [[Types of business entity|Type of business]] | ||
| class1 = category | | class1 = category | ||
| data1 = | | data1 = {{{company_type|}}} | ||
| label2 = {{longitem|Type of site}} | | label2 = {{longitem|Type of site}} | ||
| data2 = {{if empty | | data2 = {{if empty|{{{website_type|}}}|{{{type|}}}}} | ||
| label3 = Available in | | label3 = Available in | ||
| | | data3 = {{#if:{{{language_count|}}} | ||
| | |{{{language_count}}} languages | ||
|{{{language|}}} | |||
}}{{{language_footnote|}}} | |||
| data4 = {{#if:{{both| {{{language_count|}}} | {{{language|}}}}} | |||
|{{Begin hidden|titlestyle=background:transparent;|title=List of languages}}{{{language|}}}{{End hidden}} | |||
}} | |||
| label5 = [[Ticker symbol|Traded as]] | | label5 = [[Ticker symbol|Traded as]] | ||
| data5 = | | data5 = {{{traded_as|}}} | ||
| label6 = Founded | | label6 = Founded | ||
| data6 = {{ | | data6 = {{if empty|{{{founded|}}}|{{{foundation|}}}}} | ||
| label7 = [[Dissolution (law)|Dissolved]] | | label7 = [[Dissolution (law)|Dissolved]] | ||
| data7 = {{{dissolved| | | data7 = {{{dissolved|}}} | ||
| label8 = Predecessor(s) | | label8 = Predecessor(s) | ||
Line 43: | Line 48: | ||
| data10 = {{comma separated entries | | data10 = {{comma separated entries | ||
| 1= {{if empty|{{{headquarters|}}}|{{{location|}}}}} | | 1= {{if empty|{{{headquarters|}}}|{{{location|}}}}} | ||
| 2= {{#if: | | 2= {{#if:{{{location_city|}}}|<div style="display:inline;" class="locality">{{{location_city}}}</div>}} | ||
| 3= {{#if:{{{ | | 3= {{#if:{{{country|}}}{{{location_country|}}}|<div style="display:inline;" class="country-name">{{if empty|{{{country|}}}|{{{location_country}}}}}</div>}} | ||
}} | }} | ||
| label11 = | | label11 = Country of origin | ||
| | | data11 = {{{country_of_origin|}}} | ||
| label12 = | | label12 = No. of locations | ||
| data12 = {{{ | | data12 = {{{locations|}}} | ||
| label13 = | | label13 = Area served | ||
| data13 = {{{ | | data13 = {{{area_served|}}} | ||
| label14 = | | label14 = Owner{{#if:{{{owners|}}}|s}} | ||
| data14 = {{if empty|{{{owners|}}}|{{{owner|}}}}} | |||
| | |||
<!-- Essentially the same, but up to the editor to choose --> | <!-- Essentially the same, but up to the editor to choose --> | ||
| | | label15 = Created by | ||
| | | data15 = {{if empty|{{{author|}}}|{{{creator|}}}|{{{authors|}}}|{{{creators|}}}}} | ||
| | | label16 = [[Organizational founder|Founder(s)]] | ||
| | | data16 = {{{founder|}}} | ||
| | | label17 = Editor{{#if:{{{editors|}}}|s}} | ||
| | | data17 = {{if empty|{{{editors|}}}|{{{editor|}}}}} | ||
| | | label18 = Chairman | ||
| | | data18 = {{{chairman|}}} | ||
| | | label19 = Chairperson | ||
| | | data19 = {{{chairperson|}}} | ||
| | | label20 = President | ||
| | | data20 = {{{president|}}} | ||
| | | label21 = CEO | ||
| | | data21 = {{{CEO|}}} | ||
| | | label22 = [[Chief executive officer|Managing director]] | ||
| | | data22 = {{{MD|}}} | ||
| | | label23 = General manager | ||
| | | data23 = {{{GM|}}} | ||
| | | label24 = Key people | ||
| | | data24 = {{{key_people|}}} | ||
| | | label25 = Industry | ||
| | | class25 = category | ||
| data25 = {{{industry|}}} | |||
| | | label26 = [[Product (business)|Products]] | ||
| | | data26 = {{{products|}}} | ||
| | | label27 = [[Service (economics)|Services]] | ||
| | | data27 = {{{services|}}} | ||
| | | label28 = [[Revenue]] | ||
| | | data28 = {{if empty|{{{revenue|}}}|{{{rev|}}}}} | ||
| | | label29 = [[Earnings before interest and taxes|Operating income]] | ||
| | | data29 = {{{operating_income|}}} | ||
| | | label30 = {{#ifeq:{{if empty|{{{international|}}}|{{{intl|}}}}}|yes|[[Net income|Profit]]|[[Net income]]}} | ||
| | | data30 = {{{net_income|}}} | ||
| | | label31 = [[Asset|Total assets]] | ||
| | | data31 = {{{assets|}}} | ||
| | | label32 = [[Equity (finance)|Total equity]] | ||
| | | data32 = {{{equity|}}} | ||
| | | label33 = Employees | ||
| | | data33 = {{if empty|{{{employees|}}}|{{{num_employees|}}}}} | ||
| | | label34 = [[Holding company|Parent]] | ||
| | | data34 = {{{parent|}}} | ||
| | | label35 = [[Division (business)|Divisions]] | ||
| | | data35 = {{{divisions|}}} | ||
| | | label36 = [[Subsidiary|Subsidiaries]] | ||
| | | data36 = {{if empty|{{{subsidiaries|}}}|{{{subsid|}}}}} | ||
| | |||
| | | label37 = URL | ||
| | | class37 = url | ||
| data37 = {{if empty|{{{url|}}}|{{{website|}}}|{{{homepage|}}}}} | |||
| | | label38 = [[IPv6]] support | ||
| | | data38 = {{{ipv6|}}} | ||
| | | label40 = [[Advertising]] | ||
| | | data40 = {{{advertising|}}} | ||
| | | label41 = Commercial | ||
| | | data41 = {{{commercial|}}} | ||
| | | label42 = Registration | ||
| | | data42 = {{if empty|{{{registration|}}}|{{{reg|}}}}} | ||
| | | label43 = [[Registered user|Users]] | ||
| | | data43 = {{if empty|{{{users|}}}|{{{num_users|}}}}} | ||
| | | label44 = Launched | ||
| | | data44 = {{if empty|{{{launched|}}}|{{{launch_date|}}}|{{{date_of_launch|}}}}} | ||
| | | label45 = Current status | ||
| | | class45 = category | ||
| | | data45 = {{{current_status|}}} | ||
| | | label46 = [[Computing platform|Native client(s) on]] | ||
| | | data46 = {{{native_clients|}}} | ||
<!-- Spelled differently; see [[MOS:ENGVAR]] --> | <!-- Spelled differently; see [[MOS:ENGVAR]] --> | ||
| | | label47 = {{#if:{{{content_license|}}}{{{license|}}}|{{longitem|Content license}}|{{longitem|Content licence}}}} | ||
| data47 = {{if empty|{{{content_license|}}}|{{{license|}}}|{{{content_licence|}}}|{{{licence|}}}}} | |||
| | |||
| | |||
| | |||
| | | label48 = Written in | ||
| | | data48 = {{{programming_language|}}} | ||
| | | label49 = [[ISSN (identifier)|ISSN]] | ||
| | | data49 = {{ISSN link|1={{if empty|{{{issn|}}}|{{{ISSN|}}}}}|2={{if empty|{{{eissn|}}}|{{{eISSN|}}}}}}} | ||
| | | label50 = [[OCLC (identifier)|OCLC]] number | ||
| | | data50 = {{#if:{{{oclc|}}}|{{OCLC search link|{{{oclc}}} }} }} | ||
| below = {{{footnotes|}}} | | below = {{{footnotes|}}} | ||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other| | }}{{#invoke:Check for unknown parameters|check|unknown=[[Category:{{main other|Pages using infobox website with unknown parameters|Non-articles using infobox website with unknown parameters}}|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Infobox website]] with unknown parameter "_VALUE_"|ignoreblank=y| advertising | area_served | assets | author | authors | background | caption | CEO | chairman | chairperson | collapsetext | collapsible | commercial | company_logo | company_name | company_type | content_licence | content_license | country | country_of_origin | creator | creators | current_status | date_of_launch | dissolved | divisions | editor | editors | embed | employees | equity | footnotes | foundation | founded | founder | GM | headquarters | homepage | industry | international | intl | ipv6 | issn | ISSN | eissn | eISSN | key_people | language | language_count | language_footnote | launch_date | launched | licence | license | location | location_city | location_country | locations | logo | logo_alt | logo_caption | logo_size | logocaption | MD | name | native_clients | net_income | num_employees | num_users | oclc | operating_income | owner | owners | parent | predecessor | president | products | programming_language | reg | registration | rev | revenue | screenshot | screenshot_alt | screenshot_size | services | subsid | subsidiaries | successor | traded_as | type | url | users | website | website_type | websitelogo | websitename | ||
}}{{# | }}{{#invoke:check for clobbered parameters|check | ||
| template = Infobox website | |||
| cat = {{main other|Category:Pages using infobox website with redundant parameters}} | |||
| name; company_name; websitename | |||
| company_logo; logo; websitelogo | |||
| logo_caption; logocaption | |||
| website_type; type | |||
| founded; foundation | |||
| headquarters; location | |||
| country; location_country | |||
| owners; owner | |||
| author; creator; authors; creators | |||
| editors; editor | |||
| revenue; rev | |||
| international; intl | |||
| employees; num_employees | |||
| subsidiaries; subsid | |||
| url; website; homepage | |||
| registration; reg | |||
| users; num_users | |||
| launched; launch_date; date_of_launch | |||
| content_license; license; content_licence; licence | |||
| issn; ISSN | |||
| eissn; eISSN | |||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 23:16, 12 March 2021
This template uses Lua: |
Usage
[[File:{{{logo}}}|{{{logo_size}}}|alt={{{logo_alt}}}|upright=1]] | |
{{{collapsetext}}}
[[File:{{{screenshot}}}|{{{screenshot_size}}}|alt={{{screenshot_alt}}}]] | |
Type of business | {{{company_type}}} |
---|---|
Type of site | {{{type}}} |
Available in | {{{language_count}}} languages{{{language_footnote}}} |
List of languages {{{language}}} | |
Traded as | {{{traded_as}}} |
Founded | {{{founded}}} |
Dissolved | {{{dissolved}}} |
Predecessor(s) | {{{predecessor}}} |
Successor(s) | {{{successor}}} |
Headquarters | {{{headquarters}}}, {{{location_city}}} , {{{location_country}}} |
Country of origin | {{{country_of_origin}}} |
No. of locations | {{{locations}}} |
Area served | {{{area_served}}} |
Owner | {{{owner}}} |
Created by | {{{author}}} |
Founder(s) | {{{founder}}} |
Editor | {{{editor}}} |
Chairman | {{{chairman}}} |
Chairperson | {{{chairperson}}} |
President | {{{president}}} |
CEO | {{{CEO}}} |
Managing director | {{{MD}}} |
General manager | {{{GM}}} |
Key people | {{{key_people}}} |
Industry | {{{industry}}} |
Products | {{{products}}} |
Services | {{{services}}} |
Revenue | {{{revenue}}} |
Operating income | {{{operating_income}}} |
Net income | {{{net_income}}} |
Total assets | {{{assets}}} |
Total equity | {{{equity}}} |
Employees | {{{employees}}} |
Parent | {{{parent}}} |
Divisions | {{{divisions}}} |
Subsidiaries | {{{subsidiaries}}} |
URL | example |
IPv6 support | {{{ipv6}}} |
Advertising | {{{advertising}}} |
Commercial | {{{commercial}}} |
Registration | {{{registration}}} |
Users | {{{num_users}}} |
Launched | {{Start date and age |df=yes/no|YYYY|MM|DD}} |
Current status | {{{current_status}}} |
Native client(s) on | {{{native_clients}}} |
Content license | {{{content_license}}} |
Written in | {{{programming_language}}} |
ISSN | {{{issn}}} (print) {{{eissn}}} (web) |
OCLC number | {{{oclc}}} |
{{{footnotes}}} |
Full version
Please remove any unused parameters when copying to an article page.
Parameters
All parameters are optional. Avoid linking to an article more than once within the infobox.
TemplateData for Infobox website
An infobox for articles about company
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name websitename | Title of the website. Sometimes, it is the same as the domain name.
| String | required |
Logo | logo websitelogo | The website logo | File | optional |
Logo size | logo_size | Size of the logo. See Wikipedia image tutorial to find out about valid size values. The default is 250px.
| String | optional |
Logo's caption | logo_caption logocaption | Caption for the logo. Most logos need none. But this field can be used to insert mandatory deletion notices. | Unknown | optional |
Logo's alternative text | logo_alt | Alternative text for the logo. Alternative text is displayed when the logo itself cannot be displayed or when a screen reader reads the article for the blind people. | String | optional |
Screenshot | screenshot | A screen photo of the homepage; see: [[:File:EnglishWikipediaMainPage3rdAugust2007.PNG|Example 1]].
| File | optional |
Screenshot's size | screenshot_size | Screenshot size. The default is 300px. Usually, changing the default is unnecessary.
| String | optional |
Screenshot's caption | caption | A caption for the screenshot. Should contain the date the screenshot was taken.
| String | optional |
Screenshot's alternative text | screenshot_alt | Alternative text for the screenshot. Alternative text is displayed when the screenshot itself cannot be displayed or when a screen reader reads the article for the blind people. | String | optional |
Is screenshot collapsible? | collapsible | Whether the screenshot should be collapsed or visible at page load. (Yes / No). Does nothing for mobile users (see [[phab:T111565]]).
| Boolean | optional |
Collapsed screenshot header | collapsetext | Text for the header of the collapsed section, defaults to ''Screenshot''. | String | optional |
Type | type website_type | The type of website
| String | optional |
Types of business entity | company_type | no description | Line | optional |
Language | language | The language(s) in which the website is available | Number | optional |
Language count | language_count | The number of languages in which the website is available | Number | optional |
Language footnote | language_footnote | The footnote text containing citation for the source that says what languages are available | Unbalanced wikitext | optional |
Traded as | traded_as | no description | Line | optional |
Founded | founded foundation | no description | Date | optional |
Dissolved | dissolved | no description | Date | optional |
Predecessor | predecessor | no description | String | optional |
Successor | successor | no description | String | optional |
Country of origin | country_of_origin | no description | String | optional |
No. of locations | locations | no description | Number | optional |
Area served | area_served | no description | String | optional |
Owner(s) | owner owners | The current owner(s); should be a company name, persons name, alias, etc. | String | optional |
Author(s) | author creator authors creators | The person or entity that writes for the website. | String | optional |
Founder(s) | founder | no description | String | optional |
Editor(s) | editor editors | The person or entity that serves as the website's editor | String | optional |
Chairman | chairman | no description | String | optional |
Chairperson | chairperson | no description | String | optional |
President | president | no description | String | optional |
CEO | CEO | no description | String | optional |
Managing director | MD | no description | String | optional |
General manager | GM | no description | String | optional |
Key people | key_people | no description | String | optional |
Industry | industry | no description | String | optional |
Products | products | no description | String | optional |
Services | services | no description | String | optional |
Revenue | revenue rev | The approximate revenue of the site | String | optional |
Operating income | operating_income | no description | String | optional |
Net income | net_income | no description | String | optional |
Total assets | assets | no description | String | optional |
Total equity | equity | no description | String | optional |
Total employees | employees num_employees | no description | String | optional |
Holding company | parent | no description | String | optional |
Divisions | divisions | no description | String | optional |
Subsidiaries | subsidiaries subsid | no description | String | optional |
Website | url website homepage | The canonical URL of the website's home page meeting [[WP:ELOFFICIAL]]. If the website is primarily accessed through its IP address, the IP address may be listed instead. | String | optional |
IPv6 support | ipv6 | no description | String | optional |
Advertising | advertising | no description | String | optional |
Is commercial? | commercial | Is the site commercially run / owned? (Yes / No) | Boolean | optional |
Registration | registration reg | Is there registration? (None / Optional / Required) | String | optional |
Users | users num_users | The number of registered users the website has | Number | optional |
Launch date | launch_date date_of_launch | When the website was launched; check the Whois database, if needed | Date | optional |
Current status | current_status | The website's current status | String | optional |
Native clients | native_clients | no description | String | optional |
Content license | content_license | The license of the content of the site. Use "Content licence" for British English spelling. | String | optional |
Content licence | content_licence | The license of the content of the site. Use "Content license" for American English spelling. | String | optional |
Programming language | programming_language | The programming language(s) by which the website is developed | String | optional |
ISSN | issn ISSN | The website's ISSN, e.g. 1085-6706 (automatically linked to https://www.WorldCat.org) | String | optional |
eISSN | eissn eISSN | The website's eISSN, e.g. 1085-6706 (automatically linked to https://www.WorldCat.org) | String | optional |
OCLC | oclc | The website's OCLC number | String | optional |
Footnotes | footnotes | Footnotes displayed at the bottom of infobox | Unbalanced wikitext | optional |
Example
Type of site | Online encyclopedia |
---|---|
Available in | 285 languages |
Country of origin | United States |
Owner | Wikimedia Foundation |
Created by | |
URL | wikipedia.org |
Commercial | No |
Registration | Optional but required for certain tasks, such as editing protected pages, creating pages on the English Wikipedia, and uploading files |
Users | 90.6 milliona |
Launched | January 15, 2001 |
Current status | Active |
Content license | CC Attribution / Share-Alike 3.0 Most text is also dual-licensed under GFDL; media licensing varies |
Written in | LAMP platform |
OCLC number | 52075003 |
|
References
- ↑ Sidener, Jonathan (6 December 2004). "Everyone's Encyclopedia". The San Diego Union-Tribune. Archived from the original on 14 January 2016. Retrieved 22 July 2020.
- ↑ Grand Total. Wikimedia. 22 July 2020. Retrieved 22 July 2020.
Tracking categories
Invalid, and requires correction
- Category:Pages using infobox website with unknown parameters (0)
- Category:Pages using infobox website with redundant parameters (0) – only one is visible in the infobox output