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"
(important note clarification & correct date of 1st post reference) |
((see talk for details of changes)) |
||
Line 7: | Line 7: | ||
==Parameter== | ==Parameter== | ||
*1st: the date to show | *1st: the date to show | ||
− | *2nd: a post ID or combination of thread/post ID | + | *2nd: possible coding character prefix plus a post ID or a combination of thread/post ID |
− | + | Coding character for 2nd parameter: | |
− | :if only | + | :if only a post ID is given a link to [[MersenneForum]] is generated (default): |
− | ::new | + | ::new post ID > [https://www.mersenneforum.org/node/1052867 670000] since forum update on 2024-08-23 |
− | :if first character is <b>M</b> the thread and post ID separated by '#' generates a link to [[MersenneForum]] | + | ::old post ID ≤ [https://www.mersenneforum.org/showpost.php?p=512625 670000] prior to forum update |
+ | :if first character is <b>M</b> the thread and post ID separated by '#' generates a link to [[MersenneForum]] using the new post ID format above regardless of post number. | ||
:if first character is <b>F</b> the thread and post ID separated by '#' generates a link to [https://www.free-dc.org/ Free-DC] | :if first character is <b>F</b> the thread and post ID separated by '#' generates a link to [https://www.free-dc.org/ Free-DC] | ||
:if first character is <b>P</b> the thread and post ID separated by '#' generates a link to [https://www.primegrid.com/forum_index.php PrimeGrid] | :if first character is <b>P</b> the thread and post ID separated by '#' generates a link to [https://www.primegrid.com/forum_index.php PrimeGrid] | ||
:if first character is <b>N</b> the thread and post ID separated by '#' generates a link to [https://escatter11.fullerton.edu/nfs/forum_index.php NFS@Home] | :if first character is <b>N</b> the thread and post ID separated by '#' generates a link to [https://escatter11.fullerton.edu/nfs/forum_index.php NFS@Home] | ||
− | + | :if a wrong or no 2nd parameter is given, an error is shown | |
− | |||
==Important note== | ==Important note== | ||
− | If | + | It is preferred that we now always use the new Node post links for reference to [[MersenneForum]] posts. If the new post number (Node) is > 670000, the M# leading character is not needed. Despite the 2024-08-23 update, posts going back to 2021 can have a new Node > 670000 and would not need the leading M# character if the new post ID is used. This can happen even though the old post number is ≤ 670000. |
==Examples== | ==Examples== | ||
<pre> | <pre> | ||
+ | *MersenneForum: new {{HistLink|2024-08-29|1052550}} | ||
*MersenneForum: old {{HistLink|2019-04-04|512625}} | *MersenneForum: old {{HistLink|2019-04-04|512625}} | ||
− | *MersenneForum: new | + | *MersenneForum: always new link {{HistLink|2003-05-29|M#634}} |
− | |||
*Free-DC forum: {{HistLink|2009-08-08|F#19810#138596}} | *Free-DC forum: {{HistLink|2009-08-08|F#19810#138596}} | ||
*PrimeGrid forum: {{HistLink|2018-09-28|P#8220#120807}} | *PrimeGrid forum: {{HistLink|2018-09-28|P#8220#120807}} | ||
*NFS@Home forum: {{HistLink|2018-10-10|N#459#1944}} | *NFS@Home forum: {{HistLink|2018-10-10|N#459#1944}} | ||
− | |||
*Error: {{HistLink|2019-02-02|D#343#343}} | *Error: {{HistLink|2019-02-02|D#343#343}} | ||
*Error: {{HistLink|2019-02-02}} | *Error: {{HistLink|2019-02-02}} | ||
</pre> | </pre> | ||
gives | gives | ||
+ | *MersenneForum: new {{HistLink|2024-08-29|1052550}} | ||
*MersenneForum: old {{HistLink|2019-04-04|512625}} | *MersenneForum: old {{HistLink|2019-04-04|512625}} | ||
− | *MersenneForum: new | + | *MersenneForum: always new link {{HistLink|2003-05-29|M#634}} |
− | |||
*Free-DC forum: {{HistLink|2009-08-08|F#19810#138596}} | *Free-DC forum: {{HistLink|2009-08-08|F#19810#138596}} | ||
*PrimeGrid forum: {{HistLink|2018-09-28|P#8220#120807}} | *PrimeGrid forum: {{HistLink|2018-09-28|P#8220#120807}} | ||
*NFS@Home forum: {{HistLink|2018-10-10|N#459#1944}} | *NFS@Home forum: {{HistLink|2018-10-10|N#459#1944}} | ||
− | |||
*Error: {{HistLink|2019-02-02|D#343#343}} | *Error: {{HistLink|2019-02-02|D#343#343}} | ||
*Error: {{HistLink|2019-02-02}} | *Error: {{HistLink|2019-02-02}} |
Revision as of 08:39, 13 April 2025
Template HistLink
Contents
[hide]Purpose
Creates a link to a forum post for the templates HistC, HistF, HistR and HistS.
Parameter
- 1st: the date to show
- 2nd: possible coding character prefix plus a post ID or a combination of thread/post ID
Coding character for 2nd parameter:
- if only a post ID is given a link to MersenneForum is generated (default):
- if first character is M the thread and post ID separated by '#' generates a link to MersenneForum using the new post ID format above regardless of post number.
- if first character is F the thread and post ID separated by '#' generates a link to Free-DC
- if first character is P the thread and post ID separated by '#' generates a link to PrimeGrid
- if first character is N the thread and post ID separated by '#' generates a link to NFS@Home
- if a wrong or no 2nd parameter is given, an error is shown
Important note
It is preferred that we now always use the new Node post links for reference to MersenneForum posts. If the new post number (Node) is > 670000, the M# leading character is not needed. Despite the 2024-08-23 update, posts going back to 2021 can have a new Node > 670000 and would not need the leading M# character if the new post ID is used. This can happen even though the old post number is ≤ 670000.
Examples
*MersenneForum: new {{HistLink|2024-08-29|1052550}} *MersenneForum: old {{HistLink|2019-04-04|512625}} *MersenneForum: always new link {{HistLink|2003-05-29|M#634}} *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}} *Error: {{HistLink|2019-02-02|D#343#343}} *Error: {{HistLink|2019-02-02}}
gives
- MersenneForum: new 2024-08-29
- MersenneForum: old 2019-04-04
- MersenneForum: always new link 2003-05-29
- Free-DC forum: 2009-08-08
- PrimeGrid forum: 2018-09-28
- NFS@Home forum: 2018-10-10
- Error: [ERROR 2019-02-02]
- Error: [ERROR 2019-02-02]