Difference between revisions of "Template:FilesFrame"

From Fancyclopedia 3
Jump to navigation Jump to search
Line 3: Line 3:
  
 
<nowiki>{{FilesFrame | files=http://files.fancyclopedia.org/Con}}</nowiki>
 
<nowiki>{{FilesFrame | files=http://files.fancyclopedia.org/Con}}</nowiki>
</noinclude><span class=filesframe1>{{#ifeq:{{{files}}}|||{{#tag:iframe|height="100"|key="files"|path="{{#replace:{{{files}}}| |%20}}/fancyclopedia.html"}}}}</span>
+
</noinclude>{{#ifeq:{{{files}}}|||{{#tag:iframe|height="100"|key="files"|path="{{#replace:{{{files}}}| |%20}}/fancyclopedia.html"}}}}
<span class=filesframe2>
 
{{#get_web_data: url={{#replace:{{{files}}}| |%20}}/files.csv | format=CSV | data=file=1,title=2}}{{#ifeq:{{#external_value:title}}|||<span class=filesframe2>'''Files'''{{#display_external_table:template=FilesFrameTableRow1|data=file=file,title=title}}</span>}}{{#clear_external_data:}}
 
{{#get_web_data:
 
  url={{#replace:{{{files}}}| |%20}}/fanac.csv |format=CSV with header |
 
  data=title=Title,editors=Editor,day=Day,month=Month,year=Year,pages=Pages,notes=Notes}}
 
{{#ifeq:{{#external_value:title}}|||<span class=filesframe2>'''Fanac details'''
 
{{{!}} class="wikitable"
 
! Title
 
! Editors
 
! Month
 
! Year
 
! Pages
 
! Notes {{#for_external_table:<nowiki/>
 
{{!}}-
 
{{!}} {{{title}}}
 
{{!}} {{{editors}}}
 
{{!}} {{{month}}}
 
{{!}} {{{year}}}
 
{{!}} {{{pages}}}
 
{{!}} {{{notes}}}
 
}}
 
{{!}}}</span>
 
}}
 

Revision as of 06:49, 27 July 2020

Usage:

{{FilesFrame | files=http://files.fancyclopedia.org/Con}}