Team:EPF-Lausanne/AddPage

From 2012.igem.org

(Difference between revisions)
Line 9: Line 9:
<form action='/wiki/index.php' method='GET' id='newPageForm'>
<form action='/wiki/index.php' method='GET' id='newPageForm'>
Team:EPF-Lausanne/<input type='text' id='pageTitle' value='' />
Team:EPF-Lausanne/<input type='text' id='pageTitle' value='' />
-
<input type='hidden' id='pageHiddenTitle' name='title' />
 
-
<input type='hidden' name='action' value='edit' />
 
<input type='hidden' name='preload' value='Team:EPF-Lausanne/Template/NewPage' />
<input type='hidden' name='preload' value='Team:EPF-Lausanne/Template/NewPage' />
<input type='submit' value='Create' />
<input type='submit' value='Create' />
Line 16: Line 14:
<script type='text/javascript'>
<script type='text/javascript'>
$("#newPageForm").submit(function(){
$("#newPageForm").submit(function(){
-
$("#pageHiddenTitle").val("Team:EPF-Lausanne/"+$("#pageTitle").val());
+
window.location.href = "/wiki/index.php?title=Team:EPF-Lausanne/"+$("#pageTitle").val()+"&action=edit&preload=Team:EPF-Lausanne/Template/NewPage";
-
return true;
+
return false;
});
});
</script>
</script>

Revision as of 22:33, 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.