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:Carol-Kynea prime"

From Prime-Wiki
Jump to: navigation, search
(classes)
(class)
 
(8 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
:If <CKRemarks> contains "Power" the page is categorized into [[:Category:Carol-Kynea power-of|Carol-Kynea power-of]].
 
:If <CKRemarks> contains "Power" the page is categorized into [[:Category:Carol-Kynea power-of|Carol-Kynea power-of]].
  
==Calling==
+
==Prototype==
 
<pre>
 
<pre>
 
{{Carol-Kynea prime
 
{{Carol-Kynea prime
Line 53: Line 53:
 
|CKReserved=Karsten Bonath
 
|CKReserved=Karsten Bonath
 
|CKClist=
 
|CKClist=
2
+
1;234;C:text
3
+
2;564
 
4
 
4
6
+
|CKKlist=
 +
5;C:Another text
 +
6;C:see [[Examples]]
 
7
 
7
10
+
|CKRemarks=None
12
 
15
 
18
 
19
 
21
 
25
 
27
 
55
 
129
 
132
 
159
 
171
 
175
 
315
 
324
 
358
 
393
 
435
 
786
 
1459
 
1707
 
2923
 
6462
 
14289
 
39012
 
51637
 
100224;68426
 
108127;70044
 
110953;68504
 
175749;71961
 
185580;72288
 
226749;73109
 
248949;77385
 
253987;80384
 
520363
 
653490;121779
 
688042;121867
 
695631;121905
 
|CKKlist=
 
1
 
2
 
3
 
5
 
8
 
9
 
12
 
15
 
17
 
18
 
21
 
23
 
27
 
32
 
51
 
65
 
87
 
180
 
242
 
467
 
491
 
501
 
507
 
555
 
591
 
680
 
800
 
1070
 
1650
 
2813
 
3281
 
4217
 
5153
 
6287
 
6365
 
10088
 
10367
 
37035
 
45873
 
69312
 
102435;68943
 
106380;69438
 
108888;68958
 
110615;68900
 
281621;75878
 
369581
 
376050
 
442052
 
621443
 
661478;121801
 
|CKRemarks=
 
 
|CKSieve=y
 
|CKSieve=y
 
}}
 
}}
 
 
==Template-data==
 
==Template-data==
 
<templatedata>
 
<templatedata>
Line 202: Line 113:
 
}
 
}
 
</templatedata>
 
</templatedata>
[[Category:Prime collections]]</noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|<!--
+
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|<!--
-->{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Carol/Kynea primes of the form: ({{#var:b}}<sup>n</sup>±1)<sup>2</sup>-2}}<!--
+
-->{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Carol primes ({{#var:b}}<sup>n</sup>-1)<sup>2</sup>-2 and Kynea primes ({{#var:b}}<sup>n</sup>+1)<sup>2</sup>-2}}<!--
 
-->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol‎|#.....{{padleft:{{#var:b}}|5}}]]}}<!--
 
-->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol‎|#.....{{padleft:{{#var:b}}|5}}]]}}<!--
 
-->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea|#.....{{padleft:{{#var:b}}|5}}]]}}<!--
 
-->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea|#.....{{padleft:{{#var:b}}|5}}]]}}<!--
Line 210: Line 121:
 
-->[[Category:Carol-Kynea prime|#.....{{padleft:{{#var:b}}|5}}]]{{#if:{{{CKReserved|}}}|{{Reserved|{{{CKReserved}}}}}}}}}
 
-->[[Category:Carol-Kynea prime|#.....{{padleft:{{#var:b}}|5}}]]{{#if:{{{CKReserved|}}}|{{Reserved|{{{CKReserved}}}}}}}}}
 
==Current data==
 
==Current data==
{| class="roundborder"
+
{| class="primedata"
| class="primetemplate" |
+
| class="primetemplate color-PrimeTemplate" |
 
  {|  
 
  {|  
 
   | align="right" | <b>Base :</b> || {{{CKBase}}} {{#if:{{{CKSieve|}}}|&nbsp;([[:File:{{PAGENAME}} sieve.zip|sieve]])|}}
 
   | align="right" | <b>Base :</b> || {{{CKBase}}} {{#if:{{{CKSieve|}}}|&nbsp;([[:File:{{PAGENAME}} sieve.zip|sieve]])|}}
Line 220: Line 131:
 
   |-
 
   |-
 
   {{#if:{{{CKReserved|}}}|
 
   {{#if:{{{CKReserved|}}}|
     {{!}} align="right" {{!}} <b>Reserved :</b> {{!}}{{!}} {{Contribs|{{{CKReserved}}}}}
+
     {{!}} align="right" {{!}} <b>Reserved :</b> {{!}}{{!}} [[{{{CKReserved}}}]]{{#ifeq:{{NAMESPACENUMBER}}|0|<span style="display:none">[[{{{CKReserved}}}/Reserved]]</span>}}
 
   }}
 
   }}
 
  |}
 
  |}
 
|
 
|
 
  {|  
 
  {|  
  | <b>C {{padleft:{{#if:{{{CKClist|}}}|{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CL|{{{CKClist}}}}}{{#arraysize:CL}}|{{NVal list|{{{CKClist}}}|count}}|0}}}}|2}} : </b> {{NVal list|{{{CKClist}}}}}
+
  | <b>Carol: ({{padleft:{{#if:{{{CKClist|}}}|{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CL|{{{CKClist}}}}}{{#arraysize:CL}}|{{NVal list|{{{CKClist}}}|count}}|0}}}}|2}})</b> {{NVal list|{{{CKClist}}}}}
 
  |-
 
  |-
 
  | <hr>
 
  | <hr>
 
  |-
 
  |-
  | <b>K {{padleft:{{#if:{{{CKKlist|}}}|{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CK|{{{CKKlist}}}}}{{#arraysize:CK}}|{{NVal list|{{{CKKlist}}}|count}}|0}}}}|2}} : </b> {{NVal list|{{{CKKlist}}}}}
+
  | <b>Kynea: ({{padleft:{{#if:{{{CKKlist|}}}|{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CK|{{{CKKlist}}}}}{{#arraysize:CK}}|{{NVal list|{{{CKKlist}}}|count}}|0}}}}|2}})</b> {{NVal list|{{{CKKlist}}}}}
 
  |}
 
  |}
 
|}{{#if:{{{CKRemarks|}}}|
 
|}{{#if:{{{CKRemarks|}}}|
 
{{{!}}  
 
{{{!}}  
{{!}} <div height="120%" style="background-color:SkyBlue;"><b>Remarks : </b></div> {{!}}{{!}} {{{CKRemarks}}}
+
{{!}} <div height="120%" class="color-PrimeTemplate"><b>Remarks : </b></div> {{!}}{{!}} {{{CKRemarks}}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}

Latest revision as of 01:58, 17 May 2021

Description

Template Carol-Kynea prime

Display of current data for Carol/Kynea-type base.

Notes:

The page title is displayed with the formula.
The category Carol-Kynea prime is set.
If no Carol primes are given, the page is categorized into Carol-Kynea without Carol‎.
If no Kynea primes are given, the page is categorized into Carol-Kynea without Kynea.
If no primes are given at all, the page is categorized into Carol-Kynea without both.
If <CKRemarks> contains "Power" the page is categorized into Carol-Kynea power-of.

Prototype

{{Carol-Kynea prime
|CKBase=
|CKMaxn=
|CKDate=
|CKReserved=
|CKClist=
|CKKlist=
|CKRemarks=
|CKSieve=
}}

Example

{{Carol-Kynea prime
|CKBase=2
|CKMaxn=1234
|CKDate=2019-01-01
|CKReserved=Karsten Bonath
|CKClist=
1;234;C:text
2;564
4
|CKKlist=
5;C:Another text
6;C:see [[Examples]]
7
|CKRemarks=None
|CKSieve=y
}}

will create:

Current data

Base : 2  (sieve)
Max n : 1,234
Date : 2019-01-01
Reserved : Karsten Bonath
Carol: (03) 1[1], 2, 4

Kynea: (03) 5[2], 6[3], 7
Remarks :
None

Notes

  1. text
  2. Another text
  3. see Examples

Template-data

Current data for Carol/Kynea base <b>

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Base bCKBase

Base for this type

Default
empty
Example
empty
Auto value
empty
Stringrequired
Max ''n''CKMaxn

Maximal searched ''n''-value

Default
empty
Example
empty
Auto value
empty
Stringoptional
DateCKDate

Date of last edit

Default
empty
Example
empty
Auto value
empty
Stringoptional
Reserved byCKReserved

Reserved by contributor, if given

Default
empty
Example
empty
Auto value
empty
Stringoptional
List C-primesCKClist

List of prime ''n''-values on Carol-side

Default
empty
Example
empty
Auto value
empty
Contentoptional
List K-primesCKKlist

List of prime ''n''-values on Kynea-side

Default
empty
Example
empty
Auto value
empty
Stringoptional
RemarksCKRemarks

Remarks for this base

Default
empty
Example
empty
Auto value
empty
Stringoptional
Sieve availableCKSieve

If a sieve file is available, the link is generated

Default
empty
Example
empty
Auto value
empty
Stringoptional