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

From Prime-Wiki
Jump to: navigation, search
(new type "GF Divisor")
(included Generalized Fermat number)
Line 38: Line 38:
 
-->{{#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}}}}<!--
 
-->{{#if:{{#pos:{{{1}}}|GF}}|{{#vardefine:_type|GF Divisor}}{{#vardefine:_short|GF}}}}<!--
 +
-->{{#if:{{#pos:{{{1}}}|Generalized Fermat number}}|{{#vardefine:_type|Generalized Fermat number}}{{#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}}}}}}<!--

Revision as of 10:24, 24 June 2021

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
  • {{GP|Riesel prime 65|RMaxn}} (using MultiReservation) results in
  • {{GP|Riesel prime 65|RDate}} (using MultiReservation) results in
  • {{GP|Riesel prime 65|RNlist}}
  • {{GP|GF Divisor 3 209|GFList}}
2,1,207#1956#Raphael M. Robinson

3,1,207#1992#Harvey Dubner 3,2,206#1996#Anders Björn,Hans Riesel 4,3,207#1996#Anders Björn,Hans Riesel 5,1,208#1992#Harvey Dubner 5,2,208#1996#Anders Björn,Hans Riesel 5,3,208#1996#Anders Björn,Hans Riesel 5,4,208#1996#Anders Björn,Hans Riesel 6,1,203#1969#Hans Riesel 6,5,208#1996#Anders Björn,Hans Riesel 8,3,205#1996#Anders Björn,Hans Riesel 8,5,208#1996#Anders Björn,Hans Riesel 9,2,207#1996#Anders Björn,Hans Riesel 9,5,208#1996#Anders Björn,Hans Riesel 9,8,207#1996#Anders Björn,Hans Riesel 10,1,208#1992#Harvey Dubner 10,3,208#1996#Anders Björn,Hans Riesel 10,9,208#1996#Anders Björn,Hans Riesel 12,1,207#1969#Hans Riesel 12,5,208#1996#Anders Björn,Hans Riesel