ROM Hack City:Templates
Talk0this wiki
Contents |
Wiki templates provide a means to insert the same content over and over in different (or the same) pages. This saves editors the hassle of duplicating the same text again and again, and also helps ensure consistency.
ROM Hack City has many templates; this page only introduces the most important and common templates. If you feel that a template belongs on this page, do not hesitate to add it.
- Category:Templates should cover all templates in the wiki, categorized into the various subcategories.
- The Template namespace (found from Special:Allpages) always has all templates in the wiki, sorted alphanumerically.
What are templates?
Edit
Templates are generally shown with the format required to use the template (e.g. {{templatecategory}}). Clicking the template name takes you to the template's page, where you can see what it looks like and how it is used.
Detailed instructions on the usage of each template should exist on a subpage using {{documentation}}. Alternatively, the instructions are on the template page itself (inside "noinclude" tags); or on the template's talk page.
For more information on templates, see Help:Templates.
General wiki templates
Edit
Right-aligned Table of Contents
Edit
{{tocright}}
- This template floats the table of contents (toc) on the right.
T is for template
Edit
{{t|<template>}}
- This template allows you to show example template code (with a link to the templates) without using the template itself. This page uses extensively this template.
Category templates
Edit
Template category template
Edit
{{templatecategory}}
- Should add this template to any categories of templates, to list template-specific categorising details, which differ from those of normal pages.
Pretty boxes
Edit
Address map
Edit
{{addressmap.begin|<...>}} {{addr|<...>}} {{addressmap.end|<...>}}
- These templates create a three-column address map, with the first column for addresses, the second column for size and type information, and the third column for description.
|
Size |
Description | |
|
RAM $000002 |
2 bytes |
This is an example of an address in an address map. |
|
ROM $00ffc0 |
64 bytes |
The SNES header. |
Bearer box
Edit
{{bearer|<content>}}
- This template bears its content in a colorful box. You can use the right margin to float other stuff to the right.
|
The bearer box looks like this. |
Hack box
Edit
{{hack|<...>}}
- Creates a box to describe some hack. Read Template:hack to learn to use this template.
| ||||||||
Edit
{{navbox|<...>}}
- Another kind of box.
| Text in the header= parameter |
|---|
| Text in the body= parameter |
Where you may find more templates
Edit
- Wikia Templates gave some templates to ROM Hack City, and have many more templates.
- Wikipedia; may be copied with the proper acknowledgment, but some need tweaking to work properly on Wikia, so use a Wikia one if possible.