Difference between pages "Template:Hackerspace/TableDetails" and "Template:User"

From ToorCamp Wiki
(Difference between pages)
Jump to navigation Jump to search
m (1 revision imported)
 
ccc>Twi
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Hackerspace/TableDetails" template.
+
If you want to edit your user page, go to your [[Special:MyPage|user page]] and click '''Edit'''.
 
+
</noinclude><includeonly>{{Warning/ImproperValue}}{{#widget:InfoBox/Start}}
This template fetches the list of hackerspaces from the clean dumped CSV files on events.ccc.de imported from [http://hackerspaces.org].
+
{| {{InfoBox/User}}
 
+
! Phone
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:
+
| {{#if:{{{Has phone number|}}}|{{#arraymap:{{{Has phone number}}}|,|x|[[Has phone number::x]]}}|{{Eventphone/NoNumber}} }}
 
+
|-
List of Hackerspaces 1
+
{{#if:{{{Has Callsign|}}}|
List of Hackerspaces 2
+
! Callsign
...
+
{{!}} [[Has Callsign::{{{Has Callsign|}}}]]
</noinclude><includeonly>{| class="wikitable"
+
{{!}}-
! Hackerspace
+
}}
 +
! Speaks language
 +
| {{#arraymap:{{{Speaks language|}}}|,|x|[[Speaks language::x]]}}
 +
{{#if:{{{Has mail contact|}}}|
 +
{{!}}-
 +
! eMail
 +
{{!}} {{#arraymap:{{{Has mail contact|}}}|,|x|[[Has mail contact::x]]}} }}
 +
{{#if:{{{Has xmpp contact|}}}|
 +
{{!}}-
 +
! XMPP/Jabber
 +
{{!}} {{#arraymap:{{{Has xmpp contact|}}}|,|y|[[Has xmpp contact::y]]}} }}
 +
{{#if:{{{Has website|}}}|
 +
{{!}}-
 +
! Website
 +
{{!}} {{#arraymap:{{{Has website|}}}|,|x|[[Has website::x]]}} }}
 +
|-
 +
! Continent
 +
| {{#if:{{{Lives in continent|}}}|[[Lives in continent::Continent:{{{Lives in continent}}}|{{{Lives in continent}}}]]|unknown}}
 +
|-
 
! Country
 
! Country
! State
+
| {{#if:{{{Lives in country|}}}|[[Lives in country::Country:{{{Lives in country}}}|{{{Lives in country}}}]]|unknown}}
 +
|-
 
! City
 
! City
! Website {{#get_web_data:
+
| {{#if:{{{Lives in city|}}}|[[Lives in city::City:{{{Lives in city}}}|{{{Lives in city}}}]]|unknown}}
url=http://events.ccc.de/congress/hackerspaces/{{PAGENAME}}.csv
+
|-
|format=csv with header
+
! Part of
|data=hackerspace=Hackerspace,website=Website,country=Country,state=State,city=City,lower=Lower}} {{#for_external_table:<nowiki/>
+
| {{#arraymap:{{{Part of|}}}|,|x|[[Part of::Village:x|x]]}}
{{!}}-
+
|-
{{!}} [[Hackerspace:{{{hackerspace}}}]]
+
! Working on
{{!}} {{{country}}}
+
| {{#arraymap:{{{Working on|}}}|,|x|[[Working on::Projects:x|x]]}}
{{!}} {{{state}}}
+
|-
{{!}} {{{city}}}
+
! Member of
{{!}} {{{website}}}
+
| {{#arraymap:{{{Member of|}}}|,|x|[[Member of::x|x]]}}
}}
 
 
|}
 
|}
 
+
{{#widget:InfoBox/End}}
{{#get_web_data:
+
[[Category:User]]
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>
 
</includeonly>

Revision as of 09:42, 13 July 2019

If you want to edit your user page, go to your user page and click Edit.