Help/HowToMakeTemplates
From Plastic Tub
| Revision as of 03:45, 2 Nov 2005 Payne (Talk | contribs) ← Go to previous diff |
Revision as of 05:05, 2 Nov 2005 Payne (Talk | contribs) Go to next diff → |
||
| Line 1: | Line 1: | ||
| - | 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]. |
| - | 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. Here are some examples: | + | == How To == |
| + | |||
| + | ---- | ||
| + | # Go to the page where your template will be saved (i.e., <nowiki>http://plastictub.vaporslave.com/index.php/Template:NameOfTemplate</nowiki>). | ||
| + | # Paste in some code from one of the examples below. Alter your Header, text, bullet points, etc. | ||
| + | # Once you've created your template, you can stick in other pages (i.e., add the code {{NameOfTemplate}} or {{Template:NameOfTemplate}}). | ||
| + | |||
| + | Here are some examples: | ||
| + | |||
| + | == Example # 1 == | ||
| + | |||
| + | ---- | ||
| + | Template Page: http://plastictub.vaporslave.com/index.php/Template:Comics | ||
| {| border="1" cellpadding="2" cellspacing="0" | {| border="1" cellpadding="2" cellspacing="0" | ||
| |- | |- | ||
| - | ! Code | + | ! Code on Template Page |
| - | ! Appearance | + | ! How To Display the Template |
| - | ! | + | |
| - | ! Code | + | |
| - | ! Appearance | + | |
| - | ! | + | |
| - | ! Code | + | |
| ! Appearance | ! Appearance | ||
| |- valign="top" | |- valign="top" | ||
| | | | | ||
| - | <nowiki>{{Sidebar</nowiki><br> | + | <nowiki>{{Sidebar | Associational Strips and Related Sequentialism |</nowiki><br> |
| - | <nowiki>| Header |</nowiki><br> | + | <nowiki>* [[Balloonjaw]]</nowiki><br> |
| - | <nowiki>Text</nowiki><br> | + | <nowiki>* [[Choco]]</nowiki><br> |
| - | <nowiki>}}</nowiki><br> | + | <nowiki>* [[Lil' AA]]</nowiki><br> |
| - | | | + | <nowiki>* [[The Sunday Painters]]</nowiki><br> |
| - | {{Sidebar | Header | | + | <nowiki>}}</nowiki> |
| - | Text | + | |
| }} | }} | ||
| | | | | ||
| + | <nowiki>{{Template:Comics}}</nowiki><br><br> | ||
| + | Or<br><br> | ||
| + | <nowiki>{{Comics}}</nowiki> | ||
| | | | | ||
| - | <nowiki>{{Sidebar</nowiki><br> | + | {{Comics}} |
| - | <nowiki>| Header |</nowiki><br> | + | |} |
| - | <nowiki>* First Point</nowiki><br> | + | |
| - | <nowiki>* Second Point</nowiki><br> | + | == Example # 2 == |
| - | <nowiki>* Third Point</nowiki><br> | + | |
| - | <nowiki>}}</nowiki><br> | + | ---- |
| + | Template Page: http://plastictub.vaporslave.com/index.php/Template:Augury | ||
| + | {| border="1" cellpadding="2" cellspacing="0" | ||
| + | |- | ||
| + | ! Code on Template Page | ||
| + | ! How To Display the Template | ||
| + | ! Appearance | ||
| + | |- valign="top" | ||
| | | | | ||
| - | {{Sidebar | Header | | + | <nowiki>{{Sidebar | '''[[Augury]]'''<br>''Removing the Accident'' |</nowiki><br> |
| - | * First Point | + | <nowiki>* [[Ear Divining]]</nowiki><br> |
| - | * Second Point | + | <nowiki>* [[Geloscopy]]</nowiki><br> |
| - | * Third Point | + | <nowiki>* [[Geomachy]]</nowiki><br> |
| + | <nowiki>* [[Sacrifice]]</nowiki><br> | ||
| + | <nowiki>* [[Titor'd]]</nowiki><br> | ||
| + | <nowiki>* [[Zodiac]]</nowiki><br> | ||
| }} | }} | ||
| | | | | ||
| + | <nowiki>{{Template:Augury}}</nowiki><br><br> | ||
| + | Or<br><br> | ||
| + | <nowiki>{{Augury}}</nowiki> | ||
| | | | | ||
| - | <nowiki>{{Sidebar</nowiki><br> | + | {{Augury}} |
| - | <nowiki>| Header |</nowiki><br> | + | |
| - | <nowiki>* First Point</nowiki><br> | + | |
| - | <nowiki>* Second Point</nowiki><br> | + | |
| - | <nowiki>* Third Point</nowiki><br> | + | |
| - | <nowiki>* Fourth Point</nowiki><br> | + | |
| - | <nowiki>* Fifth Point</nowiki><br> | + | |
| - | <nowiki>----</nowiki><br> | + | |
| - | <nowiki>Related Info</nowiki><br> | + | |
| - | <nowiki>}}</nowiki><br> | + | |
| - | | | + | |
| - | {{Sidebar | Header | | + | |
| - | * First Point | + | |
| - | * Second Point | + | |
| - | * Third Point | + | |
| - | * Fourth Point | + | |
| - | * Fifth Point | + | |
| - | ---- | + | |
| - | Related Info | + | |
| - | }} | + | |
| |} | |} | ||
| - | Note that the page for your new template will be: <nowiki>http://plastictub.vaporslave.com/index.php/Template:NameOfTemplate</nowiki> | ||
| - | For example: http://plastictub.vaporslave.com/index.php/Template:Comics | + | == 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. | ||
Revision as of 05:05, 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).
How To
- Go to the page where your template will be saved (i.e., http://plastictub.vaporslave.com/index.php/Template:NameOfTemplate).
- Paste in some code from one of the examples below. Alter your Header, text, bullet points, etc.
- Once you've created your template, you can stick in other pages (i.e., add the code Template:NameOfTemplate or Template:NameOfTemplate).
Here are some examples:
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 | |
{{Template:Comics}} |
|
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'' | |
{{Template:Augury}} |
|
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.
