Difference between revisions of "Template:1010Topic"
From CompSciWiki
m (Another Border Fix) |
m |
||
Line 1: | Line 1: | ||
− | <includeonly>[[COMP1010| | + | <includeonly>[[COMP1010|COMP 1010 Home]] > {{{Chapter_TOC|Back to Chapter Topics}}} |
__NOTOC__ | __NOTOC__ | ||
{{ #if: {{{Introduction|}}} | | {{ #if: {{{Introduction|}}} | | ||
Line 17: | Line 17: | ||
|- | |- | ||
|{{ #if: {{{Previous|}}} | '''Previous Page: '''{{{Previous|}}} | }} | |{{ #if: {{{Previous|}}} | '''Previous Page: '''{{{Previous|}}} | }} | ||
− | |align=right|{{ #if: {{{Next|}}} | ''' | + | |align=right|{{ #if: {{{Next|}}} | '''Next Page: '''{{{Next|}}} | }} |
|} | |} | ||
</includeonly> | </includeonly> | ||
Line 40: | Line 40: | ||
}} | }} | ||
</pre> | </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. | ||
== Sample Output == | == Sample Output == | ||
Line 54: | Line 60: | ||
|Chapter_TOC=[[What is Programming?]] | |Chapter_TOC=[[What is Programming?]] | ||
|Previous=[[What is Programming?]] | |Previous=[[What is Programming?]] | ||
− | |Next= | + | |Next=[[What is Programming?]] |
|Body=This is my body content. All of your content is added here. | |Body=This is my body content. All of your content is added here. | ||
Revision as of 13:16, 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= }}
- 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?
IntroductionMy introductory paragraph goes here
|
---|
This is my body content. All of your content is added here.
Previous Page: What is Programming? | Next Page: What is Programming? |