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)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
==Description==
 
Get a parameter value of a template by name is exist, "" (null) otherwise.
 
Get a parameter value of a template by name is exist, "" (null) otherwise.
  
Call:
+
==Call==
 +
:<nowiki>{{GP|<primes name>|<Parameter>}}</nowiki>
 +
 
 +
==Example==
 +
Get the parameter "CKReserved" from "Carol-Kynea base 2" primes
 +
:<nowiki>{{GP|Carol-Kynea base 2|CKReserved}}</nowiki>
  
<nowiki>{{GP|<Template>|<Parameter>}}</nowiki>
 
 
[[Category:Templates]]
 
[[Category:Templates]]
</noinclude><includeonly>{{#ifexist:{{{1}}}|{{Trim|{{#dpl:title={{{1}}}|skipthispage=no|include={Short}:{{{2}}}}}}}|}}</includeonly>
+
</noinclude><includeonly>{{#ifexist:{{{1}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={CarolKyneaBase}:{{{2}}}}}|}}</includeonly>

Revision as of 22:25, 15 December 2018

Description

Get a parameter value of a template by name is exist, "" (null) otherwise.

Call

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

Example

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

{{GP|Carol-Kynea base 2|CKReserved}}