Difference between revisions of "Template:ExternalLink"

From DDO Compendium
(Created page with "<noinclude>This template is used for False Life.Category:Template Used in this manner: <br><nowiki>{{ExternalLink|Type|Identifier|Label}}</nowiki><br> <br>Such that <nowi...")
 
Line 1: Line 1:
<noinclude>This template is used for False Life.[[Category:Template]]
<noinclude>[[Category:Template]][[Category:Item Enchantment Template]]{{TemplateDocumentation
 
|name = ExternalLink
Used in this manner:
|description = This template is used top level templates to add youtube and forum links to the page.
<br><nowiki>{{ExternalLink|Type|Identifier|Label}}</nowiki><br>
|example1 = <nowiki>{{ExternalLink|y|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}</nowiki>
<br>Such that <nowiki>{{ExternalLink|YouTube|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}</nowiki> results in<br>
|example1output = {{ExternalLink|y|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}
<br>{{ExternalLink|y|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}
|example2 = <nowiki>{{ExternalLink|f|496050|The DDO Chronicle: Issue 281}}</nowiki>
<br><br>
|example2output = {{ExternalLink|f|496050|The DDO Chronicle: Issue 281}}
'''Options for Type'''
|parameter1name = Site Indicator
* Forum or f - give the thread id as the identifier value: in https://www.ddo.com/forums/showthread.php/496168-DDO-Bonus-Days it is 496168
|parameter1description = This is an indicator of which site you want the link to go to.  Currently only YouTube and the DDO forums are supported.
* YouTube or y - give the video id as the identifier value: in https://www.youtube.com/watch?v=PTw5oHOi3VE it is PTw5oHOi3VE
|parameter1values =
* Youtube
* Forum
|parameter2name = Identifier
|parameter2description = This is the identifier to the page
|parameter2values =
* For YouTube is the video id, which is usually the value after the v= in the url. <nowiki>https://www.youtube.com/?v='''PTw5oHOi3VE'''</nowiki>
* For the forums, it is the number right after the "showthread.php" value. <nowiki>https://www.ddo.com/forums/showthread.php/'''496050'''-The-DDO-Chronicle-Issue-281</nowiki>
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
| forum |f = [https://www.ddo.com/forums/showthread.php/{{{2}}} {{{3}}}]
| forum = [https://www.ddo.com/forums/showthread.php/{{{2}}} {{{3}}}]
| youtube |y = [https://www.youtube.com/watch?v={{{2}}} {{{3}}}]
| youtube = [https://www.youtube.com/watch?v={{{2}}} {{{3}}}]
| #default = Not a valid type
| #default = Not a valid type
}}</onlyinclude>
}}</onlyinclude>

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|y|PTw5oHOi3VE|Spyderwolf's YouTube Video Quest Walkthrough}}Not a valid type
{{ExternalLink|f|496050|The DDO Chronicle: Issue 281}}Not a valid type

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