Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes. edit
Game mechanics • Newbie guide • In development • DDO Store • Social Media
Challenges • Classes • Collectables • Crafting • Enhancements • Epic Destinies • Favor • Feats
Glossary • Items • Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells
Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!
Difference between revisions of "Template:Forums"
Technical 13 (talk | contribs) (fix unclosed tag) |
Technical 13 (talk | contribs) ({{#replace:{{{label|{{{1|DDO Forums}}}}}}|]|]}} so that ] won't cause issues.) |
||
Line 46: | Line 46: | ||
== CODING == |
== CODING == |
||
− | </noinclude><onlyinclude>{{#ifeq:{{IO|{{{display|1}}}}}|1|<span class="plainlinks">[}}https://www.ddo.com/forums/{{#if:{{{p|}}}|showthread.php?p={{{p}}}|{{#if:{{{f|}}}|forumdisplay.php/{{{f}}}|{{#if:{{{1|}}}|showthread.php/{{{1}}}}}}}}} {{#ifeq:{{IO|{{{display|1}}}}}|1|{{#if:{{{p|{{{f|}}}}}}|{{{label|{{{1|DDO Forums}}}}}}|{{{label|{{{2|DDO Forums}}}}}}}}{{#ifeq:{{IO|{{{display|1}}}}}|1|]</span>}}}}<includeonly>{{#switch:{{lc:{{NAMESPACE}}}}|category|template|user|user talk=|#default=[[Category:Pages sourced by DDO forums]]}}</includeonly></onlyinclude> |
+ | </noinclude><onlyinclude>{{#ifeq:{{IO|{{{display|1}}}}}|1|<span class="plainlinks">[}}https://www.ddo.com/forums/{{#if:{{{p|}}}|showthread.php?p={{{p}}}|{{#if:{{{f|}}}|forumdisplay.php/{{{f}}}|{{#if:{{{1|}}}|showthread.php/{{{1}}}}}}}}} {{#ifeq:{{IO|{{{display|1}}}}}|1|{{#if:{{{p|{{{f|}}}}}}|{{#replace:{{{label|{{{1|DDO Forums}}}}}}|]|]}}|{{#replace:{{{label|{{{2|DDO Forums}}}}}}}}|]|]}}{{#ifeq:{{IO|{{{display|1}}}}}|1|]</span>}}}}<includeonly>{{#switch:{{lc:{{NAMESPACE}}}}|category|template|user|user talk=|#default=[[Category:Pages sourced by DDO forums]]}}</includeonly></onlyinclude> |
Revision as of 23:23, December 2, 2015
USAGE
{{ Forums | Thread | (Label)/(display=Display) }}
or
{{ Forums | p=Post | (Label)/(display=Display) }}
or
{{ Forums | f=Forum | (Label)/(display=Display) }}
Parameters
- Where Thread is the last part of the url
- e.g. 150534-Official-Known-Issues in https://www.ddo.com/forums/showthread.php/150534-Official-Known-Issues
- Where Post is the post number
- e.g. 1755313 in https://www.ddo.com/forums/showthread.php/150534-Official-Known-Issues?p=1755313&viewfull=1#post1755313
- Where Forum is the forum number
- e.g. 3 in https://www.ddo.com/forums/forumdisplay.php/3-Service-News
- Where (Label) is the text you want the link to appear as
- default = DDO Forums
- Where (Display) is
- 1/+/y/yes/on/true (default)
- 0/-/n/no/off/false
EXAMPLES
{{Forums}}
- Thread:
{{ Forums | 150534-Official-Known-Issues }}
- Thread:
{{ Forums | 150534 | Known Issues }}
- Thread:
{{ Forums | 150534 | label=Known Issues }}
- Thread:
{{ Forums | 150534 | display=0 }}
- Post:
{{ Forums | p=1755313 }}
- Post:
{{ Forums | p=1755313 | Known Issues Post }}
- Forum:
{{ Forums | f=3 | Service News }}
CATEGORIZATION