Difference between revisions of "Template:1010ExtraLabs"

From CompSciWiki
Jump to: navigation, search
(Had the wrong template embedded. TODO: Fix layout)
(Fixing table, take 1)
Line 1: Line 1:
<includeonly>[[COMP1010|COMP 1010 Home]] >   {{{Chapter_TOC|Back to Chapter Topics}}}
+
<includeonly>[[COMP1010|COMP 1010 Home]] > [[Extra_Labs|Back to Extra Labs]]
{{ #if: {{{Introduction|}}} |
+
{|style="width: 100%; font-weight: normal" cellpadding="5" cellspacing="0"
{{{!}}style="width: 100%; font-weight: normal" cellpadding="5" cellspacing="0"
+
|-  
{{!}}-  
+
|width: 100%; style="font-weight: normal; padding: 15px; background: #E1E7EE; border-left: 1px solid grey; border-top: 1px solid grey; border-bottom: 1px solid grey;border-right: 1px solid grey;" align="left" valign="top" | =Introduction=
!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"{{!}}
+
 
+
 
+
=Introduction=
+
 
{{{Introduction|Introduction goes here.}}}
 
{{{Introduction|Introduction goes here.}}}
 
__NOEDITSECTION__
 
__NOEDITSECTION__
  
 
| __TOC__
 
| __TOC__
}
+
|}
 
{{{Body}}}
 
{{{Body}}}
  
Line 24: Line 20:
 
== Example Code Usage ==
 
== Example Code Usage ==
 
<pre>
 
<pre>
{{Template:1010Topic
+
{{Template:1010ExtraLabs
  
 
|Introduction=My introductory paragraph goes here
 
|Introduction=My introductory paragraph goes here

Revision as of 13:04, 27 March 2012


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

Original design by User:BrianT.


Example Code Usage

{{Template:1010ExtraLabs

|Introduction=My introductory paragraph goes here
|Body=This is my body content. All of your content is added here. 

}}
  • Introduction: Standard text. Your introductory paragraph goes here.
  • 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 > Back to Extra Labs

Introduction

My introductory paragraph goes here

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