This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).
- Add a standard page.
- Add a protocol.
Line 7: | Line 7: | ||
<li> | <li> | ||
Add a standard page. | Add a standard page. | ||
- | <form action='/wiki/index.php' method='GET' id=' | + | <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'> | ||
- | $("# | + | $("#newPageForm").submit(function(){ |
$("#hiddenTitle").val("Team:EPF-Lausanne/"+$("#title").val()); | $("#hiddenTitle").val("Team:EPF-Lausanne/"+$("#title").val()); | ||
return true; | return true; |
This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).