Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3).
Navigation
Topics Help • Register • News • History • How to • Sequences statistics • Template prototypes

Difference between revisions of "Template:Infobox Project"

From Prime-Wiki
Jump to: navigation, search
m (Karbon moved page Tamplate:InfoboxProject to Template:InfoboxProject without leaving a redirect: name)
(examples)
Line 7: Line 7:
 
where
 
where
 
*title: title above the infobox, mostly name of the project
 
*title: title above the infobox, mostly name of the project
 +
*running: if given, the project is still ongoing
 
*workload: type of workload
 
*workload: type of workload
*running: the project is ongoing
 
 
*homepage: link to the homepage
 
*homepage: link to the homepage
  
Line 14: Line 14:
 
{{InfoboxProject
 
{{InfoboxProject
 
|title=
 
|title=
 +
|running=
 
|workload=
 
|workload=
|running=
 
 
|homepage=
 
|homepage=
 
}}
 
}}
Line 21: Line 21:
  
 
==Example==
 
==Example==
<pre>{{InfoboxProject|title=CUDALucas|workload=[[Lucas-Lehmer test]]|release=2009|latest=2.06beta<br>2017-05-05}}</pre>
+
Project is still running:
 +
<pre>{{InfoboxProject
 +
|title=Seventeen Or Bust
 +
|running=true
 +
|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]
 +
|homepage=[http://www.seventeenorbust.com Homepage]
 +
}}</pre>
 
will give
 
will give
 
+
{{InfoboxProject|title=Seventeen Or Bust|running=true|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]|homepage=[http://www.seventeenorbust.com Homepage]}}
Project running:
+
<br>
{{InfoboxProject|title=Seventeen Or Bust|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]|running=true|homepage=http://www.seventeenorbust.com}}
+
<br>
 
+
<br>
 +
<br>
 +
<br>
 
Project ended:
 
Project ended:
 +
<pre>{{InfoboxProject
 +
|title=Seventeen Or Bust
 +
|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]
 +
|homepage=[http://www.seventeenorbust.com Homepage]
 +
}}</pre>
 +
will give
 
{{InfoboxProject|title=Seventeen Or Bust|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]|homepage=[http://www.seventeenorbust.com Homepage]}}
 
{{InfoboxProject|title=Seventeen Or Bust|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]|homepage=[http://www.seventeenorbust.com Homepage]}}
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>
 
<includeonly>{| align="right" cellpadding="5" cellspacing="2" style="background-color:Gainsboro; margin:0px 10px 10px 10px; border-style: solid; border-width: 2px;"
 
<includeonly>{| align="right" cellpadding="5" cellspacing="2" style="background-color:Gainsboro; margin:0px 10px 10px 10px; border-style: solid; border-width: 2px;"
 
|-
 
|-
| colspan="2" align="center" style="background-color:{{#if:{{{running}}}|YellowGreen|Red}};" | '''{{{title}}}'''
+
| colspan="2" align="center" style="background-color:{{#if:{{{running|}}}|GreenYellow|OrangeRed}};" | '''{{{title}}}'''
 
|-
 
|-
 
|'''Workload type'''|| {{{workload}}}
 
|'''Workload type'''|| {{{workload}}}

Revision as of 12:23, 1 February 2019

This template will show an infobox for a [[:Category:Projects|projects] with some data given on the right side of the page.

Calling

{{InfoboxProject|<title>|<running>|<workload>|<homepage>}}

where

  • title: title above the infobox, mostly name of the project
  • running: if given, the project is still ongoing
  • workload: type of workload
  • homepage: link to the homepage
{{InfoboxProject
|title=
|running=
|workload=
|homepage=
}}

Example

Project is still running:

{{InfoboxProject
|title=Seventeen Or Bust
|running=true
|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]
|homepage=[http://www.seventeenorbust.com Homepage]
}}

will give Template:InfoboxProject




Project ended:

{{InfoboxProject
|title=Seventeen Or Bust
|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]
|homepage=[http://www.seventeenorbust.com Homepage]
}}

will give Template:InfoboxProject