Difference between revisions of "Junk"

From DUNE
Jump to navigation Jump to search
Line 41: Line 41:
 
= external data =
 
= external data =
 
{{#get_db_data: db=collab
 
{{#get_db_data: db=collab
|from=collab_institution
+
|from=members_institution
 +
|limit=10
 
|where=1
 
|where=1
|data=nick=short_name,name=full_name,address=address
+
|data=nick=short_name,name=full_name,country=country,address=address
 
}}
 
}}
 +
 +
Simple text
 +
 +
{{#for_external_table:* {{{nick}}}, {{{address}}}, {{{country}}}br>}}
 +
 +
As table:
 +
 +
{| class="wikitable"
 +
! Name
 +
! Address
 +
! Country{{#for_external_table:<nowiki/>
 +
{{!}}-
 +
{{!}} {{{name}}}
 +
{{!}} {{{address}}}
 +
{{!}} {{{country}}}
 +
}}
 +
|}

Revision as of 20:10, 25 October 2014

Display a map

{{#display_map: 40.8705292, -72.8840914}}


Result form

List of institutions

 Has nameHas url
Brookhaven National LabBrookhaven National Labhttp://www.bnl.gov/

List of institutions owned by DOE in default result format (table)

 Has urlHas country
Brookhaven National Labhttp://www.bnl.gov/USA

Same, but use an unordered list:

BNL is owned by DOE. That ownership in the previous sentence is a result of a query.

outline

 Has countryIs owned by
Brookhaven National LabUSADOE

external data

{{#get_db_data: db=collab |from=members_institution |limit=10 |where=1 |data=nick=short_name,name=full_name,country=country,address=address }}

Simple text

{{#for_external_table:* {{{nick}}}, {{{address}}}, {{{country}}}br>}}

As table:

Name Address Country{{#for_external_table:
{{{name}}} {{{address}}} {{{country}}}

}}