Template:Uid

From bg3.wiki
Jump to navigation Jump to search
Template documentation

Displays a collapsible piece of game data like a UID or UUID, with an accompanying Norbyte link.

Defaults to a UID, with parameter type being able to override.

The helper templates {{uuid}}, {{stats}}, and {{filename}} just call this one with a different type value.

Markup Renders as
{{uid | MAG_Throwable_Pike }}
UID MAG_Throwable_Pike
https://bg3.norbyte.dev/search?q=name:MAG_Throwable_Pike
{{uid | type = UID | MAG_Throwable_Pike }}
UID MAG_Throwable_Pike
https://bg3.norbyte.dev/search?q=name:MAG_Throwable_Pike
{{uid | type = Stats | MAG_Duergar_Sword_KingsKnife }}
Stats MAG_Duergar_Sword_KingsKnife
https://bg3.norbyte.dev/search?q=name:MAG_Duergar_Sword_KingsKnife
{{uid | type = UUID | 025e162a-45ec-4f4c-89da-04d8e8dfe606 }}
UUID 025e162a-45ec-4f4c-89da-04d8e8dfe606
https://bg3.norbyte.dev/search?q=uuid:025e162a-45ec-4f4c-89da-04d8e8dfe606
{{uid | type = File | Foobar.png }}
File Foobar.png
https://bg3.norbyte.dev/search?q=Foobar.png

Side-by-side appearance:

Markup
{{uid | Test 1 }} {{uid | type = uuid | Test 2 }} {{uid | type = stats | Test 3 }}
Renders as
UID Test 1
https://bg3.norbyte.dev/search?q=name:Test+1
UUID Test 2
https://bg3.norbyte.dev/search?q=uuid:Test+2
Stats Test 3
https://bg3.norbyte.dev/search?q=name:Test+3