Difference between revisions of "Template:Infobox foobar2000 component"

From Hydrogenaudio Knowledgebase
Jump to: navigation, search
m (Minor code fix.)
m (Added "Lyrics" as category switch)
(11 intermediate revisions by one user not shown)
Line 3: Line 3:
 
! colspan="2" style="font-size: 125%" | {{{name|{{PAGENAME}}}}}
 
! colspan="2" style="font-size: 125%" | {{{name|{{PAGENAME}}}}}
 
|- style="text-align: center; font-size: 75%; margin: 0px; padding: 0px"
 
|- style="text-align: center; font-size: 75%; margin: 0px; padding: 0px"
| colspan="2" | {{#if: {{{screenshot|}}} | {{#ifeq: {{#sub:{{{screenshot}}}|0|2}} | <nowiki>[[</nowiki> | {{{screenshot}}} | <nowiki>[[File:</nowiki>{{{screenshot}}}<nowiki>|240px]]</nowiki> }} | [[Image:foobar2000 component placeholder.png|256x128px|link=|alt=]] }}<br/>{{{caption|{{{module_name|}}}}}}
+
| colspan="2" | {{{screenshot|[[File:foobar2000 component placeholder.png|256x128px|link=|alt=]]}}}<br/>{{{caption|{{{module_name|}}}}}}
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| style="width: 100px" | '''Developer(s)'''
 
| style="width: 100px" | '''Developer(s)'''
Line 26: Line 26:
 
| '''Minimum version'''
 
| '''Minimum version'''
 
| {{#if:{{{foobar2000_minimum|{{{foobar2000_version|{{{foobar_version|}}}}}}}}}|{{{foobar2000_minimum|{{{foobar2000_version|{{{foobar_version}}}}}}}}}|TBC}}
 
| {{#if:{{{foobar2000_minimum|{{{foobar2000_version|{{{foobar_version|}}}}}}}}}|{{{foobar2000_minimum|{{{foobar2000_version|{{{foobar_version}}}}}}}}}|TBC}}
 +
|- {{#if: {{{foobar2000_maximum|}}} | style="vertical-align: top;" | style="display: none;" }}
 +
| '''Maximum version'''
 +
| {{{foobar2000_maximum}}}
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| '''UI module(s)'''
 
| '''UI module(s)'''
Line 40: Line 43:
 
| '''Discussion thread'''
 
| '''Discussion thread'''
 
| {{{discussion_thread|N/A}}}
 
| {{{discussion_thread|N/A}}}
|}
+
|}{{DISPLAYTITLE:foobar2000:Components/{{{name}}} ({{{module_name}}})}}{{DISPLAYTITLE:foobar2000:{{{name}}} ({{{module_name}}})}}
 
<noinclude>This infobox provides at-a-glance information for [[foobar2000]] components.
 
<noinclude>This infobox provides at-a-glance information for [[foobar2000]] components.
  
Line 48: Line 51:
 
Insert the following template '''at the beginning''' of the article, but '''below''' any [[:Category:Hatnote templates|hatnote templates]]:
 
Insert the following template '''at the beginning''' of the article, but '''below''' any [[:Category:Hatnote templates|hatnote templates]]:
  
<pre style="display:table;">{{Foobar Component Infobox
+
<pre style="display:table;">{{infobox foobar2000 component
 
| name                =  
 
| name                =  
 
| screenshot          =  
 
| screenshot          =  
Line 62: Line 65:
 
| preview_release_date =  
 
| preview_release_date =  
 
| foobar2000_minimum  =  
 
| foobar2000_minimum  =  
 +
| foobar2000_maximum  =
 
| foobar2000_ui_module =  
 
| foobar2000_ui_module =  
 
| use                  =  
 
| use                  =  
Line 74: Line 78:
 
: This should be a link to source of the release date, using standard wiki formatting. {{code|<nowiki><ref></nowiki>}} tags are not required and '''should not''' be used.
 
: This should be a link to source of the release date, using standard wiki formatting. {{code|<nowiki><ref></nowiki>}} tags are not required and '''should not''' be used.
 
; foobar2000_ui_module
 
; foobar2000_ui_module
: This should be either "Default User Inferface", "Columns UI", or both. If left blank, the field will show "N/A".
+
: This should be either "Default UI", "Columns UI", or both. If left blank, the field will show "N/A".
 
[[Category:Infobox templates|Foobar2000 Component]]
 
[[Category:Infobox templates|Foobar2000 Component]]
 
</noinclude>
 
</noinclude>
 
<includeonly>[[Category:foobar2000]]
 
<includeonly>[[Category:foobar2000]]
 
{{#switch: {{{use}}}
 
{{#switch: {{{use}}}
 +
| Diagnostic    = [[Category:foobar2000 diagnostic components|{{{name}}}]]
 
| DSP          = [[Category:foobar2000 DSP components|{{{name}}}]]
 
| DSP          = [[Category:foobar2000 DSP components|{{{name}}}]]
 
| Decoder
 
| Decoder
 
| Input        = [[Category:foobar2000 input components|{{{name}}}]]
 
| Input        = [[Category:foobar2000 input components|{{{name}}}]]
 +
| Lyrics        = [[Category:foobar2000 lyrics components|{{{name}}}]]
 
| Output        = [[Category:foobar2000 output components|{{{name}}}]]
 
| Output        = [[Category:foobar2000 output components|{{{name}}}]]
 
| Tagging      = [[Category:foobar2000 tagging components|{{{name}}}]]
 
| Tagging      = [[Category:foobar2000 tagging components|{{{name}}}]]

Revision as of 17:47, 9 September 2021

Infobox 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}}}
UI module(s) N/A
Additional information
Use TBC
License {{{license}}}
Discussion thread N/A

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_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 UI", "Columns UI", or both. If left blank, the field will show "N/A".