Template:IDs2/Doc

From Starfield Wiki
Jump to: navigation, search

Summary[edit]

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[edit]

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[edit]

Normal[edit]

{{IDs2|00012345,xx06789a}}

00012345, xx06789a

Hovers[edit]

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

00000007, 00000014

Notes[edit]

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