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:HistF"
(test) |
|||
Line 24: | Line 24: | ||
{{HistF|?|L(44541,746)|Karsten Bonath}} | {{HistF|?|L(44541,746)|Karsten Bonath}} | ||
[[Category:Templates]]</noinclude><includeonly>*<b>{{#if:{{{4|}}}|{{HistLink|{{{1}}}|{{{4}}}}}|{{{1}}}}}</b>: Found <b>{{#switch:{{#sub:{{{2}}}|0|1}}|0|1|2|3|4|5|6|7|8|9=<i>n</i> = }}{{{2}}}</b>, {{Contribs|{{{3}}}}}<!-- | [[Category:Templates]]</noinclude><includeonly>*<b>{{#if:{{{4|}}}|{{HistLink|{{{1}}}|{{{4}}}}}|{{{1}}}}}</b>: Found <b>{{#switch:{{#sub:{{{2}}}|0|1}}|0|1|2|3|4|5|6|7|8|9=<i>n</i> = }}{{{2}}}</b>, {{Contribs|{{{3}}}}}<!-- | ||
− | -->{{#ifeq:{{NAMESPACENUMBER}}| | + | -->{{#ifeq:{{NAMESPACENUMBER}}|10|<!-- |
− | -->{{#if:{{#pos:{{PAGENAME}}|Riesel prime}}| | + | -->{{#if:{{#pos:{{PAGENAME}}|Riesel prime}}|<!-- |
-->{{#arraydefine:_cont|{{{3}}}}}{{#loop:i | -->{{#arraydefine:_cont|{{{3}}}}}{{#loop:i | ||
| 0 | | 0 | ||
| {{#arraysize:_cont}} | | {{#arraysize:_cont}} | ||
| {{#ifeq:{{#arrayindex:_cont|{{#var:i}}}}|Karsten Bonath|{{UserPrime|date={{{1}}}|contr={{#arrayindex:_cont|{{#var:i}}}}|prim={{{2}}}}}}}}}}}}}</includeonly> | | {{#ifeq:{{#arrayindex:_cont|{{#var:i}}}}|Karsten Bonath|{{UserPrime|date={{{1}}}|contr={{#arrayindex:_cont|{{#var:i}}}}|prim={{{2}}}}}}}}}}}}}</includeonly> |
Revision as of 10:55, 17 March 2020
Template HistF
Purpose
Prints a line in the history of the primes with status "Found n =...".
Parameter
- 1st: Date, year or any text
- 2nd: n-value or range or term (beginning with a digit the term "n = " will be output in front)
- 3rd: contributor(s): any person or project as comma separated list printed as links
- 4th: if given, it has to be a thread/post ID combination (for more information see template HistLink).
Examples
{{HistF|2019-04-20|1234|Karsten Bonath,No Prime Left Behind|443495}} {{HistF|2010|987|Karsten Bonath,Smith}} {{HistF|2019-07-01|123, 456|Karsten Bonath}} {{HistF|?|L(44541,746)|Karsten Bonath}}
gives
- 2019-04-20: Found n = 1234, Karsten Bonath, No Prime Left Behind
- 2010: Found n = 987, Karsten Bonath, Smith
- 2019-07-01: Found n = 123, Karsten Bonath
- ?: Found L(44541,746), Karsten Bonath