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 alternate dpl"

From Prime-Wiki
Jump to: navigation, search
(new)
 
(less data shown)
 
Line 10: Line 10:
 
|- {{#if:{{{CKReserved|}}}|style="background:PaleGreen;"}}{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|style="background:Gainsboro;"}}
 
|- {{#if:{{{CKReserved|}}}|style="background:PaleGreen;"}}{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|style="background:Gainsboro;"}}
 
| align="right" {{!}} '''[[Carol-Kynea prime {{{CKBase}}}|{{{CKBase}}}]]'''
 
| align="right" {{!}} '''[[Carol-Kynea prime {{{CKBase}}}|{{{CKBase}}}]]'''
| align="right" {{!}} {{Num|{{{CKMaxn}}}}}{{#if:{{{CKSieve|}}}|<br>([[:File:%PAGE% sieve.zip|sieve]])|}}
+
| align="right" {{!}} {{Num|{{{CKMaxn}}}}}
| align="center" {{!}} {{{CKDate}}} {{#if:{{{CKReserved|}}}|<br>{{Contribs|{{{CKReserved}}}}}}}
+
| align="center" {{!}} {{{CKDate}}}
| '''C {{padleft:{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CL|{{{CKClist}}}}}{{#arraysize:CL}}|{{NVal list|{{{CKClist}}}|count}}}}|2}}''' : {{NVal list|{{{CKClist}}}|short}}
+
| '''{{padleft:{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CL|{{{CKClist}}}}}{{#arraysize:CL}}|{{NVal list|{{{CKClist}}}|count}}}}|2}}''' : {{NVal list|{{{CKClist}}}|short}}
| '''K {{padleft:{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CK|{{{CKKlist}}}}}{{#arraysize:CK}}|{{NVal list|{{{CKKlist}}}|count}}}}|2}}''' : {{NVal list|{{{CKKlist}}}|short}}</includeonly>
+
| '''{{padleft:{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CK|{{{CKKlist}}}}}{{#arraysize:CK}}|{{NVal list|{{{CKKlist}}}|count}}}}|2}}''' : {{NVal list|{{{CKKlist}}}|short}}</includeonly>

Latest revision as of 13:25, 4 July 2019

Purpose

DPL statement to display one row in the table of Carol/Kynea primes

Explanations

  • if a base is reserved (CKReserved != "") then background is set green
  • if a base is a power of another (CKRemarks contains "Power") then background is set dark grey
  • counts of listed n-values is generated here