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

From Prime-Wiki
Jump to: navigation, search
(restored)
 
(plainlinks)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template will create a link to a given ID in the '''P'''rime '''P'''ages ([[Top 5000 Prime Database]]).
+
This template will create a link to a given ID in the [[The Prime Pages|'''P'''rime '''P'''ages]].
  
 
==Calling==
 
==Calling==
Line 14: Line 14:
 
which gives
 
which gives
  
[https://primes.utm.edu/primes/page.php?id=85528 2<sup>37156667</sup> - 1]
+
{{PP|85528|2<sup>37156667</sup> - 1}}
  
 
Mostly such links are used in tables only by giving the exponent like
 
Mostly such links are used in tables only by giving the exponent like
<pre>{{PP|85528|37156667}}</pre>
+
<pre>{{PP|85528|{{Num|37156667}}}}</pre>
  
 
which gives
 
which gives
  
[https://primes.utm.edu/primes/page.php?id=85528 37156667]
+
{{PP|85528|{{Num|37156667}}}}
 
[[Category:Templates]]
 
[[Category:Templates]]
</noinclude><includeonly>[https://primes.utm.edu/primes/page.php?id={{{1}}} {{{2}}}]</includeonly>
+
</noinclude><includeonly><span class="plainlinks">[https://primes.utm.edu/primes/page.php?id={{{1}}} {{{2}}}]</span></includeonly>

Latest revision as of 13:47, 7 March 2019

This template will create a link to a given ID in the Prime Pages.

Calling

{{PP|<id>|<display>}}

where

  • <id>: the internal database ID of the Top 5000 Database
  • <display>: how this number will be displayed in here

Examples

To create a link to the number M45 (the 45.th Mersenne prime) in the Prime Pages, write

{{PP|85528|2<sup>37156667</sup> - 1}}

which gives

237156667 - 1

Mostly such links are used in tables only by giving the exponent like

{{PP|85528|{{Num|37156667}}}}

which gives

37,156,667