Notice: We are aware that many of the Chewiki’s images are still broken. We promise: we will try our best to fix it, but we don't guarantee that the fix will be trivial.

Help:Creating Templates

From Chewiki Archive - YouChew: 1% Funny, 99% Hot Gas
Revision as of 19:59, 18 November 2009 by PSE1nf0 (talk | contribs) (Redirecting to Chewiki)

Redirect page

Redirect to:

So you wanna help out the Chewiki by creating a template? Templates save you time by not having to update the coding on each and every page, rather being able to change the template itself. With that in mind, here's some tips on template making.

Creating a Template and Embedding it on Pages

You can create a template in the same way you create a regular pages. Just put Template: before the name of the template you want to create.

To place a template on a page, just put {{name of your template here}} on the page you want to place it on, and it should appear there after you save the changes.

Formatting

If you want your template to be placed in a box, put this. <div class="toc" style="background: #ffc;">Hi, I'm a template. I liek to eat pie.</div>

And you'll get something similar to this.

Hi, I'm a template. I liek to eat pie.

Customize the template with whatever background color and message you need.

Programming

You can also use programming a template. Placing {{ #if: | Hey, {{{test}}}