Help:Game-specific templates

From modwiki

Jump to: navigation, search

There are templates for use with game-specific pages, sections and notes, they look like this (the lines in codeboxes is the markup for the template immediately above:

Contents

Page headers

These should only be used for pages that are entirely exclusive to one game, put it on the very top of the page:

Image:D3square_bg.png The information on this page is specific to Doom 3.

{{D3page}}
Image:D3square_bg.png The information on this page is specific to Doom 3: Resurrection of Evil.

{{D3ROEpage}}
Image:Q4square_bg.png The information on this page is specific to Quake 4.

{{Q4page}}
Image:Preysquare_bg.png The information on this page is specific to Prey.

{{Preypage}}
Image:Etqwsquare_bg.png The information on this page is specific to Enemy Territory: Quake Wars.

{{ETQWpage}}
Image:Rtcw2square_bg.png The information on this page is specific to Return to Castle Wolfenstein 2.

{{RTCW2page}}
Image:Ragesquare_bg.png The information on this page is specific to Rage.

{{Ragepage}}

Section headers

These should be used in cases where an entire section is valid to only one game, typically this would be used to indicate things that are different from the norm in the engine. Always include the game name in the section heading!

The template itself has two parameters, the first being the section header's text and the optional second parameter is used to create sub-sections.

For example:

Image:D3square_25.png Doom 3 things

The information in this section is specific to Doom 3.
{{D3section| Doom 3 things}}

Image:D3square_25.png D3ROE things

The information in this section is specific to Doom 3: Resurrection of Evil.
{{D3ROEsection| D3ROE things}}

Q4 Quake 4 things

The information in this section is specific to Quake 4.
{{Q4section| Quake 4 things}}

Image:Preysquare_25.png Prey things

The information in this section is specific to Prey.
{{Preysection| Prey things}}

Image:Etqwsquare_25.png ETQW things

The information in this section is specific to Enemy Territory: Quake Wars.
{{ETQWsection| ETQW things}}

Image:Rtcw2square_25.png RTCW2 things

The information in this section is specific to Return to Castle Wolfenstein 2.
{{RTCW2section| RTCW2 things}}

Image:Ragesquare_25.png Rage things

The information in this section is specific to Rage.
{{Ragesection| Rage things}}

Using the section templates for sub-sections

The second parameter to the section templates represents the section depth, which defaults to 2. This digit is equivalent to the number of '=' characters you would place to start a regular section or sub-section and can range from 1 to 5.

Let us look at an example, a Doom 3 sub-section with a D3ROE sub-sub-section in it. The difference might not be as obvious (the header font size only differs slightly) but the effect is clearly visible in the table of contents at the top.

A regular sub-section

Nothing new to see here.

=== A regular sub-section ===

Image:D3square_25.png A Doom 3 sub-section

The information in this section is specific to Doom 3.
{{D3section| Doom 3 sub-section Example | 3}}

Image:D3square_25.png A Doom 3 ROE sub-sub-section

The information in this section is specific to Doom 3: Resurrection of Evil.
{{D3ROEsection| Doom 3 ROE sub-sub-section | 4}}

Notes

For cases where the information is too small to have its own section, or where it applies directly to the info on a certain line, for example, one can use note templates:

Image:D3square_25.png Note: Doom 3 only:
(Important stuff)
{{D3note|note=(Important stuff)}}
Image:D3square_25.png Note: Doom 3: ROE only:
(Important stuff)
{{D3ROEnote|note=Important stuff)}}
Image:Q4square_25.png Note: Quake 4 only:
(Important stuff)
{{Q4note|note=(Important stuff)}}
Image:Preysquare_25.png Note: Prey only:
(Important stuff)
{{Preynote|note=(Important stuff)}}
Image:Etqwsquare_25.png Note: Enemy Territory: Quake Wars only:
(Important stuff)
{{ETQWnote|note=(Important stuff)}}
Image:Rtcw2square_25.png Note: Return to Castle Wolfenstein 2 only:
(Important stuff)
{{RTCW2note|note=(Important stuff)}}
Image:Ragesquare_25.png Note: Rage only:
(Important stuff)
{{Ragenote|note=(Important stuff)}}

Please note that there is not yet any solution for pages that are valid to multiple games, but not all (apart from mentioning it in the article, or sectioning).

Personal tools
Main
id Tech 5