Difference between revisions of "Template:Dwforums"

From DoomWiki.org

m (moved Template:Doomworld to Template:Dwforums: moved per discussion at the talk page)
(updated for renaming)
Line 1: Line 1:
<onlyinclude><includeonly>{{#if:{{{1|{{{id|}}}}}}|[http://www.doomworld.com/vb/thread/{{{id|{{{1}}}}}}/ {{{title|{{{2|Doomworld forum thread}}}}}}]|Error: no id given, see [[Template:Doomworld|the instructions]] to use this template.}}</includeonly></onlyinclude><noinclude>
+
<onlyinclude><includeonly>{{#if:{{{1|{{{id|}}}}}}|[http://www.doomworld.com/vb/thread/{{{id|{{{1}}}}}}/ {{{title|{{{2|Doomworld forum 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.
 
Creates a link to a thread over the Doomworld forums.
  
 
<u>Usage</u>
 
<u>Usage</u>
: '''<tt><nowiki>{{Doomworld|id=somenumber|title=somename}}</nowiki></tt>'''
+
: '''<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:
 
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:
Line 9: Line 9:
 
the thread ID is 6148.
 
the thread ID is 6148.
  
''Example:'' <tt><nowiki>{{Doomworld|id=6148|title=Newstuff Chronicles #75}}</nowiki></tt> becomes {{Doomworld|id=6148|title=Newstuff Chronicles #75}}
+
''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>{{doomworld|6148|title=tNC75}}</nowiki></tt> becomes {{doomworld|6148|title=tNC75}}.
+
*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>{{doomworld|6148|tNC75}}</nowiki></tt> becomes {{doomworld|6148|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 forum thread" title.
 
*If no title is given, the template uses a generic "Doomworld forum thread" title.
*If no id is given, the template displays an error message: {{doomworld}}
+
*If no id is given, the template displays an error message: {{dwforums}}
  
 
[[Category:External link templates]]</noinclude>
 
[[Category:External link templates]]</noinclude>

Revision as of 04:22, 25 August 2010

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 forum thread" title.
  • If no id is given, the template displays an error message: Error: no id given, see the instructions to use this template.