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
(included Generalized Fermat number)
(return universal-type date)
Line 47: Line 47:
 
   |#default={{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{{2}}}}}
 
   |#default={{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{{2}}}}}
 
   }}
 
   }}
   |{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{{2}}}}}}}
+
   |{{#ifeq:{{{2}}}|Date|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{#var:_short}}{{{2}}}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{{2}}}}}}}}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 11:55, 12 July 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