Team:Evry/wiki-guidelines

From 2013.igem.org

Revision as of 10:28, 22 September 2013 by Rasend (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Iron coli project

In order to keep our wiki clean please follow these guidelines when writing HTML code

How create a new page

Open a new page with the name of url choosen, then click on onglet create in the top

HTML tag and template

First of all, specify the template and put the html tag around your document:
{{:Team:Evry/template_classic}}

<html>

<div id="mainTextcontainer">

your page goes here

</div>
</div>
</html>

{{:Team:Evry/foot}}

Titles

To put a title use the h1,h2,h3 tags:
<h1> put your title here </h1>

Examples

h1 title

h2 title

h3 title

New line

If you want to end the current line use the br tag:
<br/>

Example

line1
line2

Alignment

To left, center or right alignment

Left is default value

Center

<div align="center">Here the text</div>

Right

<div align="right">Here the text</div>

Justify

<div align="justify">Here the text</div>

Example

Left text (it's a marxist text)
I'm a center text
Right, i'm a right text
I'm justify my work with this justify text

Bold/Italic/Underline

Use the i tag to put your text in italic:
<i>text in italic</i>
Use the b tag to put your text in bold:
<b>text in bold</b>
Use the u tag to underline your text :
<u>text undelined</u>

Example

coucou <- italic
coucou <- bold
coucou <- underlined

Lists

Dotted

Use the ul to create a list and the li tag to add an item:
<ul>
<li> item 1 
<li> item 2 
..
</ul>

Example

  • item 1
  • item 2
  • ..

Numbered

Use the ol to create a list and the li tag to add an item:
<ol>
<li> item 1 
<li> item 2 
..
</ol>

Example

  1. item 1
  2. item 2
  3. ..

Arrays

  1. Use the table tag to create an array;
  2. Inside the table tag use the tr tag to create a line;
  3. Inside the tr tag use the td tag to create a new cell.
<table>
<tr>
  <td>cell1</td>
  <td>cell2</td>
  ...
</tr>
<tr>
...
</tr>
...
</table>

Example

tata toto
titi tutu

Borders

To add border to an array use the attribute border="1":
<table border="1">
...
</table>

Example

tata toto
titi tutu

Links

To add a link use the a tag:
<a href="url to link">link name</a>

Example

Go checkout our wiki.

Images

The two steps to add an image are:
  1. Upload the image file using this page:here
  2. Use the img tag
<img src="localisation of the image" alt="text to print if image not found" />

Examples

  • Url of the image: https://static.igem.org/mediawiki/2013/c/c9/IronMinion.jpg
  • The image:
Iron minion

Image avec légende

Pour ajouter une image avec une légende, utilisez le code suivant :

<div class="center">
 <div class="thumb tnone">
  <div class="thumbinner" style="width:502px;">
   <a href="URL IMAGE" class="image">
    <img alt="IMAGE" src="URL IMAGE" width="500px;" class="thumbimage"/>
   </a>
   <div class="thumbcaption">
    <div class="magnify">
     <a href="URL IMAGE" class="internal" title="Enlarge">
      <img src="/wiki/skins/common/images/magnify-clip.png" width="15" height="11" alt="Symbol"/>
     </a>
    </div>
    <center>Figure X: LEGEND HERE</center>
   </div>
  </div>
 </div>
</div>
Remarques :
  • La première div peut être changée pour aligner l'image à l'endroit souhaité.
  • Ajouter +2 à la taille du cadre par rapport à celle de l'image (ici cadre=502px/image=500px)
  • Le lien "/wiki/skins..." correspond au symbole d'agrandissement à droite de la légende.

Examples

Figure 1: Iron Minion.

Image avec légende et texte aligné (code plus propre)

  <div class="captionedPicture" style="width:30%;float:left;">
   <a title="Nom Lien" href="URL image">
    <img alt="Nom Lien" src="URL image" class="Picture"/>
   </a>
   <div class="caption">
     <b>Figure 1:</b> Légende ici.
   </div>
  </div>
  <p style="padding-top:1%;">Texte aligné par rapport à l'image </p>
  <div style="clear: both;"></div>
  <p>Texte après l'image</p>

Détails du code

Ce qui est en gras doit absolument être modifié en fonction de votre lien.

Pour ce qui est en orange:
  1. width: 30% : changer le pourcentage pour moduler la taille du cadre, l'image s'adapte toute seul à la nouvelle taille
  2. float: left : modifier par right pour que l'image soit à droite
  3. La dernière ligne permet d'éviter les débordements, le texte suivant sera sous l'image. Tant que vous n'avez pas mis cette ligne, toutes les balises p que vous utiliserez seront à droite de l'image jusqu'à la limite de place disponible.

Examples

Iron minion
Figure 1: Iron minion à la rescousse.

Les minions c'est trop trop trop trop mignon.

J'aime les licornes et leurs jolis cornes
Elles ont un pelage semblable aux nuages
Elles sont très gentils avec leurs amies
Même si elles pratiquent la sodomie