Team:EPF-Lausanne/AddPage

From 2012.igem.org

(Difference between revisions)
Line 5: Line 5:
<html>
<html>
<ul>
<ul>
 +
  <li>
 +
Add a standard page.
 +
<form action='/wiki/index.php' method='GET' id='newProtocolForm'>
 +
Team:EPF-Lausanne/<input type='text' id='title' value='' />
 +
<input type='hidden' id='hiddenTitle' name='title' />
 +
<input type='hidden' name='action' value='edit' />
 +
<input type='hidden' name='preload' value='Team:EPF-Lausanne/Template/NewPage' />
 +
<input type='submit' value='Create' />
 +
</form>
 +
<script type='text/javascript'>
 +
$("#newProtocolForm").submit(function(){
 +
$("#hiddenTitle").val("Team:EPF-Lausanne/"+$("#title").val());
 +
return true;
 +
});
 +
</script>
 +
  </li>
   <li>
   <li>
Add a protocol.
Add a protocol.
-
<form action='/index.php' method='GET' id='newProtocolForm'>
+
<form action='/wiki/index.php' method='GET' id='newProtocolForm'>
Team:EPF-Lausanne/Protocol/<input type='text' id='title' value='' />
Team:EPF-Lausanne/Protocol/<input type='text' id='title' value='' />
<input type='hidden' id='hiddenTitle' name='title' />
<input type='hidden' id='hiddenTitle' name='title' />

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