Template:ID/Doc
Summary[edit]
This template formats form IDs along with a quick explanation of dynamic form IDs and a link to a larger explanation, if appropriate. It can optionally add text before or after the ID, though apart from parentheses, this is discouraged. Invalid form IDs will be corrected if possible and added to the Pages with Invalid IDs category.
Parameters[edit]
Parameter | Scope | Description |
---|---|---|
1 | required | The form ID. This must be exactly 8 characters and begin with 00 or xx. In Skyrim space, 01 (which will almost always be Update.esm) is also allowed. |
par | optional | If specified, parentheses are added around the ID. |
addbefore | optional | Text to add before the ID. |
addafter | optional | Text to add before the ID. |
nocat | optional | If specified, the ID will not be categorized as invalid, even if the template believes it is. This is on by default outside of gamespace. |
nofmt | optional | If specified, no formatting will be applied to the form ID. This is useful for cases like the {{Pre}} template, where existing formatting should take precedence over the user's preferences. |
Examples[edit]
{{ID|00123456}}
00123456
{{ID|ffabc123}}
ffabc123
{{ID|xx789abc|par=1}}
(xx789abc)
CSS Styles[edit]
The template makes use of three different CSS styles to format the IDs and their surrounding text. If you don't like the default formatting, you can edit these styles to suit your individual preferences by changing your user CSS page. To do so, click on preferences, Appearance, and then either the skin-specific "Custom CSS" or the one for all skins down at the bottom.
CSS style | Affects |
---|---|
idall |
The entire contents of the ID template, including any text before or after it. |
idref |
The ID itself, not including outside text or parentheses. |
idcase |
This affects only the last six characters in the ID and is intended to allow users to override whether hex values display in upper- or lower-case. If not specified, they will be displayed as entered on the page. |
Sample CSS Entries[edit]
The following CSS entries would make all IDs and their surrounding text appear at regular size, while the ID itself would display in green with the Georgia font. Hex digits would be shown in upper-case (e.g., {{ID|00123abc|par=1}} would give (00123abc)).
.idall { font-size:100%; } .idref { color:green; font-family:Georgia; } .idcase { text-transform:uppercase; }