Template:Baum: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
(Undo revision 6663 by Documentation (talk)) Tag: Undo |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
| → | | → | ||
| ! | | ! | ||
|- | |||
| \n | |||
| ↵ | |||
|} | |} | ||
Line 25: | Line 28: | ||
<includeonly> | <includeonly> | ||
{{#cargo_store:_table=Baum}} | {{#cargo_store:_table=Baum}} | ||
</includeonly> | </includeonly><noinclude> | ||
Abruf der Tabelle als CSV: | |||
{{#cargo_query: table=Baum | |||
| fields = Zeile | |||
| format = csv | |||
| filename= Baum.csv | |||
| limit=99999 | |||
}} | |||
Prepare this table with a script like | |||
<syntaxhighlight lang=bash> | |||
sed -i.bak -e 's/(/{/g' Baum.csv | |||
sed -i -e 's/)/}/g' Baum.csv | |||
sed -i -e 's/+/#/g' Baum.csv | |||
sed -i -e 's/!/|/g' Baum.csv | |||
sed -i '1d' Baum.csv | |||
sed -i -e ':a;N;$!ba;s/\n//g' Baum.csv | |||
sed -i -e 's/↵/\n/g' Baum.csv | |||
echo | |||
</syntaxhighlight> | |||
[[category:template]] | |||
</noinclude> |
Latest revision as of 14:07, 15 July 2022
This template is supposed to support the display of the XML tree.
Substitution:
{ | → | ( |
} | → | ) |
# | → | + |
| | → | ! |
\n | ↵ |
This template defines the table "Baum". View table.
Abruf der Tabelle als CSV:
View CSV
Prepare this table with a script like
sed -i.bak -e 's/(/{/g' Baum.csv sed -i -e 's/)/}/g' Baum.csv sed -i -e 's/+/#/g' Baum.csv sed -i -e 's/!/|/g' Baum.csv sed -i '1d' Baum.csv sed -i -e ':a;N;$!ba;s/\n//g' Baum.csv sed -i -e 's/↵/\n/g' Baum.csv echo