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
(cat. changed)
(new look)
 
(One intermediate revision 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>
+
<pre>
 
+
{{Infobox Project
where
+
| title=
*title: title above the infobox, mostly name of the project
+
| image=
*running: if given, the project is still ongoing
+
| purpose=
*workload: type of workload
+
| category=
*homepage: link to the homepage
+
| platform=
 +
| worktype=
 +
| software=
 +
| status=
 +
| started=
 +
| result=
 +
| ended=
 +
| completed=
 +
}}
 +
</pre>
  
 +
==Example==
 
<pre>
 
<pre>
{{InfoboxProject
+
{{Infobox Project
|title=
+
| title=[[GIMPS]]
|running=
+
| image=[[File:Gimps.gif]]
|workload=
+
| purpose=Searching for [[Mersenne prime]]s
|homepage=
+
| 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>
 
</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
 +
}}
  
==Example==
+
==Template parameters==
Project is still running:
+
[[Category:Infoboxes|Project]]</noinclude><includeonly><div style="width: auto; float: right; padding: 5px; border: solid 1px black; border-radius:5px;">
<pre>{{InfoboxProject
+
{|
|title=Seventeen Or Bust
+
! align="center" colspan="2" style="background:SkyBlue; font-size:150%"| {{{title}}}
|running=true
+
|-
|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]
+
{{#if:{{{image|}}}|
|homepage=[http://www.seventeenorbust.com Homepage]
+
{{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}
}}</pre>
+
}}
will give
+
|-
{{InfoboxProject|title=Seventeen Or Bust|running=true|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]|homepage=[http://www.seventeenorbust.com Homepage]}}
+
| align="left" style="background:SkyBlue" | '''General :''' || style="border-bottom-style:solid; border-width:2px; border-color:SkyBlue;" |
<br>
+
|-
<br>
+
| Purpose : || {{{purpose}}}
<br>
+
|-
<br>
+
| Category : || {{{category}}}
<br>
+
|-
Project ended:
+
| align="left" colspan="1" style="background:SkyBlue" | '''Hardware / Software :''' || style="border-bottom-style:solid; border-width:2px; border-color:SkyBlue;" |
<pre>{{InfoboxProject
+
|-
|title=Seventeen Or Bust
+
| Platform : || {{{platform}}}
|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]
+
|-
|homepage=[http://www.seventeenorbust.com Homepage]
+
| Worktype : || {{{worktype}}}
}}</pre>
+
|-
will give
+
| Software : || {{{software}}}
{{InfoboxProject|title=Seventeen Or Bust|workload=[[Sieving]], [[Lucas-Lehmer test|LLR]]|homepage=[http://www.seventeenorbust.com Homepage]}}
+
|-
[[Category:Infoboxes|Project]]</noinclude>
+
| Website : || {{{website}}}
<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|}}}|GreenYellow|OrangeRed}};" | '''{{{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