Template:Software inline

From Valve Developer Community
Jump to: navigation, search

This template is an improved and simplified version of template Template:Software.

Parameters

  • {{{1}}}, {{{2}}} – specially prepared code is written into these parameters for the convenient ability to select styles and display type in child templates (see example below).
  • {{{name}}} – The name that will be displayed. It is recommended to use the String template in this parameter to add a name translation.
  • {{{link}}} – The link that will be used. It is recommended to combine this parameter with #switch: if you want to add the ability to specify more than one link. For example, links to categories related to this game.
  • {{{icon}}} – An icon that will be displayed next to the game name. Also clickable. You only need to enter the name and format of the image, for example, SomeImage.png
  • {{{icon size}}} – icon size (default is 16px). Only accepts px. In this parameter the same parameter is specified for the ability to specify the size of the icon in child templates.
  • {{{color}}} – The color that is used for certain styles of this template. Supports hex, rgb, hsl, etc.

Example

Template:Portal2 (not the actual one)
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
{{Software inline | {{{1|}}} | {{{2|{{{1|}}}}}} | color = #23B1E5 | icon = Portal2-16px.png | icon size = {{{icon size|}}} | link = {{{link|{{Pref}}Portal 2}}} | name = {{String|en=Portal 2|ru=Портал 2}} }}

Child Usage

These examples are written directly using this template, since the {{Portal2}}, {{Hl2}}, {{Hammer}} and other templates do not currently use this template as their base.