Difference between revisions of "File"

From Sega Retro

old>Hivebrain
(New page: [[Media:{{{1}}}|{{{2|{{{1}}}}}}]] <sup>([[:Image:{{{1}}}|info]])</sup><noinclude> ==Usage== This template is used to create a direct link to a file, as well as a link to the file's page. ...)
 
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Media:{{{1}}}|{{{2|{{{1}}}}}}]] <sup>([[:Image:{{{1}}}|info]])</sup><noinclude>
+
<includeonly>[[Media:{{{1}}}|{{{2|{{{1}}}}}}]] <sup>([[:File:{{{1}}}|info]])</sup> ({{filesize|{{{1}}}}})</includeonly><noinclude>
 
==Usage==
 
==Usage==
 
This template is used to create a direct link to a file, as well as a link to the file's page.
 
This template is used to create a direct link to a file, as well as a link to the file's page.
Line 6: Line 6:
 
{{file | *filename* | *text* }}
 
{{file | *filename* | *text* }}
 
</pre>
 
</pre>
 +
 +
<nowiki>*</nowiki>text* is optional.
  
 
===Example===
 
===Example===
  
 
<pre>
 
<pre>
{{file | Sonic1 title.png | Sonic the Hedgehog title screen. }}
+
{{file | Genecyst vX.XX.7z | Final version of Genecyst, a Mega Drive emulator. }}
 
</pre>
 
</pre>
  
 
becomes:
 
becomes:
  
{{file | Sonic1 title.png | Sonic the Hedgehog title screen. }}
+
{{file | Genecyst vX.XX.7z | Final version of Genecyst, a Mega Drive emulator. }}
  
[[Category:Sonic Retro Templates|File]]
+
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13:53, 1 January 2022

Usage

This template is used to create a direct link to a file, as well as a link to the file's page.

{{file | *filename* | *text* }}

*text* is optional.

Example

{{file | Genecyst vX.XX.7z | Final version of Genecyst, a Mega Drive emulator. }}

becomes:

Final version of Genecyst, a Mega Drive emulator. (info) (293 kB)