Team:ETH Zurich/Tools/Automated Wiki

From 2008.igem.org

(Difference between revisions)
m
 
(62 intermediate revisions not shown)
Line 4: Line 4:
</center>
</center>
</html>
</html>
-
{|style="background:#C6E2FF ; border:3.5px solid #60AFFE; padding: 1em; margin: auto ; width:98.5% "
+
{|style="background:#FFFFFF ; border:3.5px solid #60AFFE; padding: 1em; margin: auto ; width:98.5% "
|-
|-
|
|
<!-- PUT THE PAGE CONTENT AFTER THIS LINE. THANKS :) -->
<!-- PUT THE PAGE CONTENT AFTER THIS LINE. THANKS :) -->
== Motivation ==
== Motivation ==
-
At the beginning of our project planning phase we where also thinking on how to manage the wiki.
+
At the beginning of our project planning phase we were thinking about how to deal with the wiki.
-
One major shortcoming showed up when we where browsing the wikis of previous Igem Competitions - a lot of them simply didnt work anymore.<br>
+
One major shortcoming showed up when we were browsing the wikis of previous iGEM competitions - a lot of them simply didn't work anymore.<br>
-
The problem that causes this is, that big parts of the old wikis are actully stored on external servers. E.g JavaScript Menus that are actully stored on Students private Homepages.<br>
+
 
-
A good example for this is actully e.g the last years ETH Team wiki:
+
The problem is that large parts of the old wikis are stored on external servers - e.g. JavaScript menus that are stored on students' private homepages.<br>
 +
A good example for this is last year's ETH team wiki:
 +
 
[[Image:Javascript.JPG]]
[[Image:Javascript.JPG]]
-
As you can see, the .js file is stored at an external server, which means as soon as for any reason this file is gone the whole wiki page wont work anymore, because the navigation is gone.<br>
+
 
-
And if you browse through wikis of even earlier years, you can see that this is already happening to a lot of pages.
+
As you can see, the .js file is stored on an external server. As soon as this file is gone, the whole wiki page won't work anymore, because the navigation is gone. And if you browse through wikis of even earlier years, you can see that this has already happened to a lot of pages.
-
=== This years situation ===
+
=== This year's situation ===
-
When we then started to think of ways how to design the wiki it turned out that apparently the persons responsible for this wiki are aware of the situation, cause embedding any external content into a wiki page seemed not to work anymore.<br>
+
When we then started to think of ways how to design the wiki, it turned out that the people responsible for this wiki are aware of the situation - embedding external content into a wiki page did not seem to work anymore.<br>
-
While this solves the problem of missing content, it arrises a new problem. Wiki Syntax is very simple so that it is easy to handle. While a benefit in first editing pages, it brings with it a big lack of flexibility in design and a lot of work if you would like to still have nice design.
+
 
-
The wiki syntax makes it harder to devide design from content like for example it is the case with our wiki page now.
+
While this solved the problem of missing content, it gave rise to a new problem. Wiki syntax is very simple and therefore easy to handle. While this appears as a benefit when editing pages, it goes along with a lack of flexibility concerning design- or a lot of work if you want to have a nice design anyways. The wiki syntax makes it harder to separate design and content - like it is the case for our wiki page right now.
-
Since we have a lot of people beeing responsable for the content while only a few manage the design we agreed on editing pages like this: <br><br>
+
Since we have a lot of people responsible for the content and only few work on the design, we agreed on editing pages like this: <br><br>
<center>
<center>
<nowiki>
<nowiki>
Line 32: Line 34:
</nowiki>
</nowiki>
</center><br><br>
</center><br><br>
 +
=== How to overcome this situation ===
=== How to overcome this situation ===
-
While the reasons why external content shouldnt be allowed on the wiki where obvious, we still didnt want to settle with "just" doing it with regular wiki editing.<br>
+
While the reasons why external content should not be allowed on the wiki were obvious, we still didn't want to settle with "just" using the regular wiki editing. Therefore, we had the idea to use some kind of software to overcome the shortcomings listed above. We wanted to introduce a "middle man" who performs editing tasks for the user and create a division of content and syntax while maintaining wiki only syntax on the MIT wiki site.
-
So the idea was born to use some kind of Software to overcome this shortcomings by introducing a middle man who overs easy editing for the user and a devision of content and syntax while still maintaining wiki only syntax on the MIT wiki site.
+
 
 +
== The automated wiki ==
 +
=== Software / Progamming Language ===
 +
The automated wiki is written in C# as a webapplication that needs an IIS server to run on.<br>
 +
As a database it uses Mysql.<br>
 +
The software can be divided into three major parts:
 +
 
 +
=== User Interface ===
 +
[[Image:Auto wiki shot.png|left|thumb|250px|Page editing with the automated wiki]]The user interface uses the [http://www.fckeditor.net/demo FCKEditor Tool] as an input interface. You can test it [http://www.fckeditor.net/demo here] and see what it can do.<br>
 +
A short list of benefits compared to regular wiki editing:
 +
*regular users don't have to deal with any wiki syntax.
 +
*"What you see is what you get" editor.
 +
** Drag and drop available
 +
** Image editing in place (drag and drop or via properties dialog)
 +
** Formating via pointing
 +
*Pasting and converting text from Word or HTML pages!
 +
<br clear="all" />
 +
[[Image:Image_upload.PNG|left|thumb|250px|Selecting/uploading images with automated wiki]]
 +
[[Image:Image_editing.PNG|left|thumb|250px|Drag and drop editing/resizing images with automated wiki]]
 +
<br clear="all" />
 +
 
 +
=== Parsing Sites ===
 +
At this point we stopped developing the automated wiki. This part is mainly responsible for adding the layout to the text.<br>
 +
To achieve this, a layout consisting of a regular html page is read out of the database containing various parsing tags.<br>
 +
For every parsing tag the program then enters the correct page content.<br>
 +
That way, the menu or a layout image that is placed on every page can be edited in one place and then updated on every other page.<br>
 +
 
 +
Our plan was to also parse the text for key words like e.g papers etc. and automatically create the correct links on the wiki.
 +
 
 +
=== Writing into MIT Wiki ===
 +
[[Image:Menu_db.JPG|left|thumb|500px|Menu out of Mysql Database]]Finally after all the pages are generated, those which have been changed get updated at the MIT wiki.<br>
 +
To do this the application simply mimics a regular user edit by logging in with a regular user account and editing page per page.
-
== The Automated Wiki ==
+
To see an example of a page generated with the automated wiki, click [https://2008.igem.org/Team:ETH_Zurich/Wet_Lab/Protocoll here].
-
[[Image:Menu_db.JPG|center|thumb|500px|Menu out of Mysql Database]]
+
<br clear="all" />
-
[[Image:Auto wiki shot.png|center|thumb|500px|Page editing with the Automated Wiki]]
+
-
For an example of an Page generated with the Automated Wiki click [https://2008.igem.org/Team:ETH_Zurich/Wet_Lab/Protocoll here]
+
== Why we didn't use it in the end ==
-
== Why we didnt use it in the end ==
+
There were two reasons why we didn't use the automated wiki in the end:
-
There where two reasons why we didnt use the Automated Wiki in the end.
+
*Within the team not everyone felt comfortable with the idea that we need an extra tool for editing the wiki, because this also brings an additional source for errors/complications.
-
*Within the team not everyone felt compfortable with the idea that we need an extra tool for editing the wiki, because this also brings an additional source of error/complication.
+
*For some reason, the MIT wiki team decided to loosen up the allowed syntax again, so now we are back at the situation that everything - from html to javascript and also flash - is allowed. Along with these changes, also the main reason why we introduced the automated wiki in the first place was gone...
-
*For some reason the MIT wiki team decided to loosen up the allowed syntax again and now we are back at the situation that everything from all the html over javascript, up to flash is allowed. And with that the main reason why we introduced the automated wiki in the first place is gone.
+
== Download ==
== Download ==
[[Media:ETH Auto wiki.zip]]
[[Media:ETH Auto wiki.zip]]
-
Keep in mind that the development of this Tool stopped in the middle. But maybe you can use some ideas/parts of it.
+
Keep in mind that the development of this tool stopped in the middle of the project. However, you might be able to use some ideas/parts of it.
<!-- PUT THE PAGE CONTENT BEFORE THIS LINE. THANKS :) -->
<!-- PUT THE PAGE CONTENT BEFORE THIS LINE. THANKS :) -->
|}
|}

Latest revision as of 05:39, 30 October 2008

Contents

Motivation

At the beginning of our project planning phase we were thinking about how to deal with the wiki. One major shortcoming showed up when we were browsing the wikis of previous iGEM competitions - a lot of them simply didn't work anymore.

The problem is that large parts of the old wikis are stored on external servers - e.g. JavaScript menus that are stored on students' private homepages.
A good example for this is last year's ETH team wiki:

Javascript.JPG

As you can see, the .js file is stored on an external server. As soon as this file is gone, the whole wiki page won't work anymore, because the navigation is gone. And if you browse through wikis of even earlier years, you can see that this has already happened to a lot of pages.

This year's situation

When we then started to think of ways how to design the wiki, it turned out that the people responsible for this wiki are aware of the situation - embedding external content into a wiki page did not seem to work anymore.

While this solved the problem of missing content, it gave rise to a new problem. Wiki syntax is very simple and therefore easy to handle. While this appears as a benefit when editing pages, it goes along with a lack of flexibility concerning design- or a lot of work if you want to have a nice design anyways. The wiki syntax makes it harder to separate design and content - like it is the case for our wiki page right now. Since we have a lot of people responsible for the content and only few work on the design, we agreed on editing pages like this:

<!-- PUT THE PAGE CONTENT AFTER THIS LINE. THANKS :) -->
your text goes here
<!-- PUT THE PAGE CONTENT BEFORE THIS LINE. THANKS :) -->



How to overcome this situation

While the reasons why external content should not be allowed on the wiki were obvious, we still didn't want to settle with "just" using the regular wiki editing. Therefore, we had the idea to use some kind of software to overcome the shortcomings listed above. We wanted to introduce a "middle man" who performs editing tasks for the user and create a division of content and syntax while maintaining wiki only syntax on the MIT wiki site.

The automated wiki

Software / Progamming Language

The automated wiki is written in C# as a webapplication that needs an IIS server to run on.
As a database it uses Mysql.
The software can be divided into three major parts:

User Interface

Page editing with the automated wiki
The user interface uses the [http://www.fckeditor.net/demo FCKEditor Tool] as an input interface. You can test it [http://www.fckeditor.net/demo here] and see what it can do.

A short list of benefits compared to regular wiki editing:

  • regular users don't have to deal with any wiki syntax.
  • "What you see is what you get" editor.
    • Drag and drop available
    • Image editing in place (drag and drop or via properties dialog)
    • Formating via pointing
  • Pasting and converting text from Word or HTML pages!


Selecting/uploading images with automated wiki
Drag and drop editing/resizing images with automated wiki


Parsing Sites

At this point we stopped developing the automated wiki. This part is mainly responsible for adding the layout to the text.
To achieve this, a layout consisting of a regular html page is read out of the database containing various parsing tags.
For every parsing tag the program then enters the correct page content.
That way, the menu or a layout image that is placed on every page can be edited in one place and then updated on every other page.

Our plan was to also parse the text for key words like e.g papers etc. and automatically create the correct links on the wiki.

Writing into MIT Wiki

Menu out of Mysql Database
Finally after all the pages are generated, those which have been changed get updated at the MIT wiki.

To do this the application simply mimics a regular user edit by logging in with a regular user account and editing page per page.

To see an example of a page generated with the automated wiki, click here.

Why we didn't use it in the end

There were two reasons why we didn't use the automated wiki in the end:

  • Within the team not everyone felt comfortable with the idea that we need an extra tool for editing the wiki, because this also brings an additional source for errors/complications.
  • For some reason, the MIT wiki team decided to loosen up the allowed syntax again, so now we are back at the situation that everything - from html to javascript and also flash - is allowed. Along with these changes, also the main reason why we introduced the automated wiki in the first place was gone...

Download

Media:ETH Auto wiki.zip Keep in mind that the development of this tool stopped in the middle of the project. However, you might be able to use some ideas/parts of it.