Difference between revisions of "Template:Infobox project"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
m
imported>Gonnym
 
(69 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| bodyclass = vevent
+
| bodyclass = vcard
  
 
| aboveclass = summary
 
| aboveclass = summary
| above = {{ifempty|{{{projectname|{{{name|}}}}}}|<includeonly>{{PAGENAME}}</includeonly>}}
+
| 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|}}}}}
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{projectlogo|{{{logo|}}}}}}|size={{{logo_size|}}}|alt={{{logo_alt|}}}}}
  
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{screenshot|}}}}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}}
+
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{screenshot|}}}}}} |alt={{{image_alt|}}}}}
 
| caption2 = {{{caption|}}}
 
| caption2 = {{{caption|}}}
  
| label1  = Website
+
| label1  = {{#if:{{{motto|}}}|Motto|[[Mission statement]]}}
| data1  = {{{website|}}}
+
| data1  = {{{mission_statement|{{{missionstatement|{{{mission statement|{{{motto|}}}}}}}}}}}}
  
| label2 = [[Mission statement]]
+
| label2 = Slogan
| data2   = {{{mission_statement|{{{missionstatement|{{{mission statement|}}}}}}}}}
+
| data2 = {{{slogan|}}}
  
 
| label3  = Commercial?
 
| label3  = Commercial?
| data3   = {{{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|}}}}}
  
| label4  = Type of project
+
| label13 = Ministry
| data4  = {{{type|}}}
+
| data13 = {{{ministry|}}}
  
| label5 = Location
+
| label14 = Key people
| data5  = {{{reg|{{{location|}}}}}}
+
| data14  = {{{key_people|}}}
  
| label6  = Owner
+
| label15 = Established
| data6  = {{{owner|}}}
+
| data15 = {{{established|{{{date_of_establishment|{{{establishment date|}}}}}}}}}
  
| data7  = {{#invoke:InfoboxImage|InfoboxImage|image={{{founder_image|{{{Founder's photo|{{{founderimage|}}}}}}}}}}}
+
| label16 = Launched
 +
| data16 = {{br separated entries|1={{#invoke:Wikidata|getValue|P571|{{{launch_date|{{{launched|}}}}}}}}|2={{#invoke:Wikidata|getValue|P1427|{{{launch_place|}}}}}}}
  
| label8  = Founder
+
| label17 = {{#if:{{{closed|}}}|Closed|Disestablished}}
| data8  = {{{founder|}}}
+
| data17 = {{#invoke:Wikidata|getValue|P576|{{{disestablished|{{{date_of_disestablishment|{{{disestablishment date|{{{closed|}}}}}}}}}}}}}}
  
| label9  = Established
+
| label18 = {{#if:{{{budget|}}}|Budget|Funding}}
| data9  = {{{established|{{{date_of_establishment|{{{establishment date|}}}}}}}}}
+
| data18 = {{{rev|{{{funding|{{{budget|}}}}}}}}}
  
| label10 = Disestablished
+
| label19 = Status
| data10  = {{{disestablished|{{{date_of_disestablishment|{{{disestablishment date|}}}}}}}}}
+
| data19 = {{{current_status|{{{current status|}}}}}}
  
| label11 = Funding
+
| label20 = Website
| data11  = {{{rev|{{{funding|}}}}}}
+
| data20 = {{#invoke:Wikidata|getValue|P856|{{{website|FETCH_WIKIDATA}}}}}
  
| label12 = Current status
+
| below = {{#if:{{{status|}}}|'''Status:''' {{#switch:{{lc:{{{status}}}}}
| data12  = {{{current_status|{{{current status|}}}}}}
+
  | active = Active
 +
  | closed = Closed
 +
  |#default  = Unknown
 +
  }}
 +
}}
  
}}<noinclude>
+
}}{{#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>
{{documentation}}
+
{{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