Template:EAC guides: Difference between revisions
Appearance
m added positions of named parameters |
m added collapsible table for some pages |
||
| Line 1: | Line 1: | ||
{| class="plainlinks" style="width: 256px; border: solid 1px #AAAAAA; background-color: #F9F9F9; float: right; clear: both; margin: 0 0 1em 1em;" | {| class="plainlinks collapsible{{#if:{{{hidden|}}}| collapsed}}" style="width: 256px; border: solid 1px #AAAAAA; background-color: #F9F9F9; float: right; clear: both; margin: 0 0 1em 1em;" | ||
|+ class="nowrap" style="font-weight: bold" | [[Exact Audio Copy]] guides | |+ class="nowrap" style="font-weight: bold" | [[Exact Audio Copy]] guides | ||
! colspan="2" style="background: #DDDDDD;" | Configuration | ! colspan="2" style="background: #DDDDDD;" | Configuration | ||
| Line 56: | Line 56: | ||
* '''encoder''' (second parameter) - If set (e.g., `yes`), adds the page to [[:Category:EAC External Compression Guides]]. | * '''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]]. | * '''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 === | === Syntax === | ||
| Line 77: | Line 78: | ||
|sort=sortkey | |sort=sortkey | ||
|encoder=yes | |encoder=yes | ||
|noeacguides=yes}}</pre> || Same as above, using named parameters instead of positional ones. Multiline format shown for clarity. | |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> | </noinclude> | ||
Revision as of 12:23, 10 September 2025
| Configuration | |
|---|---|
|
| |
| Compression | |
| Other | |
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):
| Syntax | Description |
|---|---|
| {{EAC guides}} | Displays the guide table and adds the page to Category:EAC Guides only |
| {{EAC guides|sortkey}} | Displays the guide table and adds the page to Category:EAC Guides with sort key "sortkey" |
| {{EAC guides|sortkey|yes}} | Displays the guide table and adds the page to Category:EAC Guides and Category:EAC External Compression Guides with sort key "sortkey" |
| {{EAC guides||yes}} | Displays the guide table and adds the page to Category:EAC Guides and Category:EAC External Compression Guides without a sort key |
| {{EAC guides|sortkey|yes|yes}} | Displays the guide table and adds the page to Category:EAC External Compression Guides only (excludes Category:EAC Guides) with sort key "sortkey" |
{{EAC guides
|sort=sortkey
|encoder=yes
|noeacguides=yes
|hidden=yes}} |
Same as above, using named parameters instead of positional ones. Multiline format shown for clarity. Also includes the guide table collapsed by default. |