Difference between revisions of "Template:Dwforums"
From DoomWiki.org
m (moved Template:Doomworld to Template:Dwforums: moved per discussion at the talk page) |
m (https, plainlink span as in idgames template) |
||
(8 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | <onlyinclude><includeonly>{{#if:{{{1|{{{id|}}}}}}|[ | + | <onlyinclude><includeonly>{{#if:{{{1|{{{id|}}}}}}|<span class="plainlinks">[https://www.doomworld.com/vb/thread/{{{id|{{{1}}}}}} {{{title|{{{2|Doomworld forums thread}}}}}}]</span>|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>{{ | + | : '''<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: | ||
− | : <tt><nowiki> | + | : <tt><nowiki>https://www.doomworld.com/vb/doomworld-news/6148-the-newstuff-chronicles-75/</nowiki></tt> |
the thread ID is 6148. | the thread ID is 6148. | ||
− | ''Example:'' <tt><nowiki>{{ | + | ''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>{{ | + | *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>{{ | + | *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 | + | *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: {{ | + | *If no id is given, the template displays an error message: {{dwforums}} |
[[Category:External link templates]]</noinclude> | [[Category:External link templates]]</noinclude> |
Latest revision as of 10:19, 3 March 2016
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:
- https://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.