Interwiki Tags
Since the GPF Wiki is a subsection of the full GPF site, I (Jeff) didn't want links external to the wiki but internal to GPF to appear as external links. For example, to link to the forum originally required an ordinary external link tag such as [https://www.gpf-comics.com/forum/ GPF Forum], which produced GPF Forum. This made the forum link look like it was going off to another site. From the wiki's point of view, this might make sense; the link indeed leads the reader away from the wiki and to another part of the site. Still, the forum is just as much a part of GPF as the wiki is, so I didn't want these links to look like they were all going out into the void, giving Faulties the wrong impression of where these links led.
I decided to use MediaWiki's Interwiki mechanism to make non-wiki GPF links still appear to be internal. To use these interwiki tags, use the prefix to specify the link, providing the appropriate parameter to complete it. For example, to link to the first comic in the archive, you would use [[gpfarchive:19981102|First Strip]], which produces: First Strip. The table below introduces the prefix, the URL expansion, the expected parameter, and additional notes on its use. In all expansions, "$1" indicates where the parameter is appended.
Prefix | Expected Parameter | Expands To | Notes |
---|---|---|---|
gpfarchive | An eight-digit date in YYYYMMDD format | https://www.gpf-comics.com/archive.php?d=$1 | Always links to daily archive, not weekly. Invalid dates will result in an error. Note that while this doesn't use the canonical https://www.gpf-comics.com/archive/YYYY/MM/DD format, this older format still works. (The canonical URL translates to this format behind the scenes.) |
gpfsite | A relative path somewhere within the GPF site | https://www.gpf-comics.com/$1 | Omit any beginning slashes (not /forum/ but forum/); cannot accept query string parameters (MediaWiki URL encodes question marks, equal signs, and ampersands, making query strings result in 404s). Note that now that the entire site has moved to HTTPS, gpfsite and gpfsitesec are now synonymous, but both are retained for backward compatibility. |
gpfsitesec | A relative path somewhere within the GPF site | https://www.gpf-comics.com/$1 | Omit any beginning slashes (not /forum/ but forum/); cannot accept query string parameters (MediaWiki URL encodes question marks, equal signs, and ampersands, making query strings result in 404s). Note that now that the entire site has moved to HTTPS, gpfsite and gpfsitesec are now synonymous, but both are retained for backward compatibility. |
gpfmischief | An integer page number within Mischief's Night Out | https://www.gpf-comics.com/mischief/index.php?page=$1 | Page number must be 1 ≤ x ≤ 16; values outside this range will default to the first page |
gpfsketch | An eight-digit date in YYYYMMDD format | https://www.gpf-comics.com/premium/sketches/archive.php?d=$1 | Links to a specific entry in Jeff's Sketchbook. Requires an active GPF Premium subscription to fully access. To link to the Sketchbook index, use [[gpfsite:premium/sketches/|Jeff's Sketchbook]] |
gpfnews | An eight-digit date in YYYYMMDD format | https://www.gpf-comics.com/news/archive.php?d=$1 | Links to a specific GPF News article. To link to the GPF News index (i.e., latest entry), use [[gpfsite:news/|GPF News]] |
These are just the interwiki tags create especially for the GPF Wiki. Many of the official MediaWiki tags also work ("wikipedia", etc.), although a lot of the "garbage" tags that have no relevance here have been removed.