Difference between revisions of "Template:ExternalLink"

From DDO Compendium
(Undo revision 23669 by MNDeveloper (talk))
Line 12: Line 12:
* Youtube
* Youtube
* Forum
* Forum
* DDO
|parameter2name = Identifier
|parameter2name = Identifier
|parameter2description = This is the identifier to the page
|parameter2description = This is the identifier to the page
Line 17: Line 18:
* For YouTube is the video id, which is usually the value after the v= in the url. <nowiki>https://www.youtube.com/?v=</nowiki><b>PTw5oHOi3VE</b>
* For YouTube is the video id, which is usually the value after the v= in the url. <nowiki>https://www.youtube.com/?v=</nowiki><b>PTw5oHOi3VE</b>
* For the forums, it is the number right after the "showthread.php" value. <nowiki>https://www.ddo.com/forums/showthread.php/</nowiki><b>496050</b>-The-DDO-Chronicle-Issue-281
* For the forums, it is the number right after the "showthread.php" value. <nowiki>https://www.ddo.com/forums/showthread.php/</nowiki><b>496050</b>-The-DDO-Chronicle-Issue-281
* For ddo, the path to the download.
|parameter3name = Link Text
|parameter3name = Link Text
|parameter3description = This is the text you want displayed to the user on the link.
|parameter3description = This is the text you want displayed to the user on the link.
Line 25: Line 27:
| forum = [https://www.ddo.com/forums/showthread.php/{{{2}}} {{{3}}}]
| forum = [https://www.ddo.com/forums/showthread.php/{{{2}}} {{{3}}}]
| youtube = [https://www.youtube.com/watch?v={{{2}}} {{{3}}}]
| youtube = [https://www.youtube.com/watch?v={{{2}}} {{{3}}}]
| ddo= [https://www.ddo.com/{{{2}}} {{{3}}}]
| #default = Not a valid type
| #default = Not a valid type
}}</onlyinclude>
}}</onlyinclude>

Revision as of 14:38, 22 September 2022

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)|(Link Text)}}

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
  • DDO
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
  • For ddo, the path to the download.
Link TextThis is the text you want displayed to the user on the link.

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