Help/HowToMakeTemplates

From Plastic Tub

(Difference between revisions)
Revision as of 14:50, 2 Nov 2005
Payne (Talk | contribs)
1 more ex. & clean up typos
← Go to previous diff
Revision as of 15:32, 2 Nov 2005
Payne (Talk | contribs)
generic examples
Go to next diff →
Line 1: Line 1:
__NOTOC__This page contains directions for creating a standardized template for the [[Plastic Tub:About|Tub]]. If you're looking for general information on creating templates, go to [http://en.wikipedia.org/wiki/Help:A_quick_guide_to_templates Wikipedia's Quick Guide to Templates]. __NOTOC__This page contains directions for creating a standardized template for the [[Plastic Tub:About|Tub]]. If you're looking for general information on creating templates, go to [http://en.wikipedia.org/wiki/Help:A_quick_guide_to_templates Wikipedia's Quick Guide to Templates].
-== How To ==+1. Go to the page where your template will be saved: <nowiki>http://plastictub.vaporslave.com/index.php/Template:NameOfTemplate</nowiki>
 +2. Paste in some code from one of the examples below and alter your Header, Text, Bullet points, etc. Note the following:
 +:* The Header will automatically be in bold face.
 +:* Both the Text and Header may be wikified:
 +:** Create bullets using <nowiki>*</nowiki> and numbered lists using <nowiki>#</nowiki>
 +:** Insert lines using <nowiki>----</nowiki>
 +:** Force line breaks using <nowiki><br></nowiki>
 +:** Format text with bold face (<nowiki>'''</nowiki>'''bold face'''<nowiki>'''</nowiki>) and italics (<nowiki>''</nowiki>''italics''<nowiki>''</nowiki>)
 +:** Etc.
 +: Here are a couple generic examples. Several specific examples from the tub are below.
 +{| border="1" cellpadding="8" cellspacing="0"
 +|-
 +! General Code
 +! General Display
 +!
 +! Wikified Code
 +! Wikified Display
 +|- valign="top"
 +|
 +: <nowiki>{{Sidebar | Your Header Goes Here|</nowiki><br>
 +: <nowiki>Your Text Goes Here</nowiki><br>
 +: <nowiki>}}</nowiki><br>
 +|
 +{{Sidebar | Your Header Goes Here |
 +Your Text Goes Here
 +}}
 +|
 +<br>
 +|
 +: <nowiki>{{Sidebar | Your Header<br>Goes Here |</nowiki><br>
 +: <nowiki>* First Bullet</nowiki><br>
 +: <nowiki>* Second Bullet</nowiki><br>
 +: <nowiki>* Third Bullet</nowiki><br>
 +: <nowiki>----</nowiki><br>
 +: <nowiki>More information</nowiki><br>
 +: <nowiki>}}</nowiki><br>
 +|
 +{{Sidebar | Your Header<br>Goes Here |
 +* First Bullet
 +* Second Bullet
 +* Third Bullet
---- ----
-<nowiki>+More Information
-1. Go to the page where your template will be saved (i.e., http://plastictub.vaporslave.com/index.php/Template:NameOfTemplate).+}}
-</nowiki>+|}
-2. Paste in some code from one of the examples below. Alter your Header, text, bullet points, etc. +3. Once you've created your template, you can stick in other pages by using the "normal" code for calling up saved templates:
 +: <nowiki>{{NameOfTemplate}}</nowiki><br>
 +: or
 +: <nowiki>{{Template:NameOfTemplate}})</nowiki><br>
-<nowiki>+Here are some examples from the Tub:
-3. Once you've created your template, you can stick in other pages (i.e., add the code{{NameOfTemplate}} or {{Template:NameOfTemplate}}). +
-</nowiki>+
- +
-Here are some examples:+
== Example # 1 == == Example # 1 ==

Revision as of 15:32, 2 Nov 2005

This page contains directions for creating a standardized template for the Tub. If you're looking for general information on creating templates, go to Wikipedia's Quick Guide to Templates (http://en.wikipedia.org/wiki/Help:A_quick_guide_to_templates).

1. Go to the page where your template will be saved: http://plastictub.vaporslave.com/index.php/Template:NameOfTemplate

2. Paste in some code from one of the examples below and alter your Header, Text, Bullet points, etc. Note the following:

  • The Header will automatically be in bold face.
  • Both the Text and Header may be wikified:
    • Create bullets using * and numbered lists using #
    • Insert lines using ----
    • Force line breaks using <br>
    • Format text with bold face ('''bold face''') and italics (''italics'')
    • Etc.
Here are a couple generic examples. Several specific examples from the tub are below.
General Code General Display Wikified Code Wikified Display
{{Sidebar | Your Header Goes Here|
Your Text Goes Here
}}

Your Header Goes Here

Your Text Goes Here


{{Sidebar | Your Header<br>Goes Here |
* First Bullet
* Second Bullet
* Third Bullet
----
More information
}}

Your Header
Goes Here

  • First Bullet
  • Second Bullet
  • Third Bullet

More Information

3. Once you've created your template, you can stick in other pages by using the "normal" code for calling up saved templates:

{{NameOfTemplate}}
or
{{Template:NameOfTemplate}})

Here are some examples from the Tub:

Example # 1


Template Page: http://plastictub.vaporslave.com/index.php/Template:Comics

Code on Template Page How To Display the Template Appearance

{{Sidebar | Associational Strips and Related Sequentialism |
* [[Balloonjaw]]
* [[Choco]]
* [[Lil' AA]]
* [[The Sunday Painters]]
}}

{{Template:Comics}}

Or

{{Comics}}

Associational Strips and Related Sequentialism

Example # 2


Template Page: http://plastictub.vaporslave.com/index.php/Template:Augury

Code on Template Page How To Display the Template Appearance

{{Sidebar | '''[[Augury]]'''<br>''Removing the Accident'' |
* [[Ear Divining]]
* [[Geloscopy]]
* [[Geomachy]]
* [[Sacrifice]]
* [[Titor'd]]
* [[Zodiac]]
}}

{{Template:Augury}}

Or

{{Augury}}

Augury
Removing the Accident

Example # 3


Template Page: http://plastictub.vaporslave.com/index.php/Template:Places

Code on Template Page How To Display the Template Appearance

{{Sidebar | Notable Locations and Geomantic Loci |
* [[Lambda Land of Gar|Garland, Texas]]
* [[New Mexico]]
* [[New York City]]
* [[Minneapolis]]
* [[Tampa]]
* [[Toulouse]]
* [[TerraWee]]
* [[San Luis Potosi]]
* [[Wee-Wee]]
----
* [[Geomachy|Geomancy]]
}}

{{Template:Places}}

Or

{{Places}}

Notable Locations and Geomantic Loci


Notes


For those who care, these directions utilize a "generic" template is saved under Template:Sidebar. This template establishes a format and accepts two variables, one for the header and one for the text. You can use this generic template to create new templates that will all have a similar appearance.