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)
(new look)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template will show an infobox for a [[:Category:Projects|projects] with some data given on the right side of the page.
+
Template: Infobox Project
 +
 
 +
==Purpose==
 +
This template will show an infobox for a [[:Category:Project|project]] with some data given on the right side of the page.
  
 
==Calling==
 
==Calling==
<pre>{{InfoboxProject|<title>|<running>|<workload>|<homepage>}}</pre>
 
 
where
 
*title: title above the infobox, mostly name of the project
 
*workload: type of workload
 
*running: the project is ongoing
 
*homepage: link to the homepage
 
 
 
<pre>
 
<pre>
{{InfoboxProject
+
{{Infobox Project
|title=
+
| title=
|workload=
+
| image=
|running=
+
| purpose=
|homepage=
+
| category=
 +
| platform=
 +
| worktype=
 +
| software=
 +
| status=
 +
| started=
 +
| result=
 +
| ended=
 +
| completed=
 
}}
 
}}
 
</pre>
 
</pre>
  
 
==Example==
 
==Example==
<pre>{{InfoboxProject|title=CUDALucas|workload=[[Lucas-Lehmer test]]|release=2009|latest=2.06beta<br>2017-05-05}}</pre>
+
<pre>
will give
+
{{Infobox Project
 +
| title=[[GIMPS]]
 +
| image=[[File:Gimps.gif]]
 +
| purpose=Searching for [[Mersenne prime]]s
 +
| category=[[Primality test]]
 +
| platform=WIN, DOS, UNIX
 +
| worktype=[[Lucas-Lehmer test|LLR]], [[Elliptic curve method|ECM]], [[P-1 factorization method|P-1]]
 +
| software=[[Prime95]]
 +
| website=[https://www.mersenne.org/ Homepage]
 +
| status=active
 +
| started=1996
 +
| result=[https://primes.utm.edu/primes/search.php Primes found], [[List_of_known_Mersenne_primes|List]]
 +
| completed=running
 +
| ended=not yet
 +
}}
 +
</pre>
 +
{{Infobox Project
 +
| title=[[GIMPS]]
 +
| image=[[File:Gimps.gif]]
 +
| purpose=Searching for [[Mersenne prime]]s
 +
| category=[[Primality test]]
 +
| platform=WIN, DOS, UNIX
 +
| worktype=[[Lucas-Lehmer test|LLR]], [[Elliptic curve method|ECM]], [[P-1 factorization method|P-1]]
 +
| software=[[Prime95]]
 +
| website=[https://www.mersenne.org/ Homepage]
 +
| status=active
 +
| started=1996
 +
| result=[https://primes.utm.edu/primes/search.php Primes found], [[List_of_known_Mersenne_primes|List]]
 +
| completed=running
 +
| ended=not yet
 +
}}
  
Project running:
+
==Template parameters==
{{InfoboxProject|title=Seventeen Or Bust|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]|running=true|homepage=http://www.seventeenorbust.com}}
+
[[Category:Infoboxes|Project]]</noinclude><includeonly><div style="width: auto; float: right; padding: 5px; border: solid 1px black; border-radius:5px;">
 
+
{|
Project ended:
+
! align="center" colspan="2" style="background:SkyBlue; font-size:150%"| {{{title}}}
{{InfoboxProject|title=Seventeen Or Bust|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]|homepage=[http://www.seventeenorbust.com Homepage]}}
+
|-
[[Category:Templates]]</noinclude>
+
{{#if:{{{image|}}}|
<includeonly>{| align="right" cellpadding="5" cellspacing="2" style="background-color:Gainsboro; margin:0px 10px 10px 10px; border-style: solid; border-width: 2px;"
+
{{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}
 +
}}
 +
|-
 +
| align="left" style="background:SkyBlue" | '''General :''' || style="border-bottom-style:solid; border-width:2px; border-color:SkyBlue;" |
 +
|-
 +
| Purpose : || {{{purpose}}}
 +
|-
 +
| Category : || {{{category}}}
 +
|-
 +
| align="left" colspan="1" style="background:SkyBlue" | '''Hardware / Software :''' || style="border-bottom-style:solid; border-width:2px; border-color:SkyBlue;" |
 +
|-
 +
| Platform : || {{{platform}}}
 +
|-
 +
| Worktype : || {{{worktype}}}
 +
|-
 +
| Software : || {{{software}}}
 +
|-
 +
| Website : || {{{website}}}
 
|-
 
|-
| colspan="2" align="center" style="background-color:{{#if:{{{running}}}|YellowGreen|Red}};" | '''{{{title}}}'''
+
| align="left" style="background:SkyBlue" | '''Status :''' || style="border-bottom-style:solid; border-width:2px; border-color:SkyBlue;" | '''{{#ifeq:{{{status}}}|active|{{C|Green|{{{status}}}}}|{{C|Red|{{{status}}}}}}}'''
 
|-
 
|-
|'''Workload type'''|| {{{workload}}}
+
| Started : || {{{started}}}
 
|-
 
|-
|'''Homepage'''|| {{{homepage}}}
+
{{#if:{{{result|}}}|
|}</includeonly>
+
{{!}} Result :
 +
{{!}} {{{result}}}
 +
}}
 +
|-
 +
| % completed : || {{{completed}}}
 +
|-
 +
{{#if:{{{ended|}}}|
 +
{{!}} Ended :
 +
{{!}} {{{ended}}}
 +
}}
 +
|}
 +
</div></includeonly>

Latest revision as of 20:49, 9 March 2019

Template: Infobox Project

Purpose

This template will show an infobox for a project with some data given on the right side of the page.

Calling

{{Infobox Project
| title=
| image=
| purpose=
| category=
| platform=
| worktype=
| software=
| status=
| started=
| result=
| ended=
| completed=
}}

Example

{{Infobox Project
| title=[[GIMPS]]
| image=[[File:Gimps.gif]]
| purpose=Searching for [[Mersenne prime]]s
| category=[[Primality test]]
| platform=WIN, DOS, UNIX
| worktype=[[Lucas-Lehmer test|LLR]], [[Elliptic curve method|ECM]], [[P-1 factorization method|P-1]]
| software=[[Prime95]]
| website=[https://www.mersenne.org/ Homepage]
| status=active
| started=1996
| result=[https://primes.utm.edu/primes/search.php Primes found], [[List_of_known_Mersenne_primes|List]]
| completed=running
| ended=not yet
}}
GIMPS
Gimps.gif
General :
Purpose : Searching for Mersenne primes
Category : Primality test
Hardware / Software :
Platform : WIN, DOS, UNIX
Worktype : LLR, ECM, P-1
Software : Prime95
Website : Homepage
Status : active
Started : 1996
Result : Primes found, List
% completed : running
Ended : not yet

Template parameters