Template:Infobox foobar2000 component: Difference between revisions

From Hydrogenaudio Knowledgebase
mNo edit summary
m (Added "foobar2000_legacy" parameter.)
Line 60: Line 60:
| screenshot              =  
| screenshot              =  
| caption                =  
| caption                =  
| module_name           =  
| module_name             =  
| developer              =  
| developer              =  
| repository              =  
| repository              =  
Line 72: Line 72:
| foobar2000_maximum      =  
| foobar2000_maximum      =  
| foobar2000_architecture =  
| foobar2000_architecture =  
| foobar2000_legacy      =
| foobar2000_ui_module    =  
| foobar2000_ui_module    =  
| use                    =  
| use                    =  
Line 86: Line 87:
; foobar2000_architecture
; foobar2000_architecture
: This should be <code>x86 32-bit</code>, <code>x86 64-bit</code>, or both.
: This should be <code>x86 32-bit</code>, <code>x86 64-bit</code>, or both.
; foobar2000_legacy
: Whether the component is considered "legacy", i.e. it does not work as expected with foobar2000 v2.0 and later. This should be either <code>true</code> or <code>false</code>. Leaving this parameter blank is the equivalent of <code>false</code>.
; foobar2000_ui_module
; foobar2000_ui_module
: This should be either <code>Default UI</code>, <code>Columns UI</code>, or both. If left blank, the field will show "N/A".
: This should be either <code>Default UI</code>, <code>Columns UI</code>, or both. If left blank, the field will show "N/A".
Line 92: Line 95:
<includeonly>[[Category:foobar2000|{{{name}}}]]
<includeonly>[[Category:foobar2000|{{{name}}}]]
{{#switch: {{{use}}}
{{#switch: {{{use}}}
| Diagnostic    = [[Category:foobar2000 diagnostic components|{{{name}}}]]
| Diagnostic    = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy diagnostic components|{{{name}}}]] | [[Category:foobar2000 diagnostic components|{{{name}}}]] }}
| DSP          = [[Category:foobar2000 DSP components|{{{name}}}]]
| DSP          = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy DSP components|{{{name}}}]] | [[Category:foobar2000 DSP components|{{{name}}}]] }}
| Decoder
| Decoder
| Input        = [[Category:foobar2000 input components|{{{name}}}]]
| Input        = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy input components|{{{name}}}]] | [[Category:foobar2000 input components|{{{name}}}]] }}
| Lyrics        = [[Category:foobar2000 lyrics components|{{{name}}}]]
| Lyrics        = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy lyrics components|{{{name}}}]] | [[Category:foobar2000 lyrics components|{{{name}}}]] }}
| Output        = [[Category:foobar2000 output components|{{{name}}}]]
| Output        = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy output components|{{{name}}}]] | [[Category:foobar2000 output components|{{{name}}}]] }}
| Tagging      = [[Category:foobar2000 tagging components|{{{name}}}]]
| Tagging      = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy tagging components|{{{name}}}]] | [[Category:foobar2000 tagging components|{{{name}}}]] }}
| UI            = [[Category:foobar2000 UI components|{{{name}}}]]
| UI            = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy UI components|{{{name}}}]] | [[Category:foobar2000 UI components|{{{name}}}]] }}
| Visualization = [[Category:foobar2000 visualization components|{{{name}}}]]
| Visualization = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy visualization components|{{{name}}}]] | [[Category:foobar2000 visualization components|{{{name}}}]] }}
| [[Category:foobar2000 components|{{{name}}}]]
| {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy components|{{{name}}}]] | [[Category:foobar2000 components|{{{name}}}]] }}
}}
}}
{{#switch: {{#sub:{{{foobar2000_ui_module}}}|0|10}}
{{#switch: {{#sub:{{{foobar2000_ui_module}}}|0|10}}

Revision as of 13:39, 5 August 2023

Infobox foobar2000 component

foobar2000 component
Developer(s) TBC
Repository {{{repository}}}
Release information
Initial release {{{released}}}
Stable release TBC
Preview release N/A
foobar2000 compatibility
Minimum version TBC
Maximum version {{{foobar2000_maximum}}}
Processor architecture {{{foobar2000_architecture}}}
UI module(s) N/A
Additional information
Use TBC
License {{{license}}}
Discussion thread {{{discussion_thread}}}
View all components

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:

{{infobox foobar2000 component
| name                    = 
| screenshot              = 
| caption                 = 
| module_name             = 
| developer               = 
| repository              = 
| released                = 
| released_ref            = 
| stable_release          = 
| stable_release_date     = 
| preview_release         = 
| preview_release_date    = 
| foobar2000_minimum      = 
| foobar2000_maximum      = 
| foobar2000_architecture = 
| foobar2000_legacy       = 
| 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, i.e. [https://www.example.com Example].
<ref> tags are not required and should not be used.
foobar2000_architecture
This should be x86 32-bit, x86 64-bit, or both.
foobar2000_legacy
Whether the component is considered "legacy", i.e. it does not work as expected with foobar2000 v2.0 and later. This should be either true or false. Leaving this parameter blank is the equivalent of false.
foobar2000_ui_module
This should be either Default UI, Columns UI, or both. If left blank, the field will show "N/A".