Linking to DP content housed outside DP Wiki

From DPWiki
(Redirected from Shortcuts for linking to DP)
Jump to navigation Jump to search

There are several shortcuts that you can use to link to DP content that is located outside the Wiki. Where possible, try to use these shortcuts, since, for example, if the Forums move to a new website (unlikely), or a Forum is deleted or renamed (more likely), the links can be made to work again with a single database update.

Linking to Forum-related content

Topics and individual Posts

To link to a specific place in the DP forum, work out whether you are linking to a post or a topic. If the URL ends in ?p=XXXXX, that's a post. If it ends with ?t=XXXX, that's a topic. Take the number from the ?t= or ?p=, and use the appropriate link shortcut:

Adding a pipe (or stile) character and some text afterwards makes it reader-friendly, for example: [[forumtopic:15050| The Brown Stuff Poll]] for The Brown Stuff Poll.

Private Messages

To create a PM link, use the form [[pm:ForumUserID|UserName]], where ForumUserID is the number following &u= in a private message URL, and UserName is, er, their username.

Note that the DP software and the forum software (phpBB) assign different User IDs to any given user. When you go to a user's "Member Details" page (via Stats Central), their DP UserID appears in your browser's location box (after 'id='), but if you click on (or hover over) their "Private Message" button, their Forum UserID appears (after 'u='). You can also find out a forum ID number by finding a forum post they wrote and clicking on (or hovering over) the "Private Message" or "Profile" button at the bottom of the post.

Linking to other Web content

Round and Pool Pages

  • [[round:P1]] produces round:P1, a link to the P1 page
  • [[round:P2]] produces round:P2, a link to the P2 page
  • [[round:P3]] produces round:P3, a link to the P3 page
  • [[round:F1]] produces round:F1, a link to the F1 page
  • [[round:F2]] produces round:F2, a link to the F2 page
  • [[pool:PP]] produces pool:PP, a link to the PP pool

Project Pages

[[projectpage:projectID40a3ec003c577|Travels in China]] produces Travels in China, a link to the Project Page for that project. You can also use [[dpproject:projectID#]] and [[dp_project:projectID#]].

To display the project's info, without a link, you can use markup like this: <projectinfo id="projectID40a3ec003c577">%title% is now in %state%</projectinfo>, which produces Travels in China is now in proj_submit_pgposted.

See also DPWiki:Magic tags for more on displaying project information.

User Details Pages

[[dpuser:DPWiki]] produces dpuser:DPwiki; [[dpuser:DPWiki|DPWiki]] produces DPWiki.

However, if the username has a space in it, you cannot use this shortcut. [[dpuser:Dr Gutenstein]] produces an empty search results page. To have a link to Dr Gutenstein's Member Details page (a.k.a. user details or stats page), you will need to use [https://www.pgdp.net/c/stats/members/mdetail.php?id=16594 Dr Gutenstein] to get Dr Gutenstein.

Team Pages

[[team:Team Colorado]] produces team:Team Colorado, a link to the Team Colorado statistics page.

Tasks

[[task:500]] produces task:500, a link to task 500. Use the shortcut form shown in the next section for linking to the Task Center page itself, instead of just to an individual task.

Other DP Pages

You can also use internal-style shortcut links to link to other DP Web pages.

Use this format: [[dp:any_foldername_within_c_root/filename|desired link label]]. When using this style of link, copy everything after /c/ in the page's url.

For example,

Linking to PG etexts

[[etext:53619]] produces etext:53619, a link to PG's etext number 53619. If you wish to use different wording, use the pipe symbol: [[etext:53619|PG etext no. 53619]] will display PG etext no. 53619.