FANDOM


ImplementationEdit

These cover the basic implementation of templates, in both the Visual and older Source editor. If you have any questions, leave them in the comments below.

Visual EditorEdit

Veditor s1
Step 1: Go to the "insert" drop-down tab.

Step 2: Select either Infobox or Template, depending on what you need.

Veditor s2
Step 3: Select the template you want to use. It should now be on the page.

Source EditorEdit

Seditor s11
Step 1: Copy the "Usage" section in the middle row.
Seditor s2
Step 2: Paste it in your page, and fill it out as reasonable. Conditions not filled out will usually not display.

InfoboxesEdit

A list of actively-used infoboxes. Since they typically have large documentation sections, links to their documentation pages are included instead.

Template Name Usage Info
{{Leak Patch infobox}} See: Template:Leak_Patch_infobox An infobox for patches for the Leak.
{{MapInfoBox}} See Template:MapInfoBox An infobox for articles documenting map files, typically .vmf.
{{Mod InfoBox}} See: Template:Mod InfoBox An infobox for fan-made mods.
{{Weapon infobox}} See:Template:Weapon infobox An infobox intended for weapons.
{{Vehicle Template}} See: Template:Vehicle Template An infobox for vehicles.
{{Cut Enemies}} See: Template:Cut Enemies An infobox meant to document cut NPCs. Preferably enemies, but not limited to it.

Misc TemplatesEdit

Template Name Usage Info
{{Toc-right}}
{{Toc-right}}
Place it anywhere on the page to have the table of contents align to the right.
{{clear}}
{{clear}}
directly over the incorrectly-formatted element.
Cleans up annoying text wrapping.
{{TOClimit}}
{{TOClimit
|<!-- Header level to limit to -->
}}
Limits the levels of headers allowed to appear on the TOC to a certain amount.
{{Subpage}}
{{subpage
|(Used to check if it is in the first mode, put whatever)
|Name=(Link to subpage)
|text=(Describe subpage)
|image=(Optional; image about subpage)
|width=(Size of subpage box)
|pic-align=left
|min-width=75px}}
Creates a TCRF-esque subpage box. If it is used alone, it just puts:

This is a sub-page of Editor's information.

{{PNSections}}
{{PNSections
|title=''[[Half-Life 2]]'' story arc journey
|before=[[Black Mesa East]]
|after=[[Shorepoint Base]]
}}
A navigation tool for multi-page articles, which links to the pages before and after the current.
{{NETDate}}
{{NETDate
|editor_build= <!-- Put editor build here -->
}}
A template that automatically calculates the NET date from a stated editor build.
{{Trim}}
{{Trim
| Trim
}}
A template that trims whitespace. Not much else.