Editor's information/Template Guide
From Valve Cut Content
Revision as of 00:07, 30 October 2024 by BlanketOfOne (talk | contribs) (Restructured, added section for stub templates, added to-do template to misc list)
Contents
Implementation
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 Editor
Step 1: Go to the "insert" drop-down tab. Step 2: Select either Infobox or Template, depending on what you need. | |
Step 3: Select the template you want to use. It should now be on the page. |
Source Editor
Step 1: Copy the "Usage" section in the middle row. | |
Step 2: Paste it in your page, and fill it out as reasonable. Conditions not filled out will usually not display. |
Infoboxes
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. |
Stub Templates
Template Name | Info |
---|---|
{{Stub-section}} | A stub template for a specific section of an article. |
{{Stub-evolution}} | A stub template for articles about evolutions. |
{{Stub-era}} | A stub template for articles about development eras. |
{{Stub-weapon}} | A stub template for articles about weapons. |
Misc Templates
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. |
{{Todo}} | {{Todo| * This article needs more pizzazz! }} |
A template that lets editors provide a list of tasks that need to be done to improve the article. |
{{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:
|
{{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. |