Navigation
Topics Register • News • History • How to • Sequences statistics • Template prototypes

Difference between revisions of "Template:GP"

From Prime-Wiki
Jump to: navigation, search
(use RMaxn if filled although RMultiRes is set)
(new type "GF Divisor")
 
Line 22: Line 22:
 
*<nowiki>{{GP|Riesel prime 65|RNlist}}</nowiki>
 
*<nowiki>{{GP|Riesel prime 65|RNlist}}</nowiki>
 
:{{GP|Riesel prime 65|RNlist}}
 
:{{GP|Riesel prime 65|RNlist}}
 +
 +
*<nowiki>{{GP|GF Divisor 3 209|GFList}}</nowiki>
 +
:{{GP|GF Divisor 3 209|GFList}}
 +
 
[[Category:Templates]]</noinclude><includeonly><!--
 
[[Category:Templates]]</noinclude><includeonly><!--
 
-->{{#vardefine:_type|none}}<!--
 
-->{{#vardefine:_type|none}}<!--
Line 33: Line 37:
 
-->{{#if:{{#pos:{{{1}}}|Woodall}}|{{#vardefine:_type|Woodall prime}}{{#vardefine:_short|Wo}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Woodall}}|{{#vardefine:_type|Woodall prime}}{{#vardefine:_short|Wo}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Gen}}|{{#vardefine:_type|Gen {{#var:_type}}}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|Gen}}|{{#vardefine:_type|Gen {{#var:_type}}}}}}<!--
 +
-->{{#if:{{#pos:{{{1}}}|GF}}|{{#vardefine:_type|GF Divisor}}{{#vardefine:_short|GF}}}}<!--
 
-->{{#vardefine:_mres|{{#ifexist:{{{1}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{#var:_short}}MultiRes}}}}}}<!--
 
-->{{#vardefine:_mres|{{#ifexist:{{{1}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{#var:_short}}MultiRes}}}}}}<!--
 
-->{{#vardefine:_mmax|{{#ifexist:{{{1}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{#var:_short}}Maxn}}}}}}<!--
 
-->{{#vardefine:_mmax|{{#ifexist:{{{1}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{#var:_short}}Maxn}}}}}}<!--

Latest revision as of 08:23, 30 November 2020

Description

Get a parameter value of a template by name if exists, "" (null) otherwise.

Call

{{GP|<prime name>|<Parameter>}}

Examples

Get the parameter "CKReserved" from "Carol-Kynea base 2" primes

  • {{GP|Carol-Kynea prime 2|CKBase}} results in
2
  • {{GP|Riesel prime 15|RMaxn}} results in
5500000
  • {{GP|Riesel prime 65|RMaxn}} (using MultiReservation) results in
3100000
  • {{GP|Riesel prime 65|RDate}} (using MultiReservation) results in
2020-11-12
  • {{GP|Riesel prime 65|RNlist}}
4

6 12 22 28 52 78 94 124 162 174 192 204 304 376 808 930 972 1714 1776 2176 2568 4392 4728 5548 8046 12474 26856 27156 45240 52026 134598;1957 179658;656 185946;626 578512;75621 647130;78230 1374574;97849 1421088;98403 1505640;99143 2450614;117055 2583720;120527 2876718;122668 3080952;131397

  • {{GP|GF Divisor 3 209|GFList}}
2,1,207

3,1,207 3,2,206 4,3,207 5,1,208 5,2,208 5,3,208 5,4,208 6,1,203 6,5,208 8,3,205 8,5,208 9,2,207 9,5,208 9,8,207 10,1,208 10,3,208 10,9,208 12,1,207 12,5,208