Linking to DPC content housed outside DPC Wiki
From DPCanadaWiki
There are several shortcuts that you can use to link to DPC 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.
Contents |
Linking to Forum-related content
Topics and individual Posts
To link to a specific place in the forums, 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:
- [[forumpost:169435]] for forumpost:169435, or
- [[forumtopic:16405]] for forumtopic:16405.
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 DPC software and the forum software (phpBB) assign different User IDs to any given user. When you go to a user's "Member Details" page, their DPC 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=').
Linking to other Web content
Rounds and Pools Pages
- [[round:P2]] produces round:P2, a link to the P2 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 [Error: showProjectInfo: Invalid projectID: projectID40a3ec003c577].
See also DPCWiki:Magic tags for more on displaying project information.
User Details Pages
[[dpuser:Dr Gutenstein]] produces dpuser:Dr Gutenstein, a link to Dr. Gutenstein's user details, or Member Details, page.
Team Pages
[[team:Team Colorado]] produces team:Team Colorado, a link to the Team Colorado 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 Web pages
You can also use internal-style shortcut links to link to other DPC Web pages, such as the Activity Hub, or specific FAQs on the FAQ Central page using the following format:
- [[dp:activity_hub.php|Activity Hub]] would create a link to the Activity Hub, and
- [[dp:faq/proofreading_guidelines.php|Proofreading Guidelines]] would create a link to the Proofreading Guidelines.
