Difference between revisions of "Template:Tmforum"
Jump to navigation
Jump to search
m (simplify params) |
(allow link to index w/o topic, make link visible) |
||
Line 1: | Line 1: | ||
− | + | [http://www.tm-forum.com{{#if: {{{1|}}} |/viewtopic.php?t={{{1}}} {{{2|TM forum topic}}}|/ TM forum}}]<noinclude> | |
== Purpose == | == Purpose == | ||
− | Create a link to a topic at the [http://www.tm-forum.com/ TrackMania forum]. | + | Create a link to a topic or to the main index at the [http://www.tm-forum.com/ TrackMania forum]. |
<u>Usage</u> | <u>Usage</u> | ||
: '''{{c|<nowiki>{{tmforum|somenumber|somename}}</nowiki>}}''' | : '''{{c|<nowiki>{{tmforum|somenumber|somename}}</nowiki>}}''' | ||
: '''{{c|<nowiki>{{tmforum|somenumber}}</nowiki>}}''' | : '''{{c|<nowiki>{{tmforum|somenumber}}</nowiki>}}''' | ||
+ | : '''{{c|<nowiki>{{tmforum}}</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 28315. | the topic ID is 28315. | ||
− | * If no title is given, the template uses a generic "TM forum topic" title. | + | * If no title is given, the template uses a generic "TM forum topic" title; if no ID is given, it uses "TM forum" as title. |
=== Source === | === Source === |
Revision as of 12:58, 6 June 2017
Purpose
Create a link to a topic or to the main index at the TrackMania forum.
Usage
- {{tmforum|somenumber|somename}}
- {{tmforum|somenumber}}
- {{tmforum}}
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:
- http://www.tm-forum.com/viewtopic.php?f=28&t=28315
the topic ID is 28315.
- If no title is given, the template uses a generic "TM forum topic" title; if no ID is given, it uses "TM forum" as title.
Source
This template is adapted from DoomWiki.org.