Difference between revisions of "Template:Tmforum"

From Mania Tech Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>[http://www.tm-forum.com/viewtopic.php?t={{{t|{{{1}}}}}} {{{2|{{{1|TM forum topic}}}}}}]</includeonly><noinclude> == Purpose == Create a link to a topic at the [h...")
 
m (update to https)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[http://www.tm-forum.com/viewtopic.php?t={{{t|{{{1}}}}}} {{{2|{{{1|TM forum topic}}}}}}]</includeonly><noinclude>
+
[https://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 [https://www.tm-forum.com/ TrackMania forum].
  
 
<u>Usage</u>
 
<u>Usage</u>
: '''{{c|<nowiki>{{tmforum|t=somenumber|somename}}</nowiki>}}'''
 
 
: '''{{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:
: {{c|<nowiki>http://www.tm-forum.com/viewtopic.php?f=28&t=28315</nowiki>}}
+
: {{c|<nowiki>https://www.tm-forum.com/viewtopic.php?f=28&t=28315</nowiki>}}
 
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 ===

Latest revision as of 09:57, 30 January 2022

TM forum

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:

https://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.