If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Help:Templates: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Added RAM map template) |
||
Line 12: | Line 12: | ||
:gives "{{moreinfo wikipedia|page=ROM hacking}}" | :gives "{{moreinfo wikipedia|page=ROM hacking}}" | ||
; [[:Template:Rommap]] : Should be at the top of every [[ROM map]]. Takes the argument ''game'', which should be a wiki-link to the game which the page is a [[ROM map]] for. | ; [[:Template:Rommap]] : Should be at the top of every [[ROM map]]. Takes the argument ''game'', which should be a wiki-link to the game which the page is a [[ROM map]] for. | ||
; [[:Template:Rammap]] : Should be at the top of every [[RAM map]]. Takes the argument ''game'', which should be a wiki-link to the game which the page is a [[RAM map]] for. | |||
; [[:Template:Infobox table]] : Should be at the top of all pages documenting [[Data table|data tables]]. Takes several arguements: | ; [[:Template:Infobox table]] : Should be at the top of all pages documenting [[Data table|data tables]]. Takes several arguements: | ||
:; name : name of table | :; name : name of table |
Revision as of 16:23, 31 October 2005
Templates are special pages which reduce the need for writing the same thing multiple times. For general information on creating and using templates, see Meta-Wiki's page on templates. This page will list and explain the templates available on this wiki.
One important feature of templates is their ability to take arguments. A template with no arguments is called as
{{template name}}
Note that the "Template:" part of the name is left out. To send arguments, one writes
{{template name|argument1=value1|argument2=Some other value}}
- Template:Clear
- Makes sure that the following text will not overlap any floats.
- Template:Stub
- Put at the bottom of a page to mark it as lacking in content. The page will be put into Category:Stubs.
- Template:Moreinfo wikipedia
- Makes a link to wikipedia to the page specified by the page variable given to the template. For example,
{{moreinfo wikipedia|page=ROM hacking}}
- gives "More non-ROM hacking specific information can be found at Wikipedia's ROM hacking article."
- Template:Rommap
- Should be at the top of every ROM map. Takes the argument game, which should be a wiki-link to the game which the page is a ROM map for.
- Template:Rammap
- Should be at the top of every RAM map. Takes the argument game, which should be a wiki-link to the game which the page is a RAM map for.
- Template:Infobox table
- Should be at the top of all pages documenting data tables. Takes several arguements: