Template talk:EE BASE classnav
BEFORE USING THIS TEMPLATE
editcopy this to address bar
- change the NUMBERHERE to the class number ie EE111 would be _111_
- change the CLASSNAMEHERE to the class name
http://en.wikiversity.org/w/index.php?title=Template:EE_NUMBERHERE_CLASSNAMEHERE_classnav&action=edit
- COPY the code in the box below to that new template
- the link style for lectures is most desirable as it prevents pages from overlapping
- Don't just make a ambiguous class page or lecture page such as "Analog electronics" insted alwase use "EE_113_Analog electronics"
as there will likely be more than 1 analog electronics class. the same for "Final Exam" vr "EE_???_ClassNameHere/Final Exam".
<includeonly> <table style="background:#f9f9f9; border: thin solid #aaaaaa;" class="navbox collapsible nowraplinks"> <tr><th style="text-align:center;width:100%;">EE111 </th></tr> <tr> <td> {{#if:{{{1}}}|*| * }}[[Topic:Electronic Engineering#Courses|Electronic Engineering]] {{#if:{{{1}}}|**| * }}[[EE_???_ClassNameHere]] {{#if:{{{1}}}|***| * }}[[EE_???_ClassNameHere/Lecture ?, lectureNameHere]] {{#if:{{{1}}}|***| * }}[[EE_???_ClassNameHere/Lecture ?, lectureNameHere]] {{#if:{{{1}}}|**| * }}[[EE_???_ClassNameHere/Mid-term Exam]] {{#if:{{{1}}}|***| * }}[[EE_???_ClassNameHere/Lecture ?, lectureNameHere]] {{#if:{{{1}}}|***| * }}[[EE_???_ClassNameHere/Lecture ?, lectureNameHere]] {{#if:{{{1}}}|**| * }}[[EE_???_ClassNameHere/Final Exam]] </td> </tr> </table> </includeonly> <noinclude> see [[Template_talk:EE_BASE_classnav]] for instructions [[Category:Template]]</noinclude>
Then edit that page adding the relevant links in using the info below to help you. Eadthem 06:06, 1 October 2007 (UTC)
HOW TO USE
editall classes for the digital electronics section can now use a common template for headers footers and the main page
for headers {{ee111_digital_classnav|*}}
for footers {{ee111_digital_classnav|}}
Eadthem 06:15, 29 September 2007 (UTC)
Usage of this template
editi will describe the parts you can edit everything else must remain static
<includeonly>
<table style="background:#f9f9f9; border: thin solid #aaaaaa;" class="navbox collapsible nowraplinks">
<tr><th style="text-align:center;width:100%;">EE111
</th></tr>
<tr>
<td>
- background:#f9f9f9; this sets the background color
- thin solid #aaaaaa; describes the border thin|medeum|thick solid|dashed bordercolor
- EE111 this could be replaced with another title
{{#if:{{{1}}}|*|<nowiki> * </nowiki>}}[[Topic:Electronic Engineering]]
- |*| contains the number of * to place before the link for vertical style
- <nowiki> * </nowiki> contains the separator for horizontal mode
- [[Topic:Electronic Engineering]] and the link to the page
- just add more of them for every link you want
example of ussage
edit
{{ee111_digital_classnav|*}} vertical
{{ee111_digital_classnav|}} horazontal
code
edit
<includeonly>
<table style="background:#f9f9f9; border: thin solid #aaaaaa;" class="navbox collapsible nowraplinks">
<tr><th style="text-align:center;width:100%;">EE111
</th></tr>
<tr>
<td>
{{#if:{{{1}}}|*|<nowiki> * </nowiki>}}[[Topic:Electronic Engineering]]
{{#if:{{{1}}}|**|<nowiki> * </nowiki>}}[[EE 111 Digital Electronics]]
{{#if:{{{1}}}|***|<nowiki> * </nowiki>}}[[EE_111_Digital_Electronics/Lecture_6%2C_Flip-flops]]
</td>
</tr>
</table>
</includeonly>
only use includeonly tags to define what code shows up when a template is called.
vertical example
edit{{ee111_digital_classnav|*}}
EE111 |
---|
horazontal example
edit{{ee111_digital_classnav|}}
EE111 |
---|
* Topic:Electronic Engineering * EE 111 Digital Electronics * EE_111_Digital_Electronics/Lecture_6,_Flip-flops |
Eadthem 06:06, 1 October 2007 (UTC)Eadthem 19:41, 29 September 2007 (UTC)