Difference between revisions of "Template:ExternalMediaLink/doc"

From comp.tf
Jump to navigation Jump to search
(Created page with "<includeonly><!-- -->{{#if:{{{date|}}} | {{{date}}} {{!}}  | }}<!-- -->{{#if:{{{language|}}}|{{flag/{{lc:{{{language}}}}}}} }}<!-- -->{{#if:{{{title|}}} | <span...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><!--
+
[[Template:ExternalMediaLink]] helps with formatting for external media links such as interviews or image galleries.
-->{{#if:{{{date|}}} | {{{date}}}&nbsp;{{!}}&nbsp; | }}<!--
+
 
-->{{#if:{{{language|}}}|{{flag/{{lc:{{{language}}}}}}}&nbsp;}}<!--
+
====Parameters====
-->{{#if:{{{title|}}} | <span class="plainlinks">[{{{link}}} ''{{{title}}}'']</span> | <span class="plainlinks">[{{{link}}} {{{link}}}]</span>}}<!--
+
*'''date=''' Use YYYY-MM-DD format.
-->{{#if:{{{trans_title|}}} | &nbsp;[{{{trans_title}}}]}} <!--
+
*'''link=''' Full URL such as <nowiki>http://comp.tf</nowiki>.
-->{{#if:{{{by|}}} | &nbsp;by&nbsp;{{{by}}} }}<!--
+
*'''title=''' Title to be displayed. Usually the title used in the source is the best choice.
-->{{#if:{{{of|}}} | &nbsp;of&nbsp;{{{of}}} }}<!--
+
**If left blank, the URL will be used as the displayed title.
-->{{#if:{{{event|}}} |<!--
+
*'''by=''' Name of author of source. If author is represented by organization, use organizational author (e.g. <nowiki>[[teamfortress.tv]]</nowiki>), otherwise use independent author (e.g. <nowiki>[[Beater]]</nowiki>).
  -->&nbsp;at&nbsp;{{#if:{{{event-link|}}} |<!--
+
*'''event=''' Name of event, this will create an internal link if you do not use the next parameter.
      -->{{#ifeq:{{lc:{{{event-link}}}}} | false | {{{event}}} | [[{{{event-link}}}{{!}}{{{event}}}]] }} | [[{{{event}}}]]<!--
+
*'''event-link=''' Link for event if not the event name.
  -->}}<!--
+
*'''language=''' Displays [[Template:Flag]] before source link. Leave blank if source is in English.
-->}}<!--
+
 
-->{{#if:{{{translation|}}} | &nbsp;(trans. {{flag/{{lc:{{{translation}}}}}}}<!--
+
====Copy/Paste Code====
-->{{#if:{{{translator|}}} | &nbsp;by&nbsp;{{{translator}}}}}) }}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
+
<pre>
 +
*{{ExternalMediaLink
 +
|date=
 +
|link=
 +
|title=
 +
|by=
 +
|of
 +
|event=
 +
|event-link=
 +
|language=
 +
}}
 +
</pre>
 +
Short form:
 +
<pre>*{{ExternalMediaLink |date= |link= |title= |by= |event= |event-link= |language= }}</pre>
 +
 
 +
====Example====
 +
<pre>
 +
* {{ExternalMediaLink |date=2017-03-22 |link=https://www.youtube.com/watch?v=WZDn0XHr0mw |title=b4nny - An ESA Media Documentary |by= [[Esports Arena]] |of= [[Esports Arena]] |event=Rewind 2017 |event-link= |language= }}
 +
</pre>
 +
creates:
 +
* {{ExternalMediaLink |date=2017-03-22 |link=https://www.youtube.com/watch?v=WZDn0XHr0mw |title=b4nny - An ESA Media Documentary |by= [[Esports Arena]] |of= [[Esports Arena]] |event=Rewind 2017 |event-link= |language= }}
 +
<noinclude>[[Category:Template Documentation Pages]]</noinclude>

Latest revision as of 06:58, 14 December 2023

Template:ExternalMediaLink helps with formatting for external media links such as interviews or image galleries.

Parameters[edit]

  • date= Use YYYY-MM-DD format.
  • link= Full URL such as http://comp.tf.
  • title= Title to be displayed. Usually the title used in the source is the best choice.
    • If left blank, the URL will be used as the displayed title.
  • by= Name of author of source. If author is represented by organization, use organizational author (e.g. [[teamfortress.tv]]), otherwise use independent author (e.g. [[Beater]]).
  • event= Name of event, this will create an internal link if you do not use the next parameter.
  • event-link= Link for event if not the event name.
  • language= Displays Template:Flag before source link. Leave blank if source is in English.

Copy/Paste Code[edit]

*{{ExternalMediaLink
|date=
|link=
|title=
|by=
|of
|event=
|event-link=
|language=
}}

Short form:

*{{ExternalMediaLink |date= |link= |title= |by= |event= |event-link= |language= }}

Example[edit]

* {{ExternalMediaLink |date=2017-03-22 |link=https://www.youtube.com/watch?v=WZDn0XHr0mw |title=b4nny - An ESA Media Documentary |by= [[Esports Arena]] |of= [[Esports Arena]] |event=Rewind 2017 |event-link= |language= }}

creates: