Table2Base: Difference between revisions
Jump to navigation
Jump to search
(clarification of task) |
Juha Villman (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{tool|moderator=Juha Villman | {{tool|moderator=Juha Villman}} [[category:extension]] | ||
'''Table2Base''' is an extension which enables direct upload of data from wikipages to Opasnet Base. | '''Table2Base''' is an extension which enables direct upload of data from wikipages to Opasnet Base. Data is displayed as a table in wikipage. | ||
==Usage== | |||
'''Example:''' | |||
<pre> | |||
<t2b index="Year,Country" unit="#" obs="Mortality"> | |||
2001|Finland|1000 | |||
2002|Finland|2000 | |||
2001|Sweden|900 | |||
2002|Sweden|800 | |||
</t2b> | |||
'''Displays:''' | |||
</pre> | |||
<t2b index="Year,Country" unit="#" obs="Mortality"> | |||
2001|Finland|1000 | |||
2002|Finland|2000 | |||
2001|Sweden|900 | |||
2002|Sweden|800 | |||
</t2b> | |||
==Some old thinking== | |||
Syntax which idea is based on: | Syntax which idea is based on: |
Revision as of 11:31, 17 November 2010
Moderator:Juha Villman (see all) |
|
Upload data
|
Table2Base is an extension which enables direct upload of data from wikipages to Opasnet Base. Data is displayed as a table in wikipage.
Usage
Example:
<t2b index="Year,Country" unit="#" obs="Mortality"> 2001|Finland|1000 2002|Finland|2000 2001|Sweden|900 2002|Sweden|800 </t2b> '''Displays:'''
Obs | Year | Country | Mortality |
---|---|---|---|
1 | 2001 | Finland | 1000 |
2 | 2002 | Finland | 2000 |
3 | 2001 | Sweden | 900 |
4 | 2002 | Sweden | 800 |
Some old thinking
Syntax which idea is based on:
Year | Country | Mortality | Description |
---|---|---|---|
2000 | Finland | 40000 | WHO mortality data |
2001 | Finland | 50000 | WHO mortality data |
- Indexes:
- year
- country
- result
- mortality
Possible solutions:
- we should not use exactly the same syntax as wikipages
- tag or parser?
- ←--1: . are explanation and observation really necessary? Could it look more like this? --13:59, 6 October 2010 Juha Villman (type: truth; paradigms: science: defence)
- ⇤--2: . The title explanation is not necessary. Also the title for observations is only necessary if there are more than one observation columns. For example the data below could be in a format where there are three columns (Country, 2000, and 2001) and only one row for the data. In this case, it is necessary to tell that the heading for the two observation columns is Year, because this heading is used as index name (with locations 2000 and 2001). But is it true that the observation index name does not need to show up as a heading in the table. I changed the Template:Datum list accordingly. --Jouni 15:52, 7 October 2010 (UTC) (type: truth; paradigms: science: attack)
Year | Country | Mortality | Description |
---|---|---|---|
2000 | Finland | 40000 | WHO mortality data |
2001 | Finland | 50000 | WHO mortality data |