Team:EPF-Lausanne/AddPage

From 2012.igem.org

(Difference between revisions)
Line 7: Line 7:
   <li>
   <li>
Add a standard page.
Add a standard page.
-
<form action='/wiki/index.php' method='GET' id='newProtocolForm'>
+
<form action='/wiki/index.php' method='GET' id='newPageForm'>
Team:EPF-Lausanne/<input type='text' id='title' value='' />
Team:EPF-Lausanne/<input type='text' id='title' value='' />
<input type='hidden' id='hiddenTitle' name='title' />
<input type='hidden' id='hiddenTitle' name='title' />
Line 15: Line 15:
</form>
</form>
<script type='text/javascript'>
<script type='text/javascript'>
-
$("#newProtocolForm").submit(function(){
+
$("#newPageForm").submit(function(){
$("#hiddenTitle").val("Team:EPF-Lausanne/"+$("#title").val());
$("#hiddenTitle").val("Team:EPF-Lausanne/"+$("#title").val());
return true;
return true;

Revision as of 20:15, 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/