Semi Protection

Template:IDs2

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search
Due to the sensitive nature of this template or the fact that it is used on a large number of pages, it has been semi-protected to prevent site-wide damage by vandal bots.
Editors: In order to minimize the impact on our servers, please use sandboxes to make and test changes to widely used templates before deployment.
For more information, please see this article's talk page.

Summary

This splits up a single text string and formats the resulting IDs. This will probably primarily be of use inside other templates, where it's desirable to have only a single parameter for all IDs rather than multiple parameters.

Parameters

IDs2
Parameter Scope Description
1 required The text to split up.
delimiter optional The text to split on (defaults to ",").
sep optional The separator to use in the output (defaults to ", ").
hover optional If specified, text sections should come in pairs with the first one being the ID and the second one being the hover text; otherwise, each section of text should be an ID.
par optional This will be passed down to the individual IDs, and each will be enclosed in parentheses.
addbefore optional This text appears before the list of IDs (using the idall style), but does not count as an ID itself. Useful for adding appropriately sized parentheses around an entire list, or introductory text.
addafter optional This text appears after the list of IDs (using the idall style), but does not count as an ID itself. Useful for adding appropriately sized parentheses around an entire list, or trailing text.

Examples

Normal

{{IDs2|00012345,xx06789a}}

00012345, xx06789a

Hovers

{{IDs2|00000007,Player FormID,00000014,Player RefID|hover=1}}

00000007, 00000014

Notes

  • This template currently makes use of the IDs/Entry sub-template, since having its own would be redundant.