Difference between revisions of "Template:1010Topic"

From CompSciWiki
Jump to: navigation, search
(Introduction)
(...By Students)
 
(37 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[Main_Page2]]   {{{Chapter_TOC}}}
+
<includeonly>[[COMP1010|COMP 1010 Home]] {{{Chapter_TOC|Back to Chapter Topics}}}
<table border=0 cellpadding=14 cellspacing=0 width="100%">
+
__NOTOC__
<tr>
+
{{ #if: {{{Introduction|}}} |
<td colspan=3 bgcolor=#8B4513 width="100%">
+
{{{!}}style="width: 100%; font-weight: normal" cellpadding="5" cellspacing="0"
<!-- background colour "saddle brown" chosen from http://gucky.uni-muenster.de/cgi-bin/rgbtab-en -->
+
{{!}}-
</td>
+
!width: {{ #if: {{{IntroImage|}}} | 70% | 100% }}; style="font-weight: normal; padding: 15px; background: #E1E7EE; border-left: 1px solid grey; border-top: 1px solid grey; border-bottom: 1px solid grey;{{ #if: {{{IntroImage|}}} | &nbsp; | border-right: 1px solid grey;}}" align="left" valign="top"{{!}}
</tr>
+
  
<tr>
 
<td width=70%>
 
<!--BODY OF PAGE HERE-->
 
==Introduction==
 
  
{{{Introduction}}}
+
=Introduction=
 +
{{{Introduction|Introduction goes here.}}}
 +
__NOTOC__ __NOEDITSECTION__
 +
{{ #if: {{{ByStudents|}}} | !align="left" width="30%" style="background:#E1E7EE; border-top: 1px solid grey;border-right: 1px solid grey; border-bottom: 1px solid grey;border-left: none"{{!}}
  
 +
=...By Students=
 +
<em>{{{ByStudents}}}</em>
 +
| {{ #if: {{{IntroImage|}}} | !align="left" width="5%" style="background:#E1E7EE; border-top: 1px solid grey; border-bottom: 1px solid grey"{{!}}&nbsp;
 +
!align="left" style="width: 200px; background:#C4D0DD; font-weight: normal; border: 1px solid grey;" valign="top"{{!}} | &nbsp; }}
 +
{{ #if: {{{IntroImage|}}} | [[Image:{{{IntroImage}}}|200px]] | &nbsp; }} }}
 +
{{!}}}
 +
}}
 +
{{{Body}}}
 +
{|width=100%
 +
|-
 +
|{{ #if: {{{Previous|}}} | '''Previous Page: '''{{{Previous|}}} | }}
 +
|align=right|{{ #if: {{{Next|}}} | '''Next Page: '''{{{Next|}}} | }}
 +
|}
 +
</includeonly>
 +
<noinclude>
 +
''This template is used for each COMP 1010 topic page. Instructions and example usage are below.''
  
 +
Original design by [[User:WikiSysop]]. Modified and updated by [[User:BrianT]].
  
__TOC__
+
----
  
 +
== Example Code Usage ==
 +
<pre>
 +
{{Template:1010Topic
  
 +
|Introduction=My introductory paragraph goes here
 +
|IntroImage=Image if so desired
 +
|Chapter_TOC=[[What is Programming?]]
 +
|Previous=[[What is Programming?]]
 +
|Next=[[Anatomy of a Program]]
 +
|Body=
  
 +
}}
 +
</pre>
 +
* Introduction: Standard text. Your introductory paragraph goes here.
 +
* IntroImage: If you so choose, an introductory image goes here. Just supply the file name, NOT the Image tag itself.
 +
* Chapter_TOC: The parent chapter to link to. Provide the FULL LINK, NOT just the name.
 +
* Previous: The previous topic in the chapter. Provide the FULL LINK, NOT just the name.
 +
* Next: The next topic in the chapter. Provide the FULL LINK, NOT just the name.
 +
* Body: The body content of the page.
  
</td>
+
== Sample Output ==
 +
Please note that the layout gets a bit skewed while displaying the template in itself; if you don't have horribly oversized images, everything will look fine when used in production.
  
<!--WHITE SPACE HERE--DON'T TYPE IN THIS CELL--><td width=5%></td><!--END WHITE SPACE-->
+
'''Everything below this line is the sample output'''
  
 +
----
 +
----
  
 +
{{Template:1010Topic
  
<td width=25% bgcolor="#FFD700" valign="top">
+
|Introduction=My introductory paragraph goes here
<!-- background colour "gold gold" chosen from http://gucky.uni-muenster.de/cgi-bin/rgbtab-en -->
+
|ByStudents=Dice.JPG
 +
|Chapter_TOC=[[What is Programming?]]
 +
|Previous=[[What is Programming?]]
 +
|Next=[[What is Programming?]]
 +
|Body=This is my body content. All of your content is added here.  
  
==Overview==
+
}}
{{{Overview}}}
+
</noinclude>
 
+
[[Category: COMP 1010]]
</td>
+
</tr>
+
</table>
+

Latest revision as of 11:39, 6 December 2011


This template is used for each COMP 1010 topic page. Instructions and example usage are below.

Original design by User:WikiSysop. Modified and updated by User:BrianT.


Example Code Usage

{{Template:1010Topic

|Introduction=My introductory paragraph goes here
|IntroImage=Image if so desired
|Chapter_TOC=[[What is Programming?]]
|Previous=[[What is Programming?]]
|Next=[[Anatomy of a Program]]
|Body=

}}
  • Introduction: Standard text. Your introductory paragraph goes here.
  • IntroImage: If you so choose, an introductory image goes here. Just supply the file name, NOT the Image tag itself.
  • Chapter_TOC: The parent chapter to link to. Provide the FULL LINK, NOT just the name.
  • Previous: The previous topic in the chapter. Provide the FULL LINK, NOT just the name.
  • Next: The next topic in the chapter. Provide the FULL LINK, NOT just the name.
  • Body: The body content of the page.

Sample Output

Please note that the layout gets a bit skewed while displaying the template in itself; if you don't have horribly oversized images, everything will look fine when used in production.

Everything below this line is the sample output



COMP 1010 Home > What is Programming?


Introduction

My introductory paragraph goes here

...By Students

Dice.JPG

This is my body content. All of your content is added here.

Previous Page: What is Programming? Next Page: What is Programming?