Difference between revisions of "Team:Cambridge-JIC/Wiki Design"
Simonhkswan (Talk | contribs) |
|||
Line 25: | Line 25: | ||
<div class="slide" style="min-height:0px"> | <div class="slide" style="min-height:0px"> | ||
<div style="width: 100%; padding:0% 10%; margin: 30px 0px;color:#fff"> | <div style="width: 100%; padding:0% 10%; margin: 30px 0px;color:#fff"> | ||
+ | <h3> Creating new pages </h3> | ||
+ | <p>To create a new page, simply type in the name of the page in your address bar, e.g. <code>Team:YourTeam/OurNewPage</code>, and edit it. MediaWiki (iGEM's website engine) will automatically create the page for you</p> | ||
+ | <h3> Using HTML </h3> | ||
+ | <p> To use html, simply wrap everything in html tags: <code><html>...</code></code>. It's useful to note that these html tags will <em>not</em> actually appear in your page source—they just tell MediaWiki to output the html within directly, without modification (almost; lone ampersands will be replaced with <code>&</code>, which won't be a problem unless they're in some javascript code. If this is a problem, try externalising your JS code, see below for instructions.) </p> | ||
+ | <h3> Using Templates </h3> | ||
+ | <p>Using templates helps to avoid typing in the same html again and again, and also allows you to make changes in one place that apply to all your pages. We have two templates we use, <code>Team:Cambridge/Templates/Menu</code> and <code>Team:Cambridge/Templates/Footer</code>. These templates are created as normal new pages, and are then directly <em>included</em> in your page using MediaWiki syntax:</p> | ||
+ | <code>{{:Team:YourTeam/Templates/OurHeader}} | ||
+ | <html>Our page</html> | ||
+ | {{:Team:YourTeam/Templates/OurFooter}}</code> | ||
+ | <p>Note carefully the above notice regarding the function of the html tags - this means that your template can end without closing all its tags and it won't mess up your page! For example, you can wrap your site in a container div by opening the tag in your header template, and then closing it in your footer template.</p> | ||
<h3> Using CSS and JS </h3> | <h3> Using CSS and JS </h3> | ||
<p>As iGEM teams are unable to upload and refer to CSS and Javascript files, styling your webpages takes a different method to the standard way. Instead, we have uploaded pages that end in _CSS and _JS that are linked in the html of our other pages. To use a page as a file, simply put the code in HTML and refer to the URL with:</p> | <p>As iGEM teams are unable to upload and refer to CSS and Javascript files, styling your webpages takes a different method to the standard way. Instead, we have uploaded pages that end in _CSS and _JS that are linked in the html of our other pages. To use a page as a file, simply put the code in HTML and refer to the URL with:</p> | ||
Line 72: | Line 82: | ||
<p>Almost all of our images have been made on the program Inkscape. Inkscape is a free multi platform graphic designing software which is extremely easy to pick up and make graphics with. Three of our team learned the basics over night and created all of the back-panels of this website subsequently with it.</p> | <p>Almost all of our images have been made on the program Inkscape. Inkscape is a free multi platform graphic designing software which is extremely easy to pick up and make graphics with. Three of our team learned the basics over night and created all of the back-panels of this website subsequently with it.</p> | ||
− | <p> Check out Inkscape <a style="color | + | <p> Check out Inkscape <a style="color:#123a68;" href="//inkscape.org"><u>here</u></a>.</p> |
</div></div></section> | </div></div></section> | ||
<section style="background-color:#123a68"> | <section style="background-color:#123a68"> |
Revision as of 00:25, 19 September 2015