Changes

Jump to navigation Jump to search
94 bytes added ,  13:00, 6 June 2017
allow link to index w/o topic, make link visible
Line 1: Line 1: −
<includeonly>[https://forum.maniaplanet.com/viewtopic.php?t={{{1}}} {{{2|MP forum topic}}}]</includeonly><noinclude>
+
[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 ===

Navigation menu