Difference between revisions of "Template:FancyFile"

From Fancyclopedia 3
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>'''Usage:'''
 
<noinclude>'''Usage:'''
  
<nowiki>{{FancyFile | directory/file | text}}</nowiki>
+
<nowiki>{{FancyFile | directory/file | text}} or {{FancyFile | directory/file | page | text}}</nowiki>
  
 
will link to files in <nowiki>http://files.fancyclopedia.org/directory/file</nowiki>. Use spaces.
 
will link to files in <nowiki>http://files.fancyclopedia.org/directory/file</nowiki>. Use spaces.
</noinclude>{{link | website=http://files.fancyclopedia.org/{{#replace:{{{1}}}| |%20}} | text={{{2}}}}}
+
</noinclude>{{#ifeq:{{{3|}}}||{{link | website=http://files.fancyclopedia.org/{{#replace:{{{1}}}| |%20}} | text={{{2}}}}}|{{link | website=http://files.fancyclopedia.org/{{#replace:{{{1}}}| |%20}}#page={{{3}}} | text={{{2}}}}}

Revision as of 03:39, 25 July 2020

Usage:

{{FancyFile | directory/file | text}} or {{FancyFile | directory/file | page | text}}

will link to files in http://files.fancyclopedia.org/directory/file. Use spaces. {{#ifeq:||{{{2}}}|{{{2}}}