Template:Catalog number entry: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ #if:{{{2|}}} | {{{1}}}{{-}}{{{2}}} | {{{1}}} }}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage, not here! --> </noinclude>") |
m (Protected "Template:Catalog number entry" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
(No difference)
|
Latest revision as of 05:56, 5 August 2023
{{{1}}}
This template is to format the Catalog Number on CD pages using a non-breaking hyphen to keep them from being split by a line break. It should be used within the parameters of {{Catalog number infobox}}.
Usage
- {{Catalog number entry
|Text before hyphen |Text after hypen}}
- Using shortcut
- {{cne
|Text before hyphen |Text after hyphen}}
- If there is no hyphen in the Catalog number then just include the entire thing in the first parameter.
- {{Catalog number entry
|Not hyphened catalog number}}
Examples
{{Catalog number entry|FACA|0312}}
→ FACA‑0312{{cne|FACA|0312}}
→ FACA‑0312
- When using it with {{Catalog number infobox}}
Input | Output | |
---|---|---|
Without | {{cni|FACA-0312|FACA-0313|FACA-0314}}
|
Limited Edition: FACA-0313 Regular Edition: FACA-0312 Animate Limited Edition: FACA-0314 |
With | {{cni|FACA-0312|FACA-0313|{{cne|FACA|0314}}}}
|
Limited Edition: FACA-0313 Regular Edition: FACA-0312 Animate Limited Edition: FACA‑0314 |
TemplateData
Formats the CD catalog number with a non-breaking hyphen. Using just the first parameter also supports non-hyphened catalog numbers
Parameter | Description | Type | Status | |
---|---|---|---|---|
Before | 1 | Text before the hyphen.
| String | required |
After | 2 | Text after the hyphen.
| String | optional |