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:InfoboxMersennePrime"

From Prime-Wiki
Jump to: navigation, search
(some change)
(some change)
Line 106: Line 106:
 
|}
 
|}
 
{{#if:{{#pos:{{{rank}}}|*}}|<span style="font-size:80%;">* The rank could be changed, so provisional.</span>}}</div></includeonly>
 
{{#if:{{#pos:{{{rank}}}|*}}|<span style="font-size:80%;">* The rank could be changed, so provisional.</span>}}</div></includeonly>
 +
<noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"title": {
 +
"label": "Title",
 +
"description": "The title of the infobox.",
 +
"example": "M51",
 +
"type": "string",
 +
"required": true
 +
},
 +
"rank": {},
 +
"nvalue": {},
 +
"top5000id": {},
 +
"digits": {},
 +
"pdigits": {},
 +
"discovery": {},
 +
"discoverer": {},
 +
"credit1": {},
 +
"credit2": {},
 +
"credit3": {},
 +
"project": {},
 +
"press": {}
 +
},
 +
"description": "All data for a Mersenne prime."
 +
}
 +
</templatedata>
 +
</noinclude>

Revision as of 14:41, 12 February 2019

Template: InfoboxMersennePrime

Purpose

Showing information of an Mersenne prime.

Calling

{{InfoboxMersennePrime
| title=
| rank=
| nvalue=
| top5000id=
| digits=
| pdigits=
| discovery=
| discoverer=
| credit1=
| credit2=
| credit3=
| project=
| press=
}}

Example

{{InfoboxMersennePrime
| title= M51
| rank= 51*
| nvalue= 82 589 933
| top5000id=125874
| digits=[https://www.mersenne.org/primes/digits/M82589933.zip 24 862 048]
| pdigits=[https://www.mersenne.org/primes/perfect/perfect82589933.zip 49 724 095]
| discovery=2018-12-07
| discoverer=[[Patrick Laroche]]
| credit1=[[George Woltman]]
| credit2=[[Aaron Blosser]] et. al.
| project=[[GIMPS]] & [[PrimeNet]]
| press=[https://www.mersenne.org/primes/?press=M82589933 Press release]
}}

If the rank contains a *, a remark for provisional ranking is shown at the bottom.

M51
Prime class :
Type : Mersenne prime
Formula : Mn = 2n - 1
Prime data :
Rank : 51*
n-value : PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
Number : {{{number}}}
Digits : 589 933.zip PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
Perfect number : 2PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
• (2PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
-1)
Digits : 589 933.zip PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
Discovery data :
Date of Discovery : 2018-12-07
Discoverer : Patrick Laroche

<templatedata> { "params": { "title": { "label": "Title", "description": "The title of the infobox.", "example": "M51", "type": "string", "required": true }, "rank": {}, "nvalue": {}, "top5000id": {}, "digits": {}, "pdigits": {}, "discovery": {}, "discoverer": {}, "credit1": {}, "credit2": {}, "credit3": {}, "project": {}, "press": {} }, "description": "All data for a Mersenne prime." } </templatedata>