Template:Repository fetch: Difference between revisions
From Indian River Lagoon Project
mNo edit summary |
mNo edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
***Make sure to RECOMMENT the code sections before saving this file or it will overwrite the data every time it is viewed.*** | ***Make sure to RECOMMENT the code sections before saving this file or it will overwrite the data every time it is viewed.*** | ||
--> | --> | ||
<!-- Fetch the Data --> | <!-- Fetch the Data --> | ||
{{#get_web_data: | {{#get_web_data: | ||
url=https://indianriverlagoonnews.org/guide/resources/ | url=https://indianriverlagoonnews.org/guide/resources/documents/Indian_River_Lagoon_Repository - Data.csv | ||
|format=CSV with header | |format=CSV with header | ||
|data=Title=Title,Type=Type,Count=Count,Size=Size,Author=Author,Publication=Publication,Publisher=Publisher,Published=Published,Waterbody=Waterbody,Region=Region,Description=Description,Image=Image,URL=URL,Archived=Archived,ArchiveURL=ArchiveURL }} | |data=Title=Title,Type=Type,Count=Count,Size=Size,Author=Author,Publication=Publication,Publisher=Publisher,Published=Published,Waterbody=Waterbody,Region=Region,Description=Description,Image=Image,URL=URL,Archived=Archived,ArchiveURL=ArchiveURL }} | ||
<!-- Store Fetched Data --> | <!-- Store Fetched Data --> | ||
{{#display_external_table:template=Repository store|data=Title=Title,Type=Type,Count=Count,Size=Size,Author=Author,Publication=Publication,Publisher=Publisher,Published=Published,Waterbody=Waterbody,Region=Region,Description=Description,Image=Image,URL=URL,Archived=Archived,ArchiveURL=ArchiveURL }} | {{#display_external_table:template=Repository store|data=Title=Title,Type=Type,Count=Count,Size=Size,Author=Author,Publication=Publication,Publisher=Publisher,Published=Published,Waterbody=Waterbody,Region=Region,Description=Description,Image=Image,URL=URL,Archived=Archived,ArchiveURL=ArchiveURL }} |
Latest revision as of 07:58, May 28, 2023
View Repository Data Table | View Repository Page
This template uses Extension:externaldata to fetch data from a local csv file, and then sends it to Template:Repository_store, which creates a database table (if doesn't exist), and stores the fetched data.
Edit this template for instructions.