Difference between revisions of "Template:Dwforums"

From DoomWiki.org

(Hello pleasantry mystery my sites, chrestomathy it if there is not then I'm sorry.)
(Undo revision 89257 by 93.81.87.100 (talk))
Line 1: Line 1:
Hello prefer conscious of my sites, letters it if there is not then I'm sorry.
+
<onlyinclude><includeonly>{{#if:{{{1|{{{id|}}}}}}|[http://www.doomworld.com/vb/thread/{{{id|{{{1}}}}}} {{{title|{{{2|Doomworld forums thread}}}}}}]|Error: no id given, see [[Template:Dwforums|the instructions]] to use this template.}}</includeonly></onlyinclude><noinclude>
 +
Creates a link to a thread over the Doomworld forums.
 +
 
 +
<u>Usage</u>
 +
: '''<tt><nowiki>{{Dwforums|id=somenumber|title=somename}}</nowiki></tt>'''
 +
 
 +
where ''somenumber'' is the thread ID and ''somename'' the thread title or the name you want to give to the link. The thread ID is a number unique to each thread. For example, in this URL:
 +
: <tt><nowiki>http://www.doomworld.com/vb/doomworld-news/6148-the-newstuff-chronicles-75/</nowiki></tt>
 +
the thread ID is 6148.
 +
 
 +
''Example:'' <tt><nowiki>{{Dwforums|id=6148|title=Newstuff Chronicles #75}}</nowiki></tt> becomes {{Dwforums|id=6148|title=Newstuff Chronicles #75}}
 +
 
 +
*The ID can also be the first, unnamed parameter: <tt><nowiki>{{dwforums|6148|title=tNC75}}</nowiki></tt> becomes {{dwforums|6148|title=tNC75}}.
 +
*The title can also be the second unnamed parameter: <tt><nowiki>{{dwforums|6148|tNC75}}</nowiki></tt> becomes {{dwforums|6148|tNC75}}.
 +
*If no title is given, the template uses a generic "Doomworld forums thread" title.
 +
*If no id is given, the template displays an error message: {{dwforums}}
 +
 
 +
[[Category:External link templates]]</noinclude>

Revision as of 15:37, 9 January 2014

Creates a link to a thread over the Doomworld forums.

Usage

{{Dwforums|id=somenumber|title=somename}}

where somenumber is the thread ID and somename the thread title or the name you want to give to the link. The thread ID is a number unique to each thread. For example, in this URL:

http://www.doomworld.com/vb/doomworld-news/6148-the-newstuff-chronicles-75/

the thread ID is 6148.

Example: {{Dwforums|id=6148|title=Newstuff Chronicles #75}} becomes Newstuff Chronicles #75

  • The ID can also be the first, unnamed parameter: {{dwforums|6148|title=tNC75}} becomes tNC75.
  • The title can also be the second unnamed parameter: {{dwforums|6148|tNC75}} becomes tNC75.
  • If no title is given, the template uses a generic "Doomworld forums thread" title.
  • If no id is given, the template displays an error message: Error: no id given, see the instructions to use this template.