This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).
- Add a standard page.
- Add a protocol.
-
Add a notebook entry.
Go to the notebook tab and click on the correct date.
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' 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(){ | ||
- | + | window.location.href = "/wiki/index.php?title=Team:EPF-Lausanne/"+$("#pageTitle").val()+"&action=edit&preload=Team:EPF-Lausanne/Template/NewPage"; | |
- | return | + | return false; |
}); | }); | ||
</script> | </script> |
This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).