Template:Documentation index header/doc

From Valve Developer Community
Jump to navigation Jump to search
Edit-copy.png

This template creates a header for a brief description of a documentation index.

Related templates

This template is used in combination with the templates listed below:

Usage

This template is usually written in a column. To use it, insert {{Documentation index header/doc}} on the desired page and specify the parameters described below under the template name in the following format:

{{Documentation index header/doc | parameter1 = value | parameter2 = value }}
Parameter Description Examples Preview
No parameter This template requires at least the image and desc parameters. Inclusion without them is not supported.
{{Template parameters table}}
image An image (banner, logo) of a game, engine, or tools.
| image = banner-l4d2-docs.png
imagesize Specifies the image width.
The default value is 400px, optimized for 566×120 or 948×203 images.
| imagesize = 235px
imagelink Allows an image to link to something.
| imagelink = Left 4 Dead 2
imagetype Specifies the image type based on which the CSS properties of the header will change.
Available values:
  • logo
| imagetype = logo
desc A brief description of the documentation index.
| desc = Documentation for a cool but old tool.
button1 to button6 Specifies the text displayed on the button below the description.
| button1 = Download and Installation
button1link to button6link Specifies the internal wiki link for the button.
| button1link = /Download and Installation
button1extlink
to
button6extlink
Specifies an external link for the button. Overrides the internal link.
| button1extlink = https://developer.valvesoftware.com
comment Any comments below the header. Created primarily as a to-do list.
| comment = {{todo| Improve the descriptions on the cards. }} 

Preview

{{Documentation index header
| image = Source-logo.png
| imagesize = 256px
| imagelink = Source
| imagetype = logo

| desc = '''The Source SDK is freely available to all Steam users.''' It is used to develop mods and content for the [[Source 2006]], [[Source 2007|2007]], [[Source 2013|2013]] and [[Team Fortress 2 engine branch|Team Fortress 2]] engine branches.

| button1		 = Download and Installation
| button2		 = Distributing Source mods
| button3		 = Frequently Asked Questions
| button4		 = Release Notes
| button1link	 = SDK Installation
| button2extlink = https://partner.steamgames.com/doc/sdk/uploading/distributing_source_engine
| button3link	 = :Category:Source SDK FAQ
| button4link	 = Source SDK Release Notes
}}
Source-logo.png
The Source SDK is freely available to all Steam users. It is used to develop mods and content for the Source 2006, 2007, 2013 and Team Fortress 2 engine branches.

Components

This documentation subpage uses {{doc/Sandbox other}}. It includes the following categories:
[[Category:Formatting templates]]