Difference between revisions of "Template:ExternalMediaLink/doc"

From comp.tf
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
====Parameters====
 
====Parameters====
*'''date=''' Please use YYYY-MM-DD format for proper alignment.
+
*'''date=''' Use YYYY-MM-DD format.
*'''link=''' Full url with a direct link such as <nowiki>http://www.example.com/test.html</nowiki>. This variable is not optional.
+
*'''link=''' Full URL such as <nowiki>http://comp.tf</nowiki>.
*'''title=''' Title of the link. The headline provided by the source is most often the best choice here.
+
*'''title=''' Title to be displayed. Usually the title used in the source is the best choice.
*'''by=''' Name of author if available, if not can use name of organization or website.
+
**If left blank, the URL will be used as the displayed title.
*'''of=''' If name of author is known, you can add the organization they represent here. Do not include full URLs here. (Teamliquid or Teamliquid.net but not <nowiki>http://Teamliquid.net</nowiki>)
+
*'''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>).
 
*'''event=''' Name of event, this will create an internal link if you do not use the next parameter.
 
*'''event=''' Name of event, this will create an internal link if you do not use the next parameter.
*'''event-link=''' If article link on Liquipedia is not pretty, use this to hide the link path.
+
*'''event-link=''' Link for event if not the event name.
**Set this to '''false''' if you do not wish to have the event parameter create an internal link.
+
*'''language=''' Displays [[Template:Flag]] before source link. Leave blank if source is in English.
*'''language=''' Use this to indicate which language an interview is in, use corresponding country codes (i.e. se for Swedish, kr for Korean, fr for French, etc.).
 
**Leave this field empty if the interview is in English.
 
*'''trans_title=''' Use this to provide a translation of the title in english.
 
*'''translation=''' Use this to indicate which language an interview is translated into.
 
*'''translator=''' Name of the translator if available.
 
  
 
====Copy/Paste Code====
 
====Copy/Paste Code====
Line 23: Line 18:
 
|title=
 
|title=
 
|by=
 
|by=
|of=
+
|of
 
|event=
 
|event=
 
|event-link=
 
|event-link=
 
|language=
 
|language=
|trans_title=
 
|translation=
 
|translator=
 
 
}}
 
}}
 
</pre>
 
</pre>
 
Short form:
 
Short form:
<pre>*{{ExternalMediaLink |date= |link= |title= |by= |of=  |event= |event-link= |language= |translation= }}</pre>
+
<pre>*{{ExternalMediaLink |date= |link= |title= |by= |event= |event-link= |language= }}</pre>
  
 
====Example====
 
====Example====
 
<pre>
 
<pre>
*{{ExternalMediaLink
+
* {{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= }}
|date=2012-02-13
 
|link=http://example.com
 
|title="Noam: Je serais le meilleur codeur de template de l'hémisphère nord l'année prochaine"
 
|by=the gnome
 
|of=Liquipedia.net
 
|event=the Liquipedia yearly convention
 
|event-link=false
 
|language=fr
 
|trans_title="Noam: I will be the best template coder on the nothern hemisphere by next year"
 
|translation=usuk
 
|translator=somebody
 
}}
 
 
</pre>
 
</pre>
 
creates:
 
creates:
*{{ExternalMediaLink
+
* {{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= }}
|date=2012-02-13
 
|link=http://example.com
 
|title="Noam: Je serais le meilleur codeur de template de l'hémisphère nord l'année prochaine"
 
|by=the gnome
 
|of=Liquipedia.net
 
|event=the Liquipedia yearly convention
 
|event-link=false
 
|language=fr
 
|trans_title="Noam: I will be the best template coder on the nothern hemisphere by next year"
 
|translation=usuk
 
|translator=somebody
 
}}
 
 
<noinclude>[[Category:Template Documentation Pages]]</noinclude>
 
<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: