Team:EPF-Lausanne/AddPage

From 2012.igem.org

(Difference between revisions)
Line 6: Line 6:
<ul>
<ul>
   <li>
   <li>
-
Add a standard page.
+
Add a standard page.<br/>
-
<form action='/wiki/index.php' method='GET' id='newPageForm'>
+
Team:EPF-Lausanne/<input type='text' id='pageTitle' value='' /><input type='button' id='pageButton' value='Create' />
-
Team:EPF-Lausanne/<input type='text' id='pageTitle' value='' />
+
<script type='text/javascript'>EPFL.registerNewPageButton("#pageTitle", "#pageButton", "Team:EPF-Lausanne/", "Team:EPF-Lausanne/Template/NewPage");</script>
-
<input type='hidden' name='preload' value='Team:EPF-Lausanne/Template/NewPage' />
+
-
<input type='submit' value='Create' />
+
-
</form>
+
-
<script type='text/javascript'>
+
-
$("#newPageForm").submit(function(){
+
-
window.location.href = "/wiki/index.php?title=Team:EPF-Lausanne/"+$("#pageTitle").val()+"&action=edit&preload=Team:EPF-Lausanne/Template/NewPage";
+
-
return false;
+
-
});
+
-
</script>
+
   </li>
   </li>
   <li>
   <li>

Revision as of 22:38, 4 June 2012

This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).

  • Add a standard page.
    Team:EPF-Lausanne/
  • Add a protocol.
    Team:EPF-Lausanne/Protocol/
  • Add a notebook entry.
    Go to the notebook tab and click on the correct date.