Difference between revisions of "Template:Mpforum"
Jump to navigation
Jump to search
m (simplify params) |
(allow link to index w/o topic, make link visible) |
||
Line 1: | Line 1: | ||
− | + | [https://forum.maniaplanet.com{{#if: {{{1|}}} |/viewtopic.php?t={{{1}}} {{{2|MP forum topic}}}|/ MP forum}}]<noinclude> | |
== Purpose == | == Purpose == | ||
Create a link to a topic at the [https://forum.maniaplanet.com/ ManiaPlanet forum]. | Create a link to a topic at the [https://forum.maniaplanet.com/ ManiaPlanet forum]. | ||
Line 6: | Line 6: | ||
: '''{{c|<nowiki>{{mpforum|somenumber|somename}}</nowiki>}}''' | : '''{{c|<nowiki>{{mpforum|somenumber|somename}}</nowiki>}}''' | ||
: '''{{c|<nowiki>{{mpforum|somenumber}}</nowiki>}}''' | : '''{{c|<nowiki>{{mpforum|somenumber}}</nowiki>}}''' | ||
+ | : '''{{c|<nowiki>{{mpforum}}</nowiki>}}''' | ||
where ''somenumber'' is the topic ID and ''somename'' the topic title or the name you want to give to the link. The topic ID is a number unique to each topic. For example, in this URL: | where ''somenumber'' is the topic ID and ''somename'' the topic title or the name you want to give to the link. The topic ID is a number unique to each topic. For example, in this URL: | ||
Line 11: | Line 12: | ||
the topic ID is 15761. | the topic ID is 15761. | ||
− | * If no title is given, the template uses a generic "MP forum topic" title. | + | * If no title is given, the template uses a generic "MP forum topic" title; if no ID is given, it uses "MP forum" as title. |
=== Source === | === Source === |
Latest revision as of 13:00, 6 June 2017
Purpose
Create a link to a topic at the ManiaPlanet forum.
Usage
- {{mpforum|somenumber|somename}}
- {{mpforum|somenumber}}
- {{mpforum}}
where somenumber is the topic ID and somename the topic title or the name you want to give to the link. The topic ID is a number unique to each topic. For example, in this URL:
- https://forum.maniaplanet.com/viewtopic.php?f=465&t=15761
the topic ID is 15761.
- If no title is given, the template uses a generic "MP forum topic" title; if no ID is given, it uses "MP forum" as title.
Source
This template is adapted from DoomWiki.org.