Difference between revisions of "Template:Infobox foobar2000 component"
From Hydrogenaudio Knowledgebase
(Template created) |
Beardgoggles (Talk | contribs) m (Updated foobar2000_ui_module switch to set components as "legacy".) |
||
(98 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | {| | + | {| 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="text-align:center; font- | + | ! colspan="2" style="font-size: 125%" | {{{name|{{PAGENAME}}}}} |
+ | |- style="text-align: center; font-size: 75%; margin: 0px; padding: 0px" | ||
+ | | colspan="2" | {{#if:{{{screenshot|}}}|{{#ifeq:{{#sub:{{{screenshot}}}|2|5}}|File:|{{{screenshot}}}|{{#ifeq:{{#sub:{{{screenshot}}}|2|6}}|Image:|{{{screenshot}}}|[[File:{{{screenshot}}}|256px]]}}}}<br/>{{{caption|}}}|[[File:foobar2000 component placeholder.png|256x128px|link=|alt=]]<br/>{{{module_name|foobar2000 component}}}}} | ||
+ | |- style="vertical-align: top;" | ||
+ | | style="width: 100px" | '''Developer(s)''' | ||
+ | | {{{maintainer|{{{developer|TBC}}}}}} | ||
+ | |- {{#if: {{{repository|}}} | style="vertical-align: top;" | style="display: none;" }} | ||
+ | | '''Repository''' | ||
+ | | {{{repository}}} | ||
|- | |- | ||
− | ! colspan="2" style=" | + | ! colspan="2" style="background: #DDDDDD;" | Release information |
− | |- style=" | + | |- {{#if: {{{released|}}} | style="vertical-align: top;" | style="display: none;" }} |
− | | | + | | '''Initial release''' |
− | |- style=" | + | | {{#dateformat:{{{released}}}|mdy}}{{#if:{{{released_ref|}}}|{{#tag:ref|{{{released_ref}}}}}}} |
− | | | + | |- {{#if: {{{stable_release|}}} | style="vertical-align: top;" | style="display: none;" }} |
− | |- style=" | + | | '''Stable release''' |
− | | | + | | {{{stable_release|TBC}}} {{#if:{{{stable_release_date|}}}|({{#dateformat:{{{stable_release_date}}}|mdy}})}} |
− | |- style=" | + | |- {{#if: {{{preview_release|}}} | style="vertical-align: top;" | style="display: none;" }} |
− | | | + | | '''Preview release''' |
− | |- style=" | + | | {{{preview_release|N/A}}} {{#if:{{{preview_release_date|}}}|({{#dateformat:{{{preview_release_date}}}|mdy}})}} |
− | | | + | |- |
− | |- style=" | + | ! colspan="2" style="background: #DDDDDD;" | foobar2000 compatibility |
− | | License | + | |- {{#if: {{{foobar2000_architecture|}}} | style="vertical-align: top;" | style="display: none;" }} |
− | |- style=" | + | | '''<abbr title="Supported architecture, e.g., 32-bit, 64-bit, ARM">Architecture</abbr>''' |
− | | | + | | {{{foobar2000_architecture}}} |
− | |- style=" | + | |- style="vertical-align: top;" |
− | | | + | | '''Minimum version''' |
− | |} | + | | {{#if:{{{foobar2000_minimum|{{{foobar2000_version|{{{foobar_version|}}}}}}}}}|{{{foobar2000_minimum|{{{foobar2000_version|{{{foobar_version}}}}}}}}}|TBC}} |
− | <noinclude> | + | |- {{#if: {{{foobar2000_maximum|}}} | style="vertical-align: top;" | style="display: none;" }} |
− | == Usage == | + | | '''Maximum version''' |
− | + | | {{{foobar2000_maximum}}} | |
− | + | |- style="vertical-align: top;" | |
− | | name = | + | | '''UI module(s)''' |
− | | screenshot = | + | | {{#if:{{{foobar2000_ui_module|}}}|{{{foobar2000_ui_module}}}|N/A}} |
− | | caption = | + | |- |
− | | | + | ! colspan="2" style="background: #DDDDDD;" | Additional information |
− | | stable_release = | + | |- style="vertical-align: top;" |
− | | preview_release = | + | | '''Use''' |
− | | | + | | {{{use|TBC}}} |
− | | | + | |- {{#if: {{{license|}}} | style="vertical-align: top;" | style="display: none;" }} |
− | | | + | | '''License''' |
− | | | + | | {{{license}}} |
− | | | + | |- {{#if: {{{discussion_thread|}}} | style="vertical-align: top;" | style="display: none;" }} |
− | }} | + | | '''Discussion thread''' |
− | </pre> | + | | {{{discussion_thread}}} |
− | | | + | |- |
+ | | colspan="2" style="border-top: solid 1px #DDDDDD; font-size: smaller; text-align: center;" | {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[foobar2000:Legacy components|View all legacy components]] | [[foobar2000:Components|View all components]] }} | ||
+ | |}{{DISPLAYTITLE:foobar2000:Components/{{{name}}} ({{{module_name}}})}}{{DISPLAYTITLE:foobar2000:{{{name}}} ({{{module_name}}})}} | ||
+ | <noinclude>This infobox provides at-a-glance information for [[foobar2000]] components. | ||
+ | |||
+ | Using this template automatically adds the page to the [[:Category:foobar2000|foobar2000 category]] , so the {{code|<nowiki>{{fb2k}}</nowiki>}} template is not required. | ||
+ | |||
+ | ==Usage== | ||
+ | Insert the following template '''at the beginning''' of the article, but '''below''' any [[:Category:Hatnote templates|hatnote templates]]: | ||
+ | |||
+ | <pre style="display:table;">{{infobox foobar2000 component | ||
+ | | name = | ||
+ | | screenshot = | ||
+ | | caption = | ||
+ | | module_name = | ||
+ | | developer = | ||
+ | | repository = | ||
+ | | released = | ||
+ | | released_ref = | ||
+ | | stable_release = | ||
+ | | stable_release_date = | ||
+ | | preview_release = | ||
+ | | preview_release_date = | ||
+ | | foobar2000_architecture = | ||
+ | | foobar2000_minimum = | ||
+ | | foobar2000_maximum = | ||
+ | | foobar2000_legacy = | ||
+ | | foobar2000_ui_module = | ||
+ | | use = | ||
+ | | license = | ||
+ | }}</pre> | ||
+ | ==Fields== | ||
+ | ; screenshot | ||
+ | : An image in the following format: <code><nowiki>[[Image:...|256px]]</nowiki></code> | ||
+ | ; released | ||
+ | : The component’s release date in the following format: <code>YYYY-MM-DD</code> | ||
+ | ; released_ref | ||
+ | : 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_architecture | ||
+ | : 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 | ||
+ | : This should be either <code>Default UI</code>, <code>Columns UI</code>, or both. If left blank, the field will show "N/A". | ||
+ | [[Category:Infobox templates|Foobar2000 Component]] | ||
</noinclude> | </noinclude> | ||
+ | <includeonly>[[Category:foobar2000|{{{name}}}]] | ||
+ | {{#switch: {{{use}}} | ||
+ | | Diagnostic = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 diagnostic components (legacy)|{{{name}}}]] | [[Category:foobar2000 diagnostic components|{{{name}}}]] }} | ||
+ | | DSP = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 Legacy DSP components|{{{name}}}]] | [[Category:foobar2000 DSP components|{{{name}}}]] }} | ||
+ | | Decoder | ||
+ | | Input = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 Legacy input components|{{{name}}}]] | [[Category:foobar2000 input components|{{{name}}}]] }} | ||
+ | | Lyrics = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 Legacy lyrics components|{{{name}}}]] | [[Category:foobar2000 lyrics components|{{{name}}}]] }} | ||
+ | | Output = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 output components (legacy)|{{{name}}}]] | [[Category:foobar2000 output components|{{{name}}}]] }} | ||
+ | | Playback = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 playback components (legacy)|{{{name}}}]] | [[Category:foobar2000 playback components|{{{name}}}]] }} | ||
+ | | Tagging = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 Legacy tagging components|{{{name}}}]] | [[Category:foobar2000 tagging components|{{{name}}}]] }} | ||
+ | | UI = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 UI components (legacy)|{{{name}}}]] | [[Category:foobar2000 UI components|{{{name}}}]] }} | ||
+ | | Visualization = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 visualization components (legacy)|{{{name}}}]] | [[Category:foobar2000 visualization components|{{{name}}}]] }} | ||
+ | | {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 Legacy components|{{{name}}}]] | [[Category:foobar2000 components|{{{name}}}]] }} | ||
+ | }} | ||
+ | {{#switch: {{#sub:{{{foobar2000_ui_module}}}|0|10}} | ||
+ | | Default UI = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 Legacy Default UI components|{{{name}}}]] | [[Category:foobar2000 Default UI components|{{{name}}}]] }} | ||
+ | | Columns UI = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 Legacy Columns UI components|{{{name}}}]] | [[Category:foobar2000 Columns UI components|{{{name|}}}]] }} | ||
+ | }} | ||
+ | {{#switch: {{#sub:{{{foobar2000_ui_module}}}|-10}} | ||
+ | | Columns UI = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 Legacy Columns UI components|{{{name}}}]] | [[Category:foobar2000 Columns UI components|{{{name|}}}]] }} | ||
+ | }} | ||
+ | {{#switch: {{{maintainer|{{{developer}}}}}} | ||
+ | | Peter | ||
+ | | Peter Pawlowski | ||
+ | | Peter Pawłowski = {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 legacy 1st-party components|{{{name}}}]] | [[Category:foobar2000 1st-party components|{{{name}}}]] }} | ||
+ | | {{#ifeq: {{lc:{{{foobar2000_legacy}}}}} | true | [[Category:foobar2000 3rd-party components (legacy)|{{{name}}}]] | [[Category:foobar2000 3rd-Party Components|{{{name}}}]] }} | ||
+ | }}</includeonly> |
Latest revision as of 17:54, 15 August 2023
Infobox foobar2000 component | |
---|---|
foobar2000 component | |
Developer(s) | TBC |
Release information | |
foobar2000 compatibility | |
Minimum version | TBC |
UI module(s) | N/A |
Additional information | |
Use | TBC |
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_architecture = | foobar2000_minimum = | foobar2000_maximum = | 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
orfalse
. Leaving this parameter blank is the equivalent offalse
. - foobar2000_ui_module
- This should be either
Default UI
,Columns UI
, or both. If left blank, the field will show "N/A".