Difference between revisions of "Team:Cambridge-JIC/Wiki Design"
(2 intermediate revisions by 2 users not shown) | |||
Line 28: | Line 28: | ||
<p>To create a new page, simply type in the name of the page in your address bar, e.g. https://2015.igem.org/Team:YourTeam/OurNewPage, and edit it. MediaWiki (iGEM's website engine) will automatically create the page for you</p> | <p>To create a new page, simply type in the name of the page in your address bar, e.g. https://2015.igem.org/Team:YourTeam/OurNewPage, and edit it. MediaWiki (iGEM's website engine) will automatically create the page for you</p> | ||
<h3> Using HTML </h3> | <h3> Using HTML </h3> | ||
− | <p> To use html, simply wrap everything in html tags: <code><html>...</ | + | <p> To use html, simply wrap everything in html tags: <code><html>...</html></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>&amp;</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> | <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> | <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> | ||
Line 78: | Line 78: | ||
</center> | </center> | ||
<hr> | <hr> | ||
− | <p>When including fonts in style tags in your wiki, assign a family of fonts using < | + | <p>When including fonts in style tags in your wiki, assign a family of fonts using <code>font-family: font1, font2,...</code> where font1, font2,... is the preferential order of similar fonts to be displayed in case a certain font isn't supported by the user's browser.</p><br> |
<h3> Making Images with Inkscape </h3> | <h3> Making Images with Inkscape </h3> | ||
Line 90: | Line 90: | ||
<h2>User Experience </h2> | <h2>User Experience </h2> | ||
<h3>Responsive Design</h3> | <h3>Responsive Design</h3> | ||
− | <p>Most iGEM Wiki pages aren't made with a responsive design. This means that when viewing the pages on a phone or tablet, or by simply shrinking the browser window, the wiki loses its formatting. Our website has used various JQuery functions, CSS and Bootstrap, so that | + | <p>Most iGEM Wiki pages aren't made with a responsive design. This means that when viewing the pages on a phone or tablet, or by simply shrinking the browser window, the wiki loses its formatting. Our website has used various JQuery functions, CSS and Bootstrap, so that the same design will work and scale for any screen size - giving support for mobiles, tablets and desktops/laptops alike. |
<h3>Navigation</h3> | <h3>Navigation</h3> |
Latest revision as of 03:28, 19 September 2015