Difference between revisions of "Template:1010Topic"

From CompSciWiki
Jump to: navigation, search
m (Fixed closing table tag error)
m
Line 1: Line 1:
 
<includeonly>[[COMP1010|Main_Page]] >  {{{Chapter_TOC|Back to Chapter Topics}}}
 
<includeonly>[[COMP1010|Main_Page]] >  {{{Chapter_TOC|Back to Chapter Topics}}}
 
 
__NOTOC__
 
__NOTOC__
 
 
{{ #if: {{{Introduction|}}} |
 
{{ #if: {{{Introduction|}}} |
 
{{{!}}style="width: 100%; font-weight: normal" cellpadding="5" cellspacing="0"
 
{{{!}}style="width: 100%; font-weight: normal" cellpadding="5" cellspacing="0"
 
{{!}}-  
 
{{!}}-  
!width: 70%; style="font-weight: normal; padding: 15px; background: #E1E7EE; border-left: 1px solid grey; border-top: 1px solid grey; border-bottom: 1px solid grey" align="left" valign="top"{{!}}
+
!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" align="left" valign="top"{{!}}
 
=Introduction=
 
=Introduction=
 
{{{Introduction|Introduction goes here.}}}
 
{{{Introduction|Introduction goes here.}}}
 
__NOTOC__ __NOEDITSECTION__
 
__NOTOC__ __NOEDITSECTION__
!align="left" width="5%" style="background:#E1E7EE; border-top: 1px solid grey; border-bottom: 1px solid grey"{{!}}&nbsp;
+
{{ #if: {{{IntroImage|}}} | !align="left" width="5%" style="background:#E1E7EE; border-top: 1px solid grey; border-bottom: 1px solid grey"{{!}}&nbsp;
!align="left" width="25%" style="background:#C4D0DD; font-weight: normal; border: 1px solid grey;" valign="top"{{!}}
+
!align="left" width="25%" style="background:#C4D0DD; font-weight: normal; border: 1px solid grey;" valign="top"{{!}} | &nbsp; }}
{{ #if: {{{IntroImageImage|}}} | [[Image:{{{IntroImage}}}]] | &nbsp; }}
+
{{ #if: {{{IntroImage|}}} | [[Image:{{{IntroImage}}}]] | &nbsp; }}
 
{{!}}}
 
{{!}}}
 
}}
 
}}
 
 
{{{Body}}}
 
{{{Body}}}
 
 
{|width=100%  
 
{|width=100%  
 
|-
 
|-

Revision as of 12:53, 30 November 2010


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=

}}

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

 

Dice.JPG

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

Previous Page: What is Programming?