Difference between revisions of "Template:TemplateTutorial"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(Oopsies! That is serious tho. If you think you can improve this for new users, go right ahead :))
(Though it was previously changed away from this text, this is how it appears. And now looks even more correct. It's not a monospace code/markup-example, but an example of the appearance it will take in the (default) page layout. Other problems left in.)
Line 1: Line 1:
 
<noinclude><nowiki>Hello, and welcome to the wiki! Creating a template is simple.</nowiki>
 
<noinclude><nowiki>Hello, and welcome to the wiki! Creating a template is simple.</nowiki>
  
Step one: Type <code><nowiki>{{YourTemplateName}}</nowiki></code> on whatever page you want your template on.  
+
Step one: Type <code><nowiki>{{YourTemplateName}}</nowiki></code> (but substituting your own name) on whatever page you want your template on.  
  
Step Two: You should see a red line that says <code><nowiki>[[YourTemplateName]]</nowiki></code>. Click it.
+
Step Two: You should see a red line that looks something like <span style="color: #BA0000"><nowiki>Template:YourTemplateName</nowiki></span> that is (unlike here) a link. Click it.
  
 
Step Three: Add the content of your template by typing it in wikitext. If you want to use a specific image, make sure to upload it first before linking to it in the template.
 
Step Three: Add the content of your template by typing it in wikitext. If you want to use a specific image, make sure to upload it first before linking to it in the template.

Revision as of 23:14, 19 September 2025

Hello, and welcome to the wiki! Creating a template is simple.

Step one: Type {{YourTemplateName}} (but substituting your own name) on whatever page you want your template on.

Step Two: You should see a red line that looks something like Template:YourTemplateName that is (unlike here) a link. Click it.

Step Three: Add the content of your template by typing it in wikitext. If you want to use a specific image, make sure to upload it first before linking to it in the template.

Step Four: Add content to the page that should not be included in the template. This can be done with the noinclude and /noinclude commands.

Step Five: Now that you've added the content of your template, it's time to use it! Use it in a page by typing {{YourTemplateName}} on whatever page you want to use it on. Make sure to not use it on comic pages or comic discussion pages.

Alright! I hope this helped you get started. Now get out there, make your templates, and don't be afraid to ask people for help. This tutorial is merely meant to be a stepping stone, made for basic understanding. Make sure you understand proper template etiquette before using your template on any page other than your own user page or talk page.

Template:TemplateTutorial