Template:Software inline

From Valve Developer Community
Jump to navigation Jump to 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).
  • {{{color}}} – The color that is used for colored style of this template. Supports hex, rgb, hsl, etc.
  • {{{icon}}} – An icon that will be displayed next to the game name. You only need to enter the name and format of the image, for example, SomeImage.png.
  • {{{link}}} – The link that will be used.
  • {{{name}}} – The name that will be displayed.

Example

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

Child Usage

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