Template:Infotable

From Valve Developer Community
Revision as of 13:23, 26 July 2022 by Max34 (talk | contribs) (Created page with "<onlyinclude><includeonly><table align=right frame=border cellpadding=4 style="background:#202020;border:2px solid #525252;min-width:250px;{{border-radius|12px}};margin:4px 8p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template creates a small table on the right with all the summary information. For example for "Material Shader parameter" you can do:

{{infotable
|$param
|img=[[File:someparam how it works.png|border|340px]]<br>$someparam in action
|type=s1
|char=P
|default=0
|engine=2
|in={{hl2|since}}
|shader={{ent|LightmappedGeneric}}<br>{{ent|VertexLitGeneric}}
|old={{ent|$olderparam}}
|new={{ent|$newerparam}}
}}

The following describes all the parameters that are available in this template:

Template Description
{{infotable The beginning of this template.
| {{{suf}}} Optional: This is a suffix that will be added to all template elements to display the table in the desired language (if it is translated into it). Also, all template links will lead to the version of the article in the selected language.
| {{{declension}}} Optional: In some languages, there are difficulties with declension of words, so this parameter will allow you to choose which declension to use (if declension options are specified in the selected language). If you are adding a translation to this template and there is a need to use declensions in your language, then the #default parameter should contain an indefinite declension if possible, and subsequent ones, i.e. 0, 1, 2, etc., should contain other declension variants.
| {{{info}}} Optional: This parameter displays a small info message above the table. Available options:
  • 0 = Not in the FGD by default.
  • 1 = Not in the game by default, but got left over in the FGD.
  • 2 = This game is available on Steam, but it does not use any of the Source engines.
| {{{infotxt}}} Optional: Additional text that will be displayed under the text that is displayed by the {{{info}}} parameter. The text depends on the selected value in the {{{info}}} parameter:
  • If {{{info}}} = 0
    • 0 = It should not be put directly in a map.
    • 1 = It should not be put directly in a map. Can only be configured through code.
    • 2 = It should not be put directly in a map. Automatically generated by the game.
    • 3 = It should not be put directly in a map. Doesn't remove itself when picked up.
    • 4 = It should not be put directly in a map. Generated as part of another entity, and does not function on its own.
  • If {{{info}}} = 1
    • 0 = Not available anymore.
  • If {{{info}}} = 2
    • none

If you have entered anything other than the above numbers, it will be displayed instead.

| {{{1}}} OR {{{inote}}} Optional: Element name parameter. If {{{1}}} is specified, then this name will be used in the header of the table and at the beginning of the first line. {{{inote}}} (Inlinenote icon) - The name of the icon template, which is based on the template Template:New_icon, should be entered in this parameter. For example, to specify Half-Life 2, enter hl2. If it is specified, then it will be the same as {{{1}}}, but the name on the first line will have a color and an icon, and the name in the table header will also have an icon. if none of the parameters is specified, the page name will be used.


Note.pngNote:If the page name contains additional information, for example, the page is called "$someparam (Source)", then do not remove the "(Source)" part from the article title, but you need to write this element to this template without "(Source)". Example:
article title: $someparam (Source)
parameter {{{1}}}: $someparam
| {{{nt}}} Optional: This parameter can be used only if parameter {{{inote}}} is used.
| {{{state}}} Optional: The state of the element. Available options:
  • 0 = Obsolete
  • 1 = Released!
  • 2 = Development On Hold
  • 3 = In Open Beta development
  • 4 = In Closed Beta development
  • 5 = In Alpha development
  • 6 = In Pre-Alpha development
  • 7 = No longer being developed
| {{{appid}}} Optional: If this element has a page on steam, then specify the appid of this element and a button to open the steam page and a button to launch this element will appear directly in the table.
| {{{download}}} Optional: Specify an external link to download the item. Mostly useful for modifications or third party tools.
| {{{website}}} Optional: Specify an external link to official website of element. Mostly useful for modifications or third party tools.
| {{{moddb}}} Optional: If the element has a page on ModDB, then you can specify a link, but it does not need to be specified in full: copy the full link to the element's page on ModDB, then remove "https://www.moddb.com/" from it.
| {{{replace}}} Optional: If the element is obsolete and has been replaced with another one, enter it in this parameter.
| {{{img}}} Optional: An image or icon of the element is added here. If the element does not have an image, then you can put an image here showing how this element works.
| {{{type}}} The type of the element. Available options:
  • e0 = Point entity
  • e1 = Internal Point entity
  • e2 = Brush entity
  • e3 = Internal Brush entity
  • e4 = Mesh Entity
  • e5 = Path Entity
  • s0 = Material Shader
  • s1 = Material Shader parameter
  • c0 = QC command
  • c1 = Console Command
  • c2 = Console Variable
  • f0 = TXT File
  • f1 = CFG File
  • f2 = RES File
  • g0 = Game
  • g1 = Single Player Game
  • g2 = Multiplayer Game
  • g3 = Cooperative Game
  • m0 = Modification
  • m1 = Single Player Modification
  • m2 = Multiplayer Modification
  • m3 = Cooperative Modification
  • t0 = Official Tool
  • t1 = Open source Official Tool
  • t2 = Third Party Tool
  • t3 = Open source Third Party Tool

If you have entered anything other than the above numbers, it will be displayed instead.

| {{{char}}} Optional: It is needed for some elements if you need to specify that this article is in the category under this letter. For example, the $someparam element will have this parameter equal to S.
| {{{path}}} Optional: Indicates which path the element is in.
| {{{default}}} Optional: The default value of the element is written here. If this value differs in games, then each default value should be on a new line (use the <br> tag). For convenience, you can use a game icon template next to the value and specify in it, for example, only, remove, etc.
| {{{dev}}} Optional: The developer of the element. Available options:
  • 0 = Valve
  • 1 = Gearbox Software
  • 2 = Valve South
  • 3 = Ritual
  • 4 = Maverick Developments
  • 5 = Outerlight
  • 6 = Reperio Studios
  • 7 = Kuma Reality Games
  • 8 = Paleo

If you have entered anything other than the above numbers, it will be displayed instead.

| {{{engine}}} Optional: The engine on which this element works. Available options:
  • 0 = Quake
  • 1 = Goldsource
  • 2 = Source
  • 3 = Source 2

If you have entered anything other than the above numbers, it will be displayed instead.

| {{{in}}} Optional: Availability of this element. Available options:
  • 0 = In all games

If you have entered anything other than the above numbers, it will be displayed instead. Use icon templates with "in, also, since, removed, not", etc.

| {{{releasedate}}} Optional: Release date of the element. You can use Template:Expand so that you can write all the release dates (that is, do the same as on wikipedia)
| {{{platform}}} Optional: The platform on which this element works.
| {{{base}}} Optional: On what this element is based. It is suitable for third-party games that use existing versions of the engine and differ little from it, or it is suitable for mods to indicate which game the mod was made for.
| {{{shader}}} Optional: A list of all shaders where this element is used. It is mainly used for "Material Shader parameter", but can be used in other situations as well.
| {{{lastver}}} Optional: The last version of the element.
| {{{metascore}}} Optional: Metacritic game score. The color is selected automatically based on this table
| {{{metalink}}} Optional: link to game review. for it to work, you need to remove "https://www.metacritic.com/" from the link to the review.
| {{{old}}} Optional: This parameter will be placed at the bottom of the table with the left arrow. It is mainly intended to link to a similar article, but on which there is an older version of the element, or the version of the element on the previous game engine. It can also be used for a series of games, that is, an analog of a table with a hierarchy of the game, but more simplified. In this case, you need to enter the previous game in this parameter, based on the release date.
| {{{new}}} Optional: This parameter will be placed at the bottom of the table with the right arrow. It is mainly intended to link to a similar article, but on which there is a newer version of the element, or the version of the element on the next game engine. It can also be used for a series of games, that is, an analog of a table with a hierarchy of the game, but more simplified. In this case, you need to enter the next game in this parameter, based on the release date.
}} End of template. The text should be written after this template, without going to a new line.