Team:Groningen/Templates/BasicWikiFAQ
From 2013.igem.org
Line 73: | Line 73: | ||
</nowiki> | </nowiki> | ||
</pre> | </pre> | ||
- |
Revision as of 13:42, 26 July 2013
Adding pages
There are two main ways of adding a page. The first is the most simple method where the context is directly added to the page itself. This if mostly used for very small pages (calendar entries). The second method is used for larger pages or pages with more advanced layouts. The reasoning for this it so keep the pages as readable as possible.
Adding a Calendar entry simple method.
1: First step is to simply select a data on the correct calender. Click on the date where you want to add an entry. You will see an empty page.
2: Now you have to insert the default page layout. Copy paste this code
<html> <head> <meta http-equiv="X-UA-Compatible" content="IE=EDGE" charset="utf-8" /> <link rel="stylesheet" href="https://2013.igem.org/Team:Groningen/CSS/DefaultPage?action=raw&ctype=text/css" type="text/css" /> </head> <body> </html> {{:Team:Groningen/Templates/DefaultHeader}}<html> <div class="colmask threecol"> <span class="navigation"> </html>{{:Team:Groningen/Templates/Navigationbar}}<html> </span> <span class="widgets"> </html>{{:Team:Groningen/Templates/facebook}}<html> </span> <div class="mainContent"> </div> </div> </html> {{:Team:Groningen/Templates/DefaultFooter}}<html> </body> </html>
3: Now find this part of the code:
<div class="mainContent"> </div>
This is the place where you can write your entry. And thus it should result into:
<div class="mainContent"> We had great fun in the lab! </div>
4: Do not forget to press save page!
Adding a page or advanced calendar entry
When adding a larger page a new page has to be created but first follow step 1 and 2 of the previous method.
3: Now in the location where you previously added the context you now add a link towards the new page. For example if you are creating a new page about our team activity then you add:
<div class="mainContent"> </html>{{:Team:Groningen/Navigation/TeamActivity}}<html> </div>