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:HistLink"
(note) |
(Test MersLink only with 'node') |
||
Line 20: | Line 20: | ||
==Examples== | ==Examples== | ||
<pre> | <pre> | ||
− | *MersenneForum: old {{HistLink| | + | *MersenneForum: very old {{HistLink|2003-12-22|39585}} |
+ | *MersenneForum: old {{HistLink|2014-08-11|512625}} | ||
*MersenneForum: new {{HistLink|2024-08-29|1052550}} | *MersenneForum: new {{HistLink|2024-08-29|1052550}} | ||
*Free-DC forum: {{HistLink|2009-08-08|F#19810#138596}} | *Free-DC forum: {{HistLink|2009-08-08|F#19810#138596}} | ||
Line 30: | Line 31: | ||
</pre> | </pre> | ||
gives | gives | ||
− | *MersenneForum: old {{HistLink| | + | *MersenneForum: very old {{HistLink|2003-12-22|39585}} |
+ | *MersenneForum: old {{HistLink|2014-08-11|512625}} | ||
*MersenneForum: new {{HistLink|2024-08-29|1052550}} | *MersenneForum: new {{HistLink|2024-08-29|1052550}} | ||
*Free-DC forum: {{HistLink|2009-08-08|F#19810#138596}} | *Free-DC forum: {{HistLink|2009-08-08|F#19810#138596}} | ||
Line 43: | Line 45: | ||
|N=https://escatter11.fullerton.edu/nfs/forum_thread.php?id={{#sub:{{{2}}}|2}} | |N=https://escatter11.fullerton.edu/nfs/forum_thread.php?id={{#sub:{{{2}}}|2}} | ||
|Y=https://groups.yahoo.com/neo/groups/primenumbers/conversations/messages/{{#sub:{{{2}}}|2}} | |Y=https://groups.yahoo.com/neo/groups/primenumbers/conversations/messages/{{#sub:{{{2}}}|2}} | ||
− | |0|1|2|3|4|5|6|7|8|9={{#ifexpr:{{{2}}}>670000|https://www.mersenneforum.org/node/{{{2}}}|https://www.mersenneforum.org/showpost.php?p={{{2}}}}} | + | |0|1|2|3|4|5|6|7|8|9=https://www.mersenneforum.org/node/{{{2}}} |
+ | <!--{{#ifexpr:{{{2}}}>670000|https://www.mersenneforum.org/node/{{{2}}}|https://www.mersenneforum.org/showpost.php?p={{{2}}}}}--> | ||
|#default={{C|red|ERROR}} | |#default={{C|red|ERROR}} | ||
}} {{{1}}}]</span></includeonly> | }} {{{1}}}]</span></includeonly> |
Revision as of 15:08, 17 March 2025
Template HistLink
Purpose
Creates a link to a forum post for the templates HistC, HistF, HistR and HistS.
Parameter
- 1st: the date to show
- 2nd: a post ID or combination of thread/post ID with trailing coding character
Codings for 2nd parameter:
- if only an ID is given a link to MersenneForum is generated (default)
- new linkformat: post-id > 670000 according to forum update in Aug. 2024
- if first character is F the thread and post ID seperated by '#' generates a link to Free-DC
- if first character is P the thread and post ID seperated by '#' generates a link to PrimeGrid
- if first character is N the thread and post ID seperated by '#' generates a link to NFS@Home
- if first character is Y the thread and post ID seperated by '#' generates a link to Yahoo Group primenumbers
- if a wrong or no 2nd parameter is given, an error is shown
Examples
*MersenneForum: very old {{HistLink|2003-12-22|39585}} *MersenneForum: old {{HistLink|2014-08-11|512625}} *MersenneForum: new {{HistLink|2024-08-29|1052550}} *Free-DC forum: {{HistLink|2009-08-08|F#19810#138596}} *PrimeGrid forum: {{HistLink|2018-09-28|P#8220#120807}} *NFS@Home forum: {{HistLink|2018-10-10|N#459#1944}} *Yahoo Group: {{HistLink|2004-11-03|Y#15519}} *Error: {{HistLink|2019-02-02|D#343#343}} *Error: {{HistLink|2019-02-02}}
gives
- MersenneForum: very old 2003-12-22
- MersenneForum: old 2014-08-11
- MersenneForum: new 2024-08-29
- Free-DC forum: 2009-08-08
- PrimeGrid forum: 2018-09-28
- NFS@Home forum: 2018-10-10
- Yahoo Group: 2004-11-03
- Error: [ERROR 2019-02-02]
- Error: [ERROR 2019-02-02]