Jump to content

User:Korth/Sandbox: Difference between revisions

From Hydrogenaudio Knowledgebase
Korth (talk | contribs)
mNo edit summary
Korth (talk | contribs)
m Replaced content with "{{#vardefine:tableclass|plainlinks mw-collapsible{{#if:{{{hidden|}}}| mw-collapsed}}}} {| class="{{#var:tableclass}}" style="width: 256px; border: solid 1px #AAAAAA;" |+ Click to Expand |- | This is a test of collapsible tables. |}"
Tag: Replaced
Line 1: Line 1:
{| class="plainlinks mw-collapsible{{#if:{{{hidden|}}}| mw-collapsed}}" style="width: 256px; border: solid 1px #AAAAAA; background-color: #F9F9F9; float: right; clear: both; margin: 0 0 1em 1em;"
{{#vardefine:tableclass|plainlinks mw-collapsible{{#if:{{{hidden|}}}| mw-collapsed}}}}
|+ class="nowrap" style="font-weight: bold" | [[Exact Audio Copy]] guides
! colspan="2" style="background: #DDDDDD;" | Configuration
|-
|
* [[EAC configuration]]
----
* [[EAC Options]]
* [[EAC Drive Options]]
* [[EAC Compression Options]]
* [[EAC Metadata Options]]
* [[EAC WAV Editor Options]]
----
* [[EAC Configuration Wizard]]
|-
! colspan="2" style="background: #DDDDDD;" | Compression
|-
|
* [[EAC and AAC (neroAac)‎]]
* [[EAC and AAC (qaac)‎]]
* [[EAC and ALAC (FFmpeg)‎]]
* [[EAC and ALAC (qaac)‎]]
* [[EAC and ALAC (refalac)‎‎‎]]
* [[EAC and FLAC]]
* [[EAC and Lame|EAC and LAME]]
* [[EAC and LossyWAV]]
* [[EAC and Monkey's Audio]]
* [[EAC and Musepack]]
* [[EAC and Ogg Vorbis]]
* [[EAC and Opus]]
* [[EAC and TAK]]
* [[EAC and WavPack]]
|-
! colspan="2" style="background: #DDDDDD;" | Other
|-
|
* [[EAC Gap Settings]]
* [[EAC and Cue Sheets]]
* [[EAC Lossless Backup]]
|-
|}
<includeonly>{{#ifeq: {{PAGENAME}} | Exact Audio Copy | | {{#if:{{{noeacguides|{{{3|}}}}}}| |[[Category:EAC Guides{{#if:{{{sort|{{{1|}}}}}}|{{!}}{{{sort|{{{1}}}}}}}}]]}}{{#if:{{{encoder|{{{2|}}}}}}|[[Category:EAC External Compression Guides{{#if:{{{sort|{{{1|}}}}}}|{{!}}{{{sort|{{{1}}}}}}}}]]}} }}</includeonly><noinclude>
== Usage ==
This template displays a sidebar table of [[Exact Audio Copy]] guides and categorizes the page accordingly. It should be placed at the '''top of the page''', before any other content, to ensure the guide table appears in the correct position.
 
=== What It Does ===
* '''Displays''' a floating table of EAC-related guide links.
* '''Automatically adds''' the page to [[:Category:EAC Guides]].
* '''Optionally adds''' the page to [[:Category:EAC External Compression Guides]] for external encoder-related guides if the second parameter (`encoder`) is set.
* '''Optionally excludes''' the page from [[:Category:EAC Guides]] if the third parameter (`noeacguides`) is set.
* '''Optionally sorts''' the page within added categories using the first parameter (`sort`).
* '''Automatically excludes''' the page titled [[Exact Audio Copy]] from all categorization.
 
=== Named Parameters ===
* '''sort''' (first parameter) - Sets the sort key used in both categories.
* '''encoder''' (second parameter) - If set (e.g., `yes`), adds the page to [[:Category:EAC External Compression Guides]].
* '''noeacguides''' (third parameter) - If set (e.g., `yes`), prevents the page from being added to [[:Category:EAC Guides]].
* '''hidden''' – If set (e.g., `yes`), the guide table will be collapsed by default.
 
=== Syntax ===
You can use either named or positional parameters (see table below):


<div style="clear: both;"></div>
{| class="{{#var:tableclass}}" style="width: 256px; border: solid 1px #AAAAAA;"
{| class="wikitable"
|+ Click to Expand
! Syntax !! Description
|-
| <nowiki>{{EAC guides}}</nowiki> || Displays the guide table and adds the page to '''[[:Category:EAC Guides]]''' only
|-
| <nowiki>{{EAC guides|sortkey}}</nowiki> || Displays the guide table and adds the page to '''[[:Category:EAC Guides]]''' with sort key "sortkey"
|-
| <nowiki>{{EAC guides|sortkey|yes}}</nowiki> || Displays the guide table and adds the page to '''[[:Category:EAC Guides]]''' and '''[[:Category:EAC External Compression Guides]]''' with sort key "sortkey"
|-
| <nowiki>{{EAC guides||yes}}</nowiki> || Displays the guide table and adds the page to '''[[:Category:EAC Guides]]''' and '''[[:Category:EAC External Compression Guides]]''' without a sort key
|-
| <nowiki>{{EAC&#160;guides|sortkey|yes|yes}}</nowiki> || Displays the guide table and adds the page to '''[[:Category:EAC External Compression Guides]]''' only (excludes '''[[:Category:EAC Guides]]''') with sort key "sortkey"
|-
|-
| <pre>{{EAC guides
| This is a test of collapsible tables.
|sort=sortkey
|encoder=yes
|noeacguides=yes
|hidden=yes}}</pre> || Same as above, using named parameters instead of positional ones. Multiline format shown for clarity. Also includes the guide table collapsed by default.
 
|}
|}
</noinclude>

Revision as of 13:23, 10 September 2025

{{#vardefine:tableclass|plainlinks mw-collapsible}}

Click to Expand
This is a test of collapsible tables.