Module:Convert armoire event/doc
Jump to navigation
Jump to search
This is the documentation subpage of Module:Convert armoire event. It contains usage information that is not part of the underlying module.
Usage
This module converts strings of the form "A - N" (where N is a number) into "A (N)", typically to format seasonal events in {{Armoire list result format}}.
If the input does not match the expected format, it is returned unchanged.
Syntax
{{#invoke:Convert armoire event|convert|input}}
Parameters
| Parameter | Description |
|---|---|
1 |
The input string to convert. |
Examples
| Input | Output |
|---|---|
{{#invoke:Convert armoire event|convert|Hatching-tide - 2025}} |
Hatching-tide (2025) |
{{#invoke:Convert armoire event|convert|Make It Rain - 2025}} |
The Make It Rain (2025) |
{{#invoke:Convert armoire event|convert|No dash here}} |
No dash here |
{{#invoke:Convert armoire event|convert|Sword - Longsword}} |
Sword - Longsword |
Notes
- The separator must be a dash surrounded by single spaces (
-).- Variants like
A-BorA - Bwill not be converted.
- Variants like
- The part after the separator must be a whole number (e.g. a year). Non-numeric values will not be converted.
- If the input contains "Make It Rain", the output is prefixed with "The ".