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"

From Prime-Wiki
Jump to: navigation, search
m
(output term)
Line 7: Line 7:
 
==Parameter==
 
==Parameter==
 
:1st: Date, year or any text
 
:1st: Date, year or any text
:2nd: n-value or range
+
: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
 
: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|template HistLink]]).
 
:4th: if given, it has to be a thread/post ID combination (for more information see [[:Template:HistLink|template HistLink]]).
Line 13: Line 13:
 
==Examples==
 
==Examples==
 
<pre>
 
<pre>
{{HistF|2019-04-20|1000|Karsten Bonath,No Prime Left Behind|443495}}
+
{{HistF|2019-04-20|1234|Karsten Bonath,No Prime Left Behind|443495}}
{{HistF|2010|50000|Karsten Bonath,Smith}}
+
{{HistF|2010|987|Karsten Bonath,Smith}}
{{HistF|?|50000 - 100000|Karsten Bonath}}
+
{{HistF|2019-07-01|123, 456|Karsten Bonath}}
 +
{{HistF|?|L(44541,746)|Karsten Bonath}}
 
</pre>
 
</pre>
 
gives
 
gives
{{HistF|2019-04-20|1000|Karsten Bonath,No Prime Left Behind|443495}}
+
{{HistF|2019-04-20|1234|Karsten Bonath,No Prime Left Behind|443495}}
{{HistF|2010|50000|Karsten Bonath,Smith}}
+
{{HistF|2010|987|Karsten Bonath,Smith}}
{{HistF|?|50000 - 100000|Karsten Bonath}}
+
{{HistF|2019-07-01|123, 456|Karsten Bonath}}
[[Category:Templates]]</noinclude><includeonly>*<b>{{#if:{{{4|}}}|{{HistLink|{{{1}}}|{{{4}}}}}|{{{1}}}}}</b>: Found <b><i>n</i> = {{{2}}}</b>, {{Contribs|{{{3}}}}}</includeonly>
+
{{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> =&nbsp;}}{{{2}}}</b>, {{Contribs|{{{3}}}}}</includeonly>

Revision as of 11:03, 28 July 2019

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