Difference between revisions of "Template:Infobox project"

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
(add hCalendar microformat; disestablishment date)
imported>Gonnym
 
(71 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{| class="infobox borderless vevent" summary="Template:Infobox_project" style="font-size:90%; text-align:left; width:24em;"
+
{{Infobox
! colspan="2" style="text-align:center; font-size:125%;" class="summary" | {{{projectname|{{{name|{{PAGENAME}}}}}}}}  
+
| bodyclass = vcard
|-
+
 
{{#if:{{{projectlogo|{{{logo|}}}}}}|
+
| aboveclass = summary
{{!}} colspan="2" style="text-align:center;" {{!}} {{{projectlogo|{{{logo}}}}}}
+
| above = {{if empty|{{{projectname|{{{name|}}}}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} {{#if:{{{abbreviation|{{{abbrev|}}}}}}| ({{{abbreviation|{{{abbrev|}}}}}})|}}
{{!}}-
+
 
 +
| subheader = {{{native_name|}}}
 +
 
 +
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{projectlogo|{{{logo|}}}}}}|size={{{logo_size|}}}|alt={{{logo_alt|}}}}}
 +
 
 +
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{screenshot|}}}}}} |alt={{{image_alt|}}}}}
 +
| caption2 = {{{caption|}}}
 +
 
 +
| label1  = {{#if:{{{motto|}}}|Motto|[[Mission statement]]}}
 +
| data1  = {{{mission_statement|{{{missionstatement|{{{mission statement|{{{motto|}}}}}}}}}}}}
 +
 
 +
| label2 = Slogan
 +
| data2 = {{{slogan|}}}
 +
 
 +
| label3  = Commercial?
 +
| data3  = {{{commercial|}}}
 +
 
 +
| label4 = Type of project
 +
| data4 = {{{type|}}}
 +
 
 +
| label5 = Products
 +
| data5 = {{{products|}}}
 +
 
 +
| label6 = Location
 +
| data6 = {{{reg|{{{location|}}}}}}
 +
 
 +
| label7 =  Owner
 +
| data7 = {{{owner|}}}
 +
 
 +
| label8 = Founder
 +
| data8 = {{{founder|}}}
 +
 
 +
| label9 = Country
 +
| data9 = {{{country|}}}
 +
 
 +
| label10 = {{#if:{{{country|}}}|[[Prime Minister of {{Unlink|{{{country|}}}}}|Prime Minister(s)]]|Prime Minister}}
 +
| data10 = {{{primeminister|}}}
 +
 
 +
| label11 = State
 +
| data11 = {{#if:{{{state|}}}|[[{{Unlink|{{{state}}}}}]]|{{{state|}}}}}
 +
 
 +
| label12 = {{#if:{{{state|}}}|[[List of Chief Ministers of {{Unlink|{{{state|}}}}}|Chief Minister]]|Chief Minister}}
 +
| data12 = {{#if:{{{chiefminister|}}}|[[{{Unlink|{{{chiefminister|}}}}}]]|{{{chiefminister|}}}}}
 +
 
 +
| label13 = Ministry
 +
| data13 = {{{ministry|}}}
 +
 
 +
| label14  =  Key people
 +
| data14  = {{{key_people|}}}
 +
 
 +
| label15 = Established
 +
| data15 = {{{established|{{{date_of_establishment|{{{establishment date|}}}}}}}}}
 +
 
 +
| label16 = Launched
 +
| data16 = {{br separated entries|1={{#invoke:Wikidata|getValue|P571|{{{launch_date|{{{launched|}}}}}}}}|2={{#invoke:Wikidata|getValue|P1427|{{{launch_place|}}}}}}}
 +
 
 +
| label17 = {{#if:{{{closed|}}}|Closed|Disestablished}}
 +
| data17 = {{#invoke:Wikidata|getValue|P576|{{{disestablished|{{{date_of_disestablishment|{{{disestablishment date|{{{closed|}}}}}}}}}}}}}}
 +
 
 +
| label18 = {{#if:{{{budget|}}}|Budget|Funding}}
 +
| data18 = {{{rev|{{{funding|{{{budget|}}}}}}}}}
 +
 
 +
| label19 = Status
 +
| data19 = {{{current_status|{{{current status|}}}}}}
 +
 
 +
| label20 = Website
 +
| data20 = {{#invoke:Wikidata|getValue|P856|{{{website|FETCH_WIKIDATA}}}}}
 +
 
 +
| below = {{#if:{{{status|}}}|'''Status:''' {{#switch:{{lc:{{{status}}}}}
 +
  | active = Active
 +
  | closed = Closed
 +
  |#default  = Unknown
 +
  }}
 
}}
 
}}
{{#ifeq:{{{collapsible|}}}|yes|<!-- then -->
+
 
{{!}} colspan="2" {{!}}
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox project with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview = Page using [[Template:Infobox project]] with unknown parameter "_VALUE_"|ignoreblank=y | abbreviation | alt | budget | caption | chiefminister | closed | commercial | country | current_status | date_of_disestablishment | date_of_establishment | disestablished | established | founder | funding | image | key_people | launch_date | launch_place | launched | location | logo | logo_alt | ministry | motto | mission_statement | name | native_name | owner | primeminister | products | reg | rev | slogan | state | type | website }}<includeonly>{{#ifeq:{{{child|}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly><noinclude>
{{hidden|Screenshot|{{{screenshot}}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}|bg1=#ccccff|ta2=center}}
+
{{Documentation}}
{{!}}-
 
|<!-- else -->
 
{{#if:{{{screenshot|}}}|
 
{{!}} colspan="2" style="text-align: center;" {{!}} {{{screenshot}}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
 
{{!}}-
 
}}
 
}}
 
{{#if:{{{website|}}}|
 
! Website
 
{{!}} {{{website}}}
 
{{!}}-
 
}}
 
{{#if:{{{missionstatement|}}}|
 
! [[Mission statement]]
 
{{!}} {{{missionstatement}}}
 
{{!}}-
 
}}
 
{{#if:{{{commercial|}}}|
 
! Commercial?
 
{{!}} {{{commercial}}}
 
{{!}}-
 
}}
 
{{#if:{{{type|}}}|
 
! Type of project
 
{{!}} {{{type}}}
 
{{!}}-
 
}}
 
{{#if:{{{reg|{{{location|}}}}}}|
 
! Location
 
{{!}} {{{reg|{{{location}}}}}}
 
{{!}}-
 
}}
 
{{#if:{{{owner|}}}|
 
! Owner
 
{{!}} {{{owner}}}
 
{{!}}-
 
}}
 
{{#if:{{{Founder's photo|{{{founderimage|}}}}}}|
 
{{!}} colspan="2" style="text-align:center;" {{!}} {{{Founder's photo|{{{founderimage}}}}}}
 
{{!}}-
 
}}
 
{{#if:{{{founder|}}}|
 
! Founder
 
{{!}} {{{founder}}}
 
{{!}}-
 
}}
 
{{#if:{{{date_of_establishment|{{{establishment date|}}}}}}|
 
! Established
 
{{!}} {{{date_of_establishment|{{{establishment date}}}}}}
 
{{!}}-
 
}}
 
{{#if:{{{date_of_disestablishment|{{{disestablishment date|}}}}}}|
 
! Disestablished
 
{{!}} {{{date_of_disestablishment|{{{disestablishment date}}}}}}
 
{{!}}-
 
}}
 
{{#if:{{{rev|{{{funding|}}}}}}|
 
! Funding
 
{{!}} {{{rev|{{{funding}}}}}}
 
{{!}}-
 
}}
 
{{#if:{{{current_status|{{{current status|}}}}}}|
 
! Current status
 
{{!}} {{{current_status|{{{current status}}}}}}
 
{{!}}-
 
}}
 
|}<noinclude>
 
{{documentation}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 12:06, 29 June 2020

Script error: No such module "If empty".
LaunchedScript error: No such module "Wikidata".
Script error: No such module "Wikidata".
DisestablishedScript error: No such module "Wikidata".
WebsiteScript error: No such module "Wikidata".

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

Usage

name 
name of the project
logo 
logo of the project
image 
representative image for the project
mission_statement 
mission statement of the project
commercial 
Yes/No
type 
type of the project
products 
products
location 
location of the project
owner 
owner of the project
founder 
name of the founder
key_people 
key people
established 
date of establishment of the project; use {{Start date}}
disestablished 
date of disestablishment of the project; use {{End date}}
funding 
Project funding details
current_status 
Current status
website 
website of the project; use {{URL}}

Example

Script error: No such module "If empty".
Noflag2.svg
Mission statement"Working collaboratively towards a free version of the education curriculum by 2015"
Commercial?No
Type of projectFree, Open and Online Distance Learning
LocationCanada
OwnerSupported by Commonwealth of Learning & Owned by community
FounderWayne Mackintosh
EstablishedMay 2006 (2006-05)
LaunchedScript error: No such module "Wikidata".
Script error: No such module "Wikidata".
DisestablishedScript error: No such module "Wikidata".
WebsiteScript error: No such module "Wikidata".
[[Category:Infobox templates|Template:Remove first word]]Template:Wikidata image
{{Infobox project
| name = WikiEducator
| logo = [[File:Noflag2.svg|135px]]
| mission_statement = "Working collaboratively towards a free version of the education curriculum by 2015"
| commercial = No
| type = Free, Open and Online Distance Learning 
| location = Canada
| owner = Supported by [[Commonwealth of Learning]] & Owned by community
| founder = Wayne Mackintosh
| established = {{Start date|2006|05}}
| website = {{URL|www.wikieducator.org}}
}}

Blank

{{Infobox project
| name = 
| logo = 
| image =
| caption = 
| mission_statement = 
| commercial = 
| type = 
| products = 
| location = 
| country = 
| owner = 
| founder = 
| primeminister = 
| key_people =
| established = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| disestablished = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| funding = 
| budget = 
| current_status =
| website = <!-- {{URL|example.com}} --> 
}}

Government scheme

{{Infobox project
| abbreviation = 
| native_name = 
| logo = 
| image = 
| caption = 
| motto = 
| type = 
| country = 
| primeminister = 
| ministry = 
| key_people = 
| launched = <!-- {{Start date and age|YYYY|MM|DD|df=y}} -->
| launch_place = 
| closed = <!-- {{End date and age|YYYY|MM|DD|df=y}} -->
| budget = 
| website = <!-- {{URL|example.com}} -->
| status = 
}}

Microformat

Template:UF-hcal

Tracking category