Difference between revisions of "Template:Infobox website/sandbox"
imported>Frietjes m |
imported>IceWelder |
||
| Line 71: | Line 71: | ||
| label18 = Editor{{#if:{{{editors|}}}|s}} | | label18 = Editor{{#if:{{{editors|}}}|s}} | ||
| − | | data18 = {{ | + | | data18 = {{if empty|{{{editors|}}}|{{{editor|}}}}} |
| label19 = Chairman | | label19 = Chairman | ||
| Line 171: | Line 171: | ||
| data54 = {{{programming language|{{{programming_language|}}}}}} | | data54 = {{{programming language|{{{programming_language|}}}}}} | ||
| − | | | + | | label55 = [[International Standard Serial Number|ISSN]] |
| − | | | + | | data55 = {{ISSN link|1={{{issn|{{{ISSN|}}}}}}|2={{{eissn|{{{eISSN|}}}}}}}} |
| − | | | + | | label56 = [[OCLC]] number |
| − | + | | data56 = {{#if:{{{oclc|}}}|{{OCLC search link|{{{oclc}}} }} }} | |
| − | |||
| − | |||
| − | | | ||
| below = {{{footnotes|}}} | | below = {{{footnotes|}}} | ||
| − | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox website with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox website]] with unknown parameter "_VALUE_"|ignoreblank=y| advertising | alexa | area served | area_served | assets | author | authors | background | caption | CEO | chairman | chairperson | collapsetext | collapsible | commercial | Commercial | company logo | company name | company type | company_logo | company_name | company_type | content licence | content license | content_licence | content_license | coordinates | country | country of origin | country_of_origin | creator | creators | current status | current_status | date_of_launch | Dissolved | dissolved | divisions | editor | editors | embed | employees | equity | footnotes | foundation | Foundation | founded | Founded | founder | GM | headquarters | homepage | industry | international | intl | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox website with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox website]] with unknown parameter "_VALUE_"|ignoreblank=y| advertising | alexa | area served | area_served | assets | author | authors | background | caption | CEO | chairman | chairperson | collapsetext | collapsible | commercial | Commercial | company logo | company name | company type | company_logo | company_name | company_type | content licence | content license | content_licence | content_license | coordinates | country | country of origin | country_of_origin | creator | creators | current status | current_status | date_of_launch | Dissolved | dissolved | divisions | editor | editors | embed | employees | equity | footnotes | foundation | Foundation | founded | Founded | founder | GM | headquarters | homepage | industry | international | intl | ipv6 | issn | ISSN | eissn | eISSN | key people | key_people | language | language count | language footnote | launch date | launch_date | launched | Licence | licence | license | License | location | location city | location country | location_city | location_country | locations | logo | logo alt | logo size | logo_alt | logo_caption | Logo_caption | logo_size | logocaption | Logocaption | MD | name | native clients | native_clients | net income | net_income | num employees | num users | num_employees | num_users | oclc | operating income | operating_income | owner | owners | parent | predecessor | president | products | programming language | programming_language | reg | registration | Rev | rev | Revenue | revenue | screenshot | screenshot alt | screenshot size | screenshot_alt | screenshot_size | services | subsid | subsidiaries | successor | traded as | traded_as | type | Type | url | users | website | Website logo | website logo | Website name | website name | website type | website_type | websitelogo | Websitelogo | Websitename | websitename | company_slogan | slogan |
}}{{#if:{{{company_slogan|}}}{{{slogan|}}}|{{main other|1=[[Category:Pages using infobox website with company slogan or slogan]]{{#if:{{REVISIONID}}||<div style="color:red; float:right; clear:right; width:22em;">Warning: {{para|company_slogan}} and {{para|slogan}} are no longer supported by {{tl|infobox website}}</div>}}}} | }}{{#if:{{{company_slogan|}}}{{{slogan|}}}|{{main other|1=[[Category:Pages using infobox website with company slogan or slogan]]{{#if:{{REVISIONID}}||<div style="color:red; float:right; clear:right; width:22em;">Warning: {{para|company_slogan}} and {{para|slogan}} are no longer supported by {{tl|infobox website}}</div>}}}} | ||
}}{{#if:{{both|{{{headquarters|}}}|{{{location|}}}}}|[[Category:Pages using infobox website with headquarters and location]] | }}{{#if:{{both|{{{headquarters|}}}|{{{location|}}}}}|[[Category:Pages using infobox website with headquarters and location]] | ||
| Line 189: | Line 186: | ||
}}{{#if:{{both|{{{location|}}}|{{{location city|}}}{{{location_city|}}}}}|[[Category:Pages using infobox website with location and location city]] | }}{{#if:{{both|{{{location|}}}|{{{location city|}}}{{{location_city|}}}}}|[[Category:Pages using infobox website with location and location city]] | ||
}}{{#if:{{both|{{{website type|{{{website_type|}}}}}}|{{{type|{{{Type|}}}}}}}}|[[Category:Pages using infobox website with website type and type]] | }}{{#if:{{both|{{{website type|{{{website_type|}}}}}}|{{{type|{{{Type|}}}}}}}}|[[Category:Pages using infobox website with website type and type]] | ||
| + | }}{{#if:{{{ip|}}}|[[Category:Pages using infobox website with ip|{{#if:{{{url|}}}{{{website|}}}{{{homepage|}}}|{{PAGENAME}}|Ι{{PAGENAME}}}}]] | ||
| + | }}{{#ifeq:{{{Commercial|ψ}}}{{{Dissolved|ψ}}}{{{Foundation|ψ}}}{{{Founded|ψ}}}{{{Logo_caption|ψ}}}{{{Logocaption|ψ}}}{{{Rev|ψ}}}{{{Revenue|ψ}}}{{{Type|ψ}}}{{{Website logo|ψ}}}{{{Website name|ψ}}}{{{Websitelogo|ψ}}}{{{Websitename|ψ}}}|ψψψψψψψψψψψψψ||[Category:Pages using infobox website with deprecated parameters]] | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 14:37, 31 October 2019
Type of site | Script error: No such module "If empty". |
|---|---|
| Headquarters | Script error: No such module "If empty". |
| Editor | Script error: No such module "If empty". |
| This is the template sandbox page for Template:Infobox website (diff). See also the companion subpage for test cases. |
| This template uses Lua: |
Contents
Usage
Template:Parameter names example
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
| Script error: No such module "If empty". Script error: No such module "If empty". | |
Screenshot ![]() Main Page of the English Wikipedia on July 19, 2020 | |
Type of site | Script error: No such module "If empty". |
|---|---|
| Available in | 285 languages |
| Founded | Script error: No such module "If empty". |
| Headquarters | Script error: No such module "If empty". |
| Country of origin | United States |
| Owner | Script error: No such module "If empty". |
| Created by | Script error: No such module "If empty". |
| Editor | Script error: No such module "If empty". |
| Revenue | Script error: No such module "If empty". |
| Employees | Script error: No such module "If empty". |
| Subsidiaries | Script error: No such module "If empty". |
| URL | Script error: No such module "If empty". |
| Commercial | No |
| Registration | Script error: No such module "If empty". |
| Users | Script error: No such module "If empty". |
| Launched | Script error: No such module "If empty". |
| Current status | Active |
Content license | Script error: No such module "If empty". |
| Written in | LAMP platform |
| ISSN | Script error: No such module "If empty". Script error: No such module "If empty". (print)Template:Please check ISSN Script error: No such module "If empty". Script error: No such module "If empty". (web)Template:Please check ISSN |
| OCLC number | Template:OCLC search link |
| |
References
- ↑ Grand Total. Wikimedia. 22 July 2020. Retrieved 22 July 2020.
- ↑ 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.
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
See also
Template:Organization infoboxes
| The above documentation is transcluded from Template:Infobox website/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
