Difference between revisions of "Editor's information/Template Guide"

From Valve Cut Content
Jump to: navigation, search
(old table css fix)
m (Reverted edits by 蔣介石 (talk) to last revision by Uncanny)
(Tag: Rollback)
 
(3 intermediate revisions by 3 users not shown)
(No difference)

Latest revision as of 07:51, 8 October 2021

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

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

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

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

Source Editor

Seditor s11.png
Step 1: Copy the "Usage" section in the middle row.
Seditor s2.png
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.

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.
{{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.