Template talk:Ee111 digital classnav
Add topicHOW TO USE
[edit source]all 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
[edit source]i 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 source]
{{ee111_digital_classnav|*}} vertical
{{ee111_digital_classnav|}} horazontal
code
[edit source]
<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>}}[[Lecture 1, Introduction to Binary, Octal and Hexadecimal Mathematics]]
</td>
</tr>
</table>
</includeonly>
only use includeonly tags to define what code shows up when a template is called.
vertical example
[edit source]{{ee111_digital_classnav|*}}
EE111 |
---|
horazontal example
[edit source]{{ee111_digital_classnav|}}
EE111 |
---|
* Topic:Electronic Engineering * EE 111 Digital Electronics * Lecture 1, Introduction to Binary, Octal and Hexadecimal Mathematics |