External Data

Values in a wiki page

The following example shows the values of a wiki page with csv extension.

  1. Create the page. In this wiki, we created Manual:Extension/External Data/example components.csv. It contains comma-separated values:
    component,type,weight
    Valve,mechanical,1.2
    Sensor,electronic,0.3
    Pump,mechanical,4.5
    
  2. On another wiki page, insert this parser function #for_external_table
{{#for_external_table:<nowiki/>
* {{{component}}} – {{{type}}}, {{{weight}}} kg
| source=web
| url={{fullurl:Manual:Extension/External Data/example components.csv|action=raw}}
| format=csv
| data=component=component, type=type, weight=weight
}}

The output is:{{#for_external_table:

  • {{{component}}} – {{{type}}}, {{{weight}}} kg

| source=web | url=https://en.wiki.bluespice.com/w/index.php?title=Manual:Extension/External_Data/example_components.csv&action=raw | format=csv | data=component=component, type=type, weight=weight }}



PDF exclude - start

To submit feedback about this documentation, visit our community forum.

PDF exclude - end