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. If the type is default (UID), then the search type optional parameter can be used to refine the automatically added Norbyte link, limiting the search to a specific type of game data.

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 | MAG_Throwable_Pike | search type = item }}
UID MAG_Throwable_Pike
https://bg3.norbyte.dev/search?q=name:MAG_Throwable_Pike+type:item
{{uid | type = Stats | MAG_Duergar_Sword_KingsKnife }}
Stats MAG_Duergar_Sword_KingsKnife
https://bg3.norbyte.dev/search?q=name:MAG_Duergar_Sword_KingsKnife+type:stat
{{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

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=Test+1
UUID Test 2
https://bg3.norbyte.dev/search?q=Test+2
Stats Test 3
https://bg3.norbyte.dev/search?q=Test+3+type:stat