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:Woodall prime"

From Prime-Wiki
Jump to: navigation, search
(hidden reservation by person/project)
(changed for near/gen.)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Description==
 
==Description==
Template "Gen. Woodall prime"
+
Template "Woodall prime"
  
Display of current data for [[Gen. Woodall prime|Generlized Woodall primes]], comments will be displayed as references at the bottom.
+
Display of current data for [[Woodall prime|(Near/Generlized) Woodall primes]], comments will be displayed as references at the bottom.
 +
 
 +
The base and the sign (for near types) are determined from the page title, the same for the categorizations.
  
 
==Calling==
 
==Calling==
 
<pre>
 
<pre>
{{Gen. Woodall prime
+
{{Woodall prime
 
|WoBase=
 
|WoBase=
 
|WoMaxn=
 
|WoMaxn=
Line 16: Line 18:
 
}}
 
}}
 
</pre>
 
</pre>
 
The category [[:Category:Gen. Woodall prime|Gen. Woodall prime]] is set by default.
 
 
If no n-value is given, the category [[:Category:Gen. Woodall prime without|Gen. Woodall prime without]] is set automatically.
 
  
 
==Example==
 
==Example==
 
<pre>
 
<pre>
{{Gen. Woodall prime
+
{{Woodall prime
 
|WoBase=6
 
|WoBase=6
 
|WoMaxn=1000000
 
|WoMaxn=1000000
Line 39: Line 37:
 
</pre>
 
</pre>
 
will create:
 
will create:
{{Gen. Woodall prime
+
{{Woodall prime
 
|WoBase=6
 
|WoBase=6
 
|WoMaxn=1000000
 
|WoMaxn=1000000
Line 54: Line 52:
 
}}
 
}}
 
[[Category:Prime collections]]
 
[[Category:Prime collections]]
</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Generalized Woodall primes of the form {{Kbn|n|{{#explode:{{PAGENAME}}||-1}}|n}}}}[[Category:Gen. Woodall prime|#.....{{padleft:{{#explode:{{PAGENAME}}||-1}}|5}}]]{{#if:{{{WoNlist|}}}||[[Category:Gen. Woodall prime without|#.....{{padleft:{{#explode:{{PAGENAME}}||-1}}|5}}]]}}{{#if:{{{WoReserved|}}}|{{Reserved|{{{WoReserved}}}}}}}}}
+
</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{#switch:{{#explode:{{PAGENAME}}||-2}}
 +
|P={{#vardefine:s|&nbsp;P}}{{#vardefine:n|(n+1)}}{{#vardefine:p|Near&nbsp;}}
 +
|M={{#vardefine:s|&nbsp;M}}{{#vardefine:n|(n-1)}}{{#vardefine:p|Near&nbsp;}}
 +
|#default={{#vardefine:s|}}{{#vardefine:n|n}}{{#vardefine:p|}}}}{{DISPLAYTITLE:{{#var:p}}Generalized Woodall primes of the form {{Kbn|{{#var:n}}|{{#var:b}}|n}}}}[[Category:Gen. Woodall prime{{#var:s}}|#.....{{padleft:{{#var:b}}|5}}]]{{#if:{{{WoNlist|}}}||[[Category:Gen. Woodall prime{{#var:s}} without|#.....{{padleft:{{#var:b}}|5}}]]}}{{#if:{{{WoReserved|}}}|{{Reserved|{{{WoReserved}}}}}}}}}
 
==Current data==
 
==Current data==
 
{| class="primedata"
 
{| class="primedata"

Revision as of 11:33, 19 August 2019

Description

Template "Woodall prime"

Display of current data for (Near/Generlized) Woodall primes, comments will be displayed as references at the bottom.

The base and the sign (for near types) are determined from the page title, the same for the categorizations.

Calling

{{Woodall prime
|WoBase=
|WoMaxn=
|WoDate=
|WoReserved=
|WoNlist=
|WoRemarks=
}}

Example

{{Woodall prime
|WoBase=6
|WoMaxn=1000000
|WoDate=2019-04-04
|WoReserved=Karsten Bonath
|WoNlist=
1
2
3
19;C:Test
20
24;123456
|WoRemarks=The {{OEIS|l|A059675}}
}}

will create:

Current data

Base : 6
Count : 6
Max n : 1,000,000
Date : 2019-04-04
Reserved : Karsten Bonath
1, 2, 3, 19[1], 20, 24
Remarks :
The sequence A059675 in OEIS

Notes

  1. Test