Editing Template:ExternalMediaLink/doc

Jump to navigation Jump to search

Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.

The system administrator who locked it offered this explanation: We are currently working on upgrading comp.tf. Edits will be locked for most of March 2025, or until further notice. For questions, please contact staff on the comp.tf Discord. I apologise for the inconvenience.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.

Latest revision Your text
Line 1: Line 1:
[[Template:ExternalMediaLink]] helps with formatting for external media links such as interviews or image galleries.
+
<includeonly><!--
 
+
-->{{#if:{{{date|}}} | {{{date}}}&nbsp;{{!}}&nbsp; | }}<!--
====Parameters====
+
-->{{#if:{{{language|}}}|{{flag/{{lc:{{{language}}}}}}}&nbsp;}}<!--
*'''date=''' Use YYYY-MM-DD format.
+
-->{{#if:{{{title|}}} | <span class="plainlinks">[{{{link}}} ''{{{title}}}'']</span> | <span class="plainlinks">[{{{link}}} {{{link}}}]</span>}}<!--
*'''link=''' Full URL such as <nowiki>http://comp.tf</nowiki>.
+
-->{{#if:{{{trans_title|}}} | &nbsp;[{{{trans_title}}}]}} <!--
*'''title=''' Title to be displayed. Usually the title used in the source is the best choice.
+
-->{{#if:{{{by|}}} | &nbsp;by&nbsp;{{{by}}} }}<!--
**If left blank, the URL will be used as the displayed title.
+
-->{{#if:{{{of|}}} | &nbsp;of&nbsp;{{{of}}} }}<!--
*'''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>).
+
-->{{#if:{{{event|}}} |<!--
*'''event=''' Name of event, this will create an internal link if you do not use the next parameter.
+
  -->&nbsp;at&nbsp;{{#if:{{{event-link|}}} |<!--
*'''event-link=''' Link for event if not the event name.
+
      -->{{#ifeq:{{lc:{{{event-link}}}}} | false | {{{event}}} | [[{{{event-link}}}{{!}}{{{event}}}]] }} | [[{{{event}}}]]<!--
*'''language=''' Displays [[Template:Flag]] before source link. Leave blank if source is in English.
+
  -->}}<!--
 
+
-->}}<!--
====Copy/Paste Code====
+
-->{{#if:{{{translation|}}} | &nbsp;(trans. {{flag/{{lc:{{{translation}}}}}}}<!--
<pre>
+
-->{{#if:{{{translator|}}} | &nbsp;by&nbsp;{{{translator}}}}}) }}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
*{{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>
 

Please note that all contributions to comp.tf may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see comp.tf:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: