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
(using any prime template)
(added for Williams)
Line 13: Line 13:
 
*<nowiki>{{GP|Riesel prime 15|RMaxn}}</nowiki> results in
 
*<nowiki>{{GP|Riesel prime 15|RMaxn}}</nowiki> results in
 
:{{GP|Riesel prime 15|RMaxn}}
 
:{{GP|Riesel prime 15|RMaxn}}
 
 
[[Category:Templates]]
 
[[Category:Templates]]
</noinclude><includeonly>{{#vardefine:q|{{#sub:{{{1}}}|0|{{#rpos:{{{1}}}| }} }}}}{{#ifexist:{{{1}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:q}}}:{{{2}}}}}|}}</includeonly>
+
</noinclude><includeonly>{{#if:{{#pos:{{{1}}}|Williams}}|{{#vardefine:q|Williams prime}}|{{#vardefine:q|{{#sub:{{{1}}}|0|{{#rpos:{{{1}}}| }} }}}}}}{{#ifexist:{{{1}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:q}}}:{{{2}}}}}|}}</includeonly>

Revision as of 10:20, 16 May 2019

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