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>{{#ifeq:{{{files}}}|||{{#tag:iframe|height="100"|key="files"|path="{{#replace:{{{files}}}| |%20}}/fancyclopedia.html"}}}}
+
</noinclude><span class=filesframe1>{{#ifeq:{{{files}}}|||{{#tag:iframe|height="100"|key="files"|path="{{#replace:{{{files}}}| |%20}}/fancyclopedia.html"}}}}</span>
 +
<span class=filesframe2>
 +
{{#get_web_data: url={{#replace:{{{files}}}| |%20}}/files.csv | format=CSV | data=file=1,title=2}}{{#ifeq:{{#external_value:title}}|||'''Files'''{{#display_external_table:template=FilesFrameTableRow1|data=file=file,title=title}}}}{{#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}}|||'''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:43, 27 July 2020

Usage:

{{FilesFrame | files=http://files.fancyclopedia.org/Con}} URL is not allowed URL is not allowed