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 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' /> |
This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).