Difference between revisions of "Template:Infobox foobar2000 component"

From Hydrogenaudio Knowledgebase
Jump to: navigation, search
m (Updated to hide empty "stable_release" variable.)
m (Minor code fixes.)
Line 22: Line 22:
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| '''Minimum version'''
 
| '''Minimum version'''
| {{{foobar2000_version|{{{foobar_version|TBC}}}}}}
+
| {{#if:{{{foobar2000_version|{{{foobar_version|}}}}}}|{{{foobar2000_version|{{{foobar_version|}}}}}}|TBC}}
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| '''UI module(s)'''
 
| '''UI module(s)'''
| {{{foobar2000_ui_module|N/A}}}
+
| {{#if:{{{foobar2000_ui_module|}}}|{{{foobar2000_ui_module}}}|N/A}}
 
|-
 
|-
 
! colspan="2" style="background: #DDDDDD;" | Additional information
 
! colspan="2" style="background: #DDDDDD;" | Additional information
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| '''Use'''
 
| '''Use'''
| {{{use|TBC}}}
+
| {{#if:{{{use|}}}|{{{use}}}|TBC}}
 
|- {{#if: {{{license|}}} | style="vertical-align: top;" | style="display: none;" }}
 
|- {{#if: {{{license|}}} | style="vertical-align: top;" | style="display: none;" }}
 
| '''License'''
 
| '''License'''

Revision as of 13:58, 14 July 2019

This infobox provides at-a-glance information for foobar2000 components.

Using this template automatically adds the page to the foobar2000 category , so the {{fb2k}} template is not required.

Usage

Insert the following template at the beginning of the article, but below any hatnote templates:

{{Foobar Component Infobox
| name                 = 
| screenshot           = 
| caption              = 
| module_name          = 
| developer            = 
| released             = 
| released_ref         = 
| stable_release       = 
| stable_release_date  = 
| preview_release      = 
| preview_release_date = 
| foobar2000_version   = 
| foobar2000_ui_module = 
| use                  = 
| license              = 
}}

Fields

screenshot
An image in the following format: [[Image:...|256px]]
released
The component’s release date in the following format: YYYY-MM-DD
released_ref
This should be a link to source of the release date, using standard wiki formatting. <ref> tags are not required and should not be used.
foobar2000_ui_module
This should be either "Default User Inferface", "Columns UI", or both. If left blank, the field will show "N/A".