Difference between revisions of "Documentation:The Editor and data format"

Jump to navigation Jump to search
Line 139: Line 139:
Here is the text version that you can copy:
Here is the text version that you can copy:


<blockquote><poem><nowiki>
<blockquote><poem>
colors:
colors:
#2683a9
<nowiki>#2683a9</nowiki>
#ee9c42
<nowiki>#ee9c42</nowiki>
sources:
sources:
Hannibal
Hannibal
https://google.com|google
<nowiki>https://google.com|google</nowiki>
events:
events:
event or default color;;;;05.18.1978;;
event or default color;;;;05.18.1978;;
another event or default color;;;;1978;1982;
another event or default color;;;;1978;1982;
orange event;;;;1978;1982;1
orange event;;;;1978;1982;1
</nowiki></poem></blockquote>
</poem></blockquote>


This code produces these events on the timeline:
This code produces these events on the timeline:
Line 168: Line 168:
If you want the text in links to differ from the title of the page on Wikipedia or url for pages on other sites, specify the text after vertical line. This syntax can be seen in the example.
If you want the text in links to differ from the title of the page on Wikipedia or url for pages on other sites, specify the text after vertical line. This syntax can be seen in the example.


Notice, that once you have sources and or colors specified, you have to put ‘events:’  before the list of events.
Notice, that once you have sources and/or colors specified, you have to put ‘events:’  before the list of events.


After the list of events there should be a line: <code><nowiki>[[Category:History Timeline Page]]</nowiki></code>. It is used to easily download all the folder and layer pages. That's how I make backups. I made it so that without this line the layer or folder simply won't work. The good news is that this line is added into the Editor automatically for you. Just don't forget to copy it with all the other information when adding data to the server.
After the list of events there should be a line: <code><nowiki>[[Category:History Timeline Page]]</nowiki></code>. It is used to easily download all the folder and layer pages. That's how I make backups. I made it so that without this line the layer or folder simply won't work. The good news is that this line is added into the Editor automatically for you. Just don't forget to copy it with all the other information when adding data to the server.

Navigation menu