Difference between pages "Template:Hackerspace/ListDetails/Format" and "Template:Hackerspace/TableDetails"

From ToorCamp Wiki
< Template:Hackerspace/ListDetails(Difference between pages)
Jump to navigation Jump to search
ccc>Wikiadmin
(initial import of content)
 
m (1 revision imported)
 
Line 1: Line 1:
<div style="color: gray; font-size: 10px;">({{#if:{{{1}}}|[[Country:{{{1}}}]],}} {{#if:{{{2}}}|{{{2}}},}} {{#if:{{{3}}}|[[City:{{{3}}}]],}} {{#if:{{{4}}}|{{{4}}} }})</div>
+
<noinclude>
 +
This is the "Hackerspace/TableDetails" template.
 +
 
 +
This template fetches the list of hackerspaces from the clean dumped CSV files on events.ccc.de imported from [http://hackerspaces.org].
 +
 
 +
This template should be included on pages named "List of Hackerspaces X", where X ist ne index of the file to be included by this template, for example:
 +
 
 +
List of Hackerspaces 1
 +
List of Hackerspaces 2
 +
...
 +
</noinclude><includeonly>{| class="wikitable"
 +
! Hackerspace
 +
! Country
 +
! State
 +
! City
 +
! Website {{#get_web_data:
 +
url=http://events.ccc.de/congress/hackerspaces/{{PAGENAME}}.csv
 +
|format=csv with header
 +
|data=hackerspace=Hackerspace,website=Website,country=Country,state=State,city=City,lower=Lower}} {{#for_external_table:<nowiki/>
 +
{{!}}-
 +
{{!}} [[Hackerspace:{{{hackerspace}}}]]
 +
{{!}} {{{country}}}
 +
{{!}} {{{state}}}
 +
{{!}} {{{city}}}
 +
{{!}} {{{website}}}
 +
}}
 +
|}
 +
 
 +
{{#get_web_data:
 +
url=http://events.ccc.de/congress/hackerspaces/{{PAGENAME}}.csv
 +
|format=csv with header
 +
|data=hackerspace=Hackerspace,website=Website,country=Country,state=State,city=City}} {{#store_external_table:Hackerspaces
 +
|Has name={{{hackerspace}}}
 +
|Has lower name={{{lower}}}
 +
|Hackerspace=[[Hackerspace:{{{hackerspace}}}]]
 +
|Located in country={{{country}}}
 +
|Located in state={{{state}}}
 +
|Located in city={{{city}}}
 +
|Has website={{{website}}}
 +
}}
 +
</includeonly>

Latest revision as of 08:39, 4 March 2020

This is the "Hackerspace/TableDetails" template.

This template fetches the list of hackerspaces from the clean dumped CSV files on events.ccc.de imported from [1].

This template should be included on pages named "List of Hackerspaces X", where X ist ne index of the file to be included by this template, for example:

List of Hackerspaces 1 List of Hackerspaces 2 ...