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"

From Prime-Wiki
Jump to: navigation, search
(Creating tracking categories to monitor progress of post ID migration)
(important note clarification & correct date of 1st post reference)
 
Line 12: Line 12:
 
:if only an ID is given a link to [[MersenneForum]] is generated (default)
 
:if only an ID is given a link to [[MersenneForum]] is generated (default)
 
::new linkformat: post-id > [https://www.mersenneforum.org/node/18350?p=1052867#post1052867 670000] according to forum update in Aug. 2024
 
::new linkformat: post-id > [https://www.mersenneforum.org/node/18350?p=1052867#post1052867 670000] according to forum update in Aug. 2024
 +
:if first character is <b>M</b> the thread and post ID separated by '#' generates a link to [[MersenneForum]] for a first post of a thread prior to 2005 if the above type does not work correctly
 
: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 first character is <b>Y</b> the thread and post ID separated by '#' generates a link to [https://groups.yahoo.com/neo/groups/primenumbers/info Yahoo Group primenumbers]
 
:if first character is <b>Y</b> the thread and post ID separated by '#' generates a link to [https://groups.yahoo.com/neo/groups/primenumbers/info Yahoo Group primenumbers]
:if first character is <b>M</b> the thread and post ID separated by '#' generates a link to [[MersenneForum]] for a first post of a thread if the above type do not work correctly
 
 
:if first character is <b></b> the thread and post ID separated by '#' generates a link to [https://escatter11.fullerton.edu/nfs/:if a wrong or no 2nd parameter is given, an error is shown
 
:if first character is <b></b> the thread and post ID separated by '#' generates a link to [https://escatter11.fullerton.edu/nfs/:if a wrong or no 2nd parameter is given, an error is shown
  
 
==Important note==
 
==Important note==
If an old (before 2005) MersenneForum post is referenced -and- is the first post in a thread -and- the thread is more than one page long, the first post on the ''final'' page is incorrectly shown. The user must manually change the page number to 1 to see the correct post.
+
If an old (before 2005) MersenneForum post is referenced with no letter prefix -and- it is the first post in a thread -and- the thread is more than one page long, the first post on the ''final'' page is incorrectly shown. The M# prefix should be used to prevent the problem. It is only needed for such posts prior to 2005. See example below.
  
 
==Examples==
 
==Examples==
Line 26: Line 26:
 
*MersenneForum: old {{HistLink|2019-04-04|512625}}
 
*MersenneForum: old {{HistLink|2019-04-04|512625}}
 
*MersenneForum: new {{HistLink|2024-08-29|1052550}}
 
*MersenneForum: new {{HistLink|2024-08-29|1052550}}
*MersenneForum: 1st post of thread {{HistLink|2024-08-29|M#634}}
+
*MersenneForum: 1st post of thread {{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}}
Line 37: Line 37:
 
*MersenneForum: old {{HistLink|2019-04-04|512625}}
 
*MersenneForum: old {{HistLink|2019-04-04|512625}}
 
*MersenneForum: new {{HistLink|2024-08-29|1052550}}
 
*MersenneForum: new {{HistLink|2024-08-29|1052550}}
*MersenneForum: 1st post of thread {{HistLink|2024-08-29|M#634}}
+
*MersenneForum: 1st post of thread {{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}}

Latest revision as of 21:17, 19 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 M the thread and post ID separated by '#' generates a link to MersenneForum for a first post of a thread prior to 2005 if the above type does not work correctly
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 first character is Y the thread and post ID separated by '#' generates a link to Yahoo Group primenumbers
if first character is the thread and post ID separated by '#' generates a link to [https://escatter11.fullerton.edu/nfs/:if a wrong or no 2nd parameter is given, an error is shown

Important note

If an old (before 2005) MersenneForum post is referenced with no letter prefix -and- it is the first post in a thread -and- the thread is more than one page long, the first post on the final page is incorrectly shown. The M# prefix should be used to prevent the problem. It is only needed for such posts prior to 2005. See example below.

Examples

*MersenneForum: old {{HistLink|2019-04-04|512625}}
*MersenneForum: new {{HistLink|2024-08-29|1052550}}
*MersenneForum: 1st post of thread {{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}}
*Yahoo Group: {{HistLink|2004-11-03|Y#15519}}
*Error: {{HistLink|2019-02-02|D#343#343}}
*Error: {{HistLink|2019-02-02}}

gives

  • Error: [ERROR 2019-02-02]
  • Error: [ERROR 2019-02-02]