Difference between revisions of "Template:Infobox foobar2000 component"

From Hydrogenaudio Knowledgebase
Jump to: navigation, search
m (Partial reversion of previous change.)
m (Minor code fix.)
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
{| class="ha-infobox" style="background-color: #F9F9F9; border: solid 1px #AAAAAA; float: right; font-size: 88%; margin: 0 0 1em 1em; width: 256px;"
+
{| class="infobox" style="background-color: #F9F9F9; border: solid 1px #AAAAAA; float: right; font-size: 88%; margin: 0 0 1em 1em; width: 256px;"
 
|-
 
|-
 
! 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" | {{{screenshot|[[File:foobar2000 component placeholder.png|256x128px|link=|alt=]]}}}<br/>{{{caption|{{{module_name|}}}}}}
+
| colspan="2" | {{#if: {{{screenshot|}}}|{{{screenshot}}}|[[File:foobar2000 component placeholder.png|256x128px|link=|alt=]]}}<br/>{{{caption|{{{module_name|foobar2000 component}}}}}}
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| style="width: 100px" | '''Developer(s)'''
 
| style="width: 100px" | '''Developer(s)'''
Line 27: Line 27:
 
| {{#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;" }}
 
|- {{#if: {{{foobar2000_maximum|}}} | style="vertical-align: top;" | style="display: none;" }}
| '''Maximum version'''
+
| '''Maximum&nbsp;version'''
 
| {{{foobar2000_maximum}}}
 
| {{{foobar2000_maximum}}}
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
Line 36: Line 36:
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| '''Use'''
 
| '''Use'''
| {{#if:{{{use|}}}|{{{use}}}|TBC}}
+
| {{{use|TBC}}}
 
|- {{#if: {{{license|}}} | style="vertical-align: top;" | style="display: none;" }}
 
|- {{#if: {{{license|}}} | style="vertical-align: top;" | style="display: none;" }}
 
| '''License'''
 
| '''License'''
Line 42: Line 42:
 
|- {{#if: {{{discussion_thread|}}} | style="vertical-align: top;" | style="display: none;" }}
 
|- {{#if: {{{discussion_thread|}}} | style="vertical-align: top;" | style="display: none;" }}
 
| '''Discussion thread'''
 
| '''Discussion thread'''
| {{{discussion_thread|N/A}}}
+
| {{{discussion_thread}}}
 +
|-
 +
| colspan="2" style="border-top: solid 1px #DDDDDD; font-size: smaller; text-align: center;" | [[foobar2000:Components|View all components]]
 
|}{{DISPLAYTITLE:foobar2000:Components/{{{name}}} ({{{module_name}}})}}{{DISPLAYTITLE:foobar2000:{{{name}}} ({{{module_name}}})}}
 
|}{{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 50:
 
Using this template automatically adds the page to the [[:Category:foobar2000|foobar2000 category]] , so the {{code|<nowiki>{{fb2k}}</nowiki>}} template is not required.
 
Using this template automatically adds the page to the [[:Category:foobar2000|foobar2000 category]] , so the {{code|<nowiki>{{fb2k}}</nowiki>}} template is not required.
  
== Usage ==
+
==Usage==
 
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]]:
  
Line 70: Line 72:
 
| license              =  
 
| license              =  
 
}}</pre>
 
}}</pre>
== Fields ==
+
==Fields==
 
; screenshot
 
; screenshot
: An image in the following format: {{code|<nowiki>[[Image:...|256px]]</nowiki>}}
+
: An image in the following format: <code><nowiki>[[Image:...|256px]]</nowiki></code>
 
; released
 
; released
: The component’s release date in the following format: {{code|YYYY-MM-DD}}
+
: The component’s release date in the following format: <code>YYYY-MM-DD</code>
 
; released_ref
 
; released_ref
: 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, i.e. <code><nowiki>[https://www.example.com Example]</nowiki></code>.
 +
: <code><nowiki><ref></nowiki></code> tags are not required and '''should not''' be used.
 
; foobar2000_ui_module
 
; foobar2000_ui_module
 
: This should be either "Default UI", "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".
Line 82: Line 85:
 
</noinclude>
 
</noinclude>
 
<includeonly>[[Category:foobar2000|{{{name}}}]]
 
<includeonly>[[Category:foobar2000|{{{name}}}]]
{{#switch: {{{maintainer|{{{developer}}}}}}
 
| Peter
 
| Peter Pawlowski
 
| Peter Pawłowski = [[Category:foobar2000 1st-party components|{{{name}}}]]
 
| [[Category:foobar2000 3rd-Party Components|{{{name}}}]]
 
}}
 
{{#switch: {{#sub:{{{foobar2000_ui_module}}}|0|10}}
 
| Default UI = [[Category:foobar2000 Default UI components|{{{name|}}}]]
 
| Columns UI = [[Category:foobar2000 Columns UI components|{{{name|}}}]]
 
}}
 
{{#switch: {{#sub:{{{foobar2000_ui_module}}}|-10}}
 
| Columns UI = [[Category:foobar2000 Columns UI components|{{{name|}}}]]
 
}}
 
 
{{#switch: {{{use}}}
 
{{#switch: {{{use}}}
 
| Diagnostic    = [[Category:foobar2000 diagnostic components|{{{name}}}]]
 
| Diagnostic    = [[Category:foobar2000 diagnostic components|{{{name}}}]]
Line 107: Line 97:
 
| [[Category:foobar2000 components|{{{name}}}]]
 
| [[Category:foobar2000 components|{{{name}}}]]
 
}}
 
}}
</includeonly>
+
{{#switch: {{#sub:{{{foobar2000_ui_module}}}|0|10}}
 +
| Default UI = [[Category:foobar2000 Default UI components|{{{name|}}}]]
 +
| Columns UI = [[Category:foobar2000 Columns UI components|{{{name|}}}]]
 +
}}
 +
{{#switch: {{#sub:{{{foobar2000_ui_module}}}|-10}}
 +
| Columns UI = [[Category:foobar2000 Columns UI components|{{{name|}}}]]
 +
}}
 +
{{#switch: {{{maintainer|{{{developer}}}}}}
 +
| Peter
 +
| Peter Pawlowski
 +
| Peter Pawłowski = [[Category:foobar2000 1st-party components|{{{name}}}]]
 +
| [[Category:foobar2000 3rd-Party Components|{{{name}}}]]
 +
}}</includeonly>

Revision as of 16:33, 17 June 2022

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}}}
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_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_ui_module
This should be either "Default UI", "Columns UI", or both. If left blank, the field will show "N/A".