Customised templates: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
For example, as at 13 May 2014, the standard named templates from Jacques Desroches (see [http://weatherbyyou.com English language site] and [http://meteoduquebec.com French language site]) require '''UTF-8 encode''' within the web settings frame on ''Sites/Options'' tab of internet settings to be deselected. i.e. his pages use 'iso-8859-1' encoding.
 
=== HTML 5 - a very quick quide to structure ===
It is possible to take the standard Cumulus web templates and customise these into totally new ones to your own requirements. A basic understanding of HTML is useful.
 
=== Standard HTML 5 start for a Cumulus template ===
 
A Cumulus template written in HTML 5 requires a simple start to the file:
<pre>
<body> <!-- This defines the start of what the browser is to display in its window -->
</pre>
The main part of the page (you can base that on what you can see in the closest standard template to what you are trying to achieve) goes herenext.
 
=== Navigation Links ===
You then need to surround the navigation bar links
On a standard Cumulus page there are some HTML headings and then a HTML table ending with a way to select another Cumulus page (a set of 'anchor' links).
You need to surround the navigation bar links with suitable HTML elements (see standard templates for examples, often they are in a table cell defined by <td colspan="X"> and </td> where X is set to the number of cells in other rows).
<pre>class="td_navigation_bar">:<a href="index.htm">now</a>::<a href="gauges.htm">gauges</a>::<a href="today.htm">today</a>::<a
href="yesterday.htm">yesterday</a>::<a href="thismonth.htm">this&nbsp;month</a>::<a href="thisyear.htm">this&nbsp;year</a>::<a
href="record.htm">records</a>::<a href="monthlyrecord.htm">monthly&nbsp;records</a>::<a href="trends.htm">trends</a>:<#forum><#webcam></pre>with the relevant HTML structure (see standard templates for examples, often they are in a table cell defined by <td colspan="X"> and </td> where X is set to the number of cells in other rows.
Note if you have other pages on your web site, you might wish to add a link to a 'Home' page, or you might add extra pages (such as the [[SteelSeries_Gauges|steel series gauges]], the [[AnnualDataSummary|daily summary]], [[Highcharts_-_Realtime|Extended graphs]])
 
=== Standard Finish ===
All templates should have this standard finish to a Cumulus style template:
<pre>
5,838

edits

Navigation menu