Difference between revisions of "Template:FilesFrame"

From Fancyclopedia 3
Jump to navigation Jump to search
Line 5: Line 5:
 
</noinclude><span class=filesframe1>{{#ifeq:{{{files}}}|||{{#tag:iframe|height="100"|key="files"|path="{{#replace:{{{files}}}| |%20}}/fancyclopedia.html"}}}}</span>
 
</noinclude><span class=filesframe1>{{#ifeq:{{{files}}}|||{{#tag:iframe|height="100"|key="files"|path="{{#replace:{{{files}}}| |%20}}/fancyclopedia.html"}}}}</span>
 
<span class=filesframe2>
 
<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}}/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:
 
{{#get_web_data:
 
   url={{#replace:{{{files}}}| |%20}}/fanac.csv |format=CSV with header |  
 
   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}}
 
   data=title=Title,editors=Editor,day=Day,month=Month,year=Year,pages=Pages,notes=Notes}}
{{#ifeq:{{#external_value:title}}|||'''Fanac details'''
+
{{#ifeq:{{#external_value:title}}|||<span class=filesframe2>'''Fanac details'''
 
{{{!}} class="wikitable"
 
{{{!}} class="wikitable"
 
! Title
 
! Title
Line 25: Line 25:
 
{{!}} {{{notes}}}
 
{{!}} {{{notes}}}
 
}}
 
}}
{{!}}}
+
{{!}}}</span>
}}</span>
+
}}

Revision as of 06:46, 27 July 2020

Usage:

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