Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

Help:Templates: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(added Template:Infobox utility)
(Moved usage instructions to the talk pages of each template)
Line 8: Line 8:
; [[:Template:Clear]] : Makes sure that the following text will not overlap any floats.
; [[: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: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,
; [[:Template:Moreinfo wikipedia]] : Makes a link to wikipedia to the page specified by the ''page'' variable given to the template.
<nowiki>{{</nowiki>moreinfo wikipedia|page=ROM hacking<nowiki>}}</nowiki>
: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: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 many arguments, which are described on its [[Template talk:Infobox table|talk page]].
:; name : name of table
; [[:Template:Infobox utility]] : Should be at the top of all pages documenting ROM hacking utilities. Takes many arguments, which are described on its [[Template talk:Infobox utility|talk page]].
:; game : game table is found in
; [[:Template:Infobox hack]] : Should be at the top of all pages documenting ROM hacks. Takes many arguments, which are described on its [[Template talk:Infobox hack|talk page]].
:; start : starting [[Pointer|address]] of the [[Data table|table]]
; [[:Template:INES]] : Should be at the top of all pages documenting [[Category:NES Games|NES games]]. Takes many arguments, which are described on its [[Template talk:INES|talk page]].
:; end : ending [[Pointer|address]] of the [[Data table|table]]
:; numentries : number of entries in the table
:; entrylength : the length of each entry
:; totallength : the length of the entire table
; [[:Template:Infobox utility]] : Should be at the top of all pages documenting ROM hacking utilities. Takes several arguements:
:; name : name of utility
:; game : game that the utility edits ("(Universal)" for [[Universal utilities]])
:; maintainer : maintainer of the utility
:; version : latest version number
:; os : Operating System(s) in which the utility can be run
:; license : utility's license
:; website : link to utility's homepage

Revision as of 19:46, 25 November 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.
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 many arguments, which are described on its talk page.
Template:Infobox utility
Should be at the top of all pages documenting ROM hacking utilities. Takes many arguments, which are described on its talk page.
Template:Infobox hack
Should be at the top of all pages documenting ROM hacks. Takes many arguments, which are described on its talk page.
Template:INES
Should be at the top of all pages documenting. Takes many arguments, which are described on its talk page.