Difference between revisions of "Template:ExternalLink"

From DDO Compendium
Line 2: Line 2:
|name = ExternalLink
|name = ExternalLink
|description = This template is used top level templates to add youtube and forum links to the page.
|description = This template is used top level templates to add youtube and forum links to the page.
|example1 = <nowiki>{{ExternalLink|y|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}</nowiki>
|example1 = <nowiki>{{ExternalLink|youtube|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}</nowiki>
|example1output = {{ExternalLink|y|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}
|example1output = {{ExternalLink|youtube|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}
|example2 = <nowiki>{{ExternalLink|f|496050|The DDO Chronicle: Issue 281}}</nowiki>
|example2 = <nowiki>{{ExternalLink|forum|496050|The DDO Chronicle: Issue 281}}</nowiki>
|example2output = {{ExternalLink|f|496050|The DDO Chronicle: Issue 281}}
|example2output = {{ExternalLink|forum|496050|The DDO Chronicle: Issue 281}}
|parameter1name = Site Indicator
|parameter1name = Site Indicator
|parameter1description = This is an indicator of which site you want the link to go to.  Currently only YouTube and the DDO forums are supported.  
|parameter1description = This is an indicator of which site you want the link to go to.  Currently only YouTube and the DDO forums are supported.  

Revision as of 18:51, 5 May 2018

ExternalLink[edit]

This template is used top level templates to add youtube and forum links to the page.

Example Usage
{{ExternalLink|youtube|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}Spyderwolf's YouTube Video Quest Walkthrough
{{ExternalLink|forum|496050|The DDO Chronicle: Issue 281}}The DDO Chronicle: Issue 281

Usage[edit]

{{ExternalLink|(Site Indicator)|(Identifier)}}

Parameter Documentation
Site IndicatorThis is an indicator of which site you want the link to go to. Currently only YouTube and the DDO forums are supported.
Possible Values:
  • Youtube
  • Forum
IdentifierThis is the identifier to the page
Possible Values:
  • For YouTube is the video id, which is usually the value after the v= in the url. https://www.youtube.com/?v='''PTw5oHOi3VE'''
  • For the forums, it is the number right after the "showthread.php" value. https://www.ddo.com/forums/showthread.php/'''496050'''-The-DDO-Chronicle-Issue-281

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


Not a valid type