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
(using template Num for Maxn)
(using namespace, added notes)
Line 6: Line 6:
  
 
Notes:
 
Notes:
:The automatically generated countings of list members are overwritten, if "CKCcount" and/or "CKKcount" are given.
+
:The page title is displayed with the formula.
:If no Carol primes are given, the page is categorized into the category [[:Category:Carol-Kynea without Carol‎|Carol-Kynea without Carol‎]].
+
:The category [[:Category:Carol-Kynea prime|Carol-Kynea prime]] is set.
:If no Kynea primes are given, the page is categorized into the category [[:Category:Carol-Kynea without Kynea|Carol-Kynea without Kynea]].
+
:If no Carol primes are given, the page is categorized into [[:Category:Carol-Kynea without Carol‎|Carol-Kynea without Carol‎]].
:If no primes are given at all, the page is categorized into the category [[:Category:Carol-Kynea without both|Carol-Kynea without both]].
+
:If no Kynea primes are given, the page is categorized into [[:Category:Carol-Kynea without Kynea|Carol-Kynea without Kynea]].
 +
:If no primes are given at all, the page is categorized into [[:Category:Carol-Kynea without both|Carol-Kynea without both]].
 +
:If <CKRemarks> contains "Power" the page is categorized into [[:Category:Carol-Kynea power-of|Carol-Kynea power-of]].
  
 
==Calling==
 
==Calling==
Line 45: Line 47:
 
</pre>
 
</pre>
 
will create:
 
will create:
 
+
{{Carol-Kynea prime
==Current data==<!--
+
|CKBase=2
-->{{#vardefine:CC|
+
|CKMaxn=1234
 +
|CKDate=2019-01-01
 +
|CKReserved=Karbon
 +
|CKClist=
 
1;234;C:text
 
1;234;C:text
 
2;564
 
2;564
4}}{{#vardefine:CK|
+
4
 +
|CKKlist=
 
5;C:Another text
 
5;C:Another text
 
6;C:see [[Examples]]
 
6;C:see [[Examples]]
7}}
+
7
{| style="border:solid black 1px"
+
|CKRemarks=None
| <div width="15%" style="background-color:#ddd">
+
|CKSieve=y
{|
+
}}
  | <b>Base :</b> || 2 ([[:File:Carol-Kynea base 2 sieve.zip|sieve]])
 
  |-
 
  | <b>Max&nbsp;<i>n</i> :</b> || 1234
 
  |-
 
  | <b>Date :</b> || 2019-01-01
 
  |-
 
  | <b>Reserved :</b> || [[:User:Karbon|Karbon]]
 
|}
 
</div>
 
| <div width="85%">
 
{|
 
| <b>C {{padleft:{{NVal list|{{#var:CC}}|count}}|2}} : </b> {{NVal list|{{#var:CC}}}}
 
|-
 
| <hr>
 
|-
 
| <b>K {{padleft:{{NVal list|{{#var:CK}}|count}}|2}} : </b> {{NVal list|{{#var:CK}}}}
 
|}
 
</div>
 
|}
 
{|
 
| <div height="120%" style="background-color:#ddd;"><b>Remarks : </b></div> || None
 
|}
 
==Notes==
 
<references />
 
 
[[Category:Templates]]
 
[[Category:Templates]]
  
Line 132: Line 114:
 
}
 
}
 
</templatedata>
 
</templatedata>
</noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Carol/Kynea primes of the form: ({{#explode:{{PAGENAME}}||-1}}<sup>n</sup>±1)<sup>2</sup>-2}}}}
+
</noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|<!--
 +
-->{{DISPLAYTITLE:Carol/Kynea primes of the form: ({{#explode:{{PAGENAME}}||-1}}<sup>n</sup>±1)<sup>2</sup>-2}}<!--
 +
-->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol‎|#.....{{padleft:{{{CKBase}}}|5}}]]}}<!--
 +
-->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea|#.....{{padleft:{{{CKBase}}}|5}}]]}}<!--
 +
-->{{#if:{{{CKClist|}}}||{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without both|#.....{{padleft:{{{CKBase}}}|5}}]]}}}}<!--
 +
-->{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|[[Category:Carol-Kynea power-of|#.....{{padleft:{{{CKBase}}}|5}}]]}}<!--
 +
-->[[Category:Carol-Kynea prime|#.....{{padleft:{{{CKBase}}}|5}}]]}}
 
==Current data==
 
==Current data==
 
{| style="border:solid black 1px"
 
{| style="border:solid black 1px"
Line 165: Line 153:
 
{{#ifexpr:{{#if:{{#pos:{{{CKClist}}}|:}}|1|0}} + {{#if:{{#pos:{{{CKKlist}}}|:}}|1|0}} > 0|
 
{{#ifexpr:{{#if:{{#pos:{{{CKClist}}}|:}}|1|0}} + {{#if:{{#pos:{{{CKKlist}}}|:}}|1|0}} > 0|
 
==Notes==
 
==Notes==
<references />}}<!--
+
<references />}}</includeonly>
-->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol‎|#.....{{padleft:{{{CKBase}}}|5}}]]}}<!--
 
-->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea|#.....{{padleft:{{{CKBase}}}|5}}]]}}<!--
 
-->{{#if:{{{CKClist|}}}||{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without both|#.....{{padleft:{{{CKBase}}}|5}}]]}}}}<!--
 
-->{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|[[Category:Carol-Kynea power-of|#.....{{padleft:{{{CKBase}}}|5}}]]}}<!--
 
-->[[Category:Carol-Kynea prime|#.....{{padleft:{{{CKBase}}}|5}}]]</includeonly>
 

Revision as of 08:48, 7 April 2019

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.

Calling

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

Example

{{Carol-Kynea prime
|CKBase=2
|CKMaxn=1234
|CKDate=2019-01-01
|CKReserved=Karbon
|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 : Karbon
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

<templatedata> { "params": { "CKBase": { "type": "string", "required": true, "label": "Base b", "description": "Base for this type" }, "CKMaxn": { "type": "string", "label": "Max n", "description": "Maximal searched n-value" }, "CKDate": { "type": "string", "label": "Date", "description": "Date of last edit" }, "CKReserved": { "type": "string", "label": "Reserved by", "description": "Reserved by contributor, if given" }, "CKClist": { "type": "string", "label": "List C-primes", "description": "List of prime n-values on Carol-side" }, "CKKlist": { "type": "string", "label": "List K-primes", "description": "List of prime n-values on Kynea-side" }, "CKRemarks": { "type": "string", "label": "Remarks", "description": "Remarks for this base" }, "CKSieve": { "type": "string", "label": "Sieve available", "description": "If a sieve file is available, the link is generated" } }, "description": "Current data for Caol/Kynea base " } </templatedata>