~ # Term Reference Alias Functionality Test

~ This document demonstrates the new alias functionality for external term references.

~ ## Basic Usage with Aliases

~ You can now create a transcluded reference with an alias:

[[tref: toip1, non-transferable-identifier, nti]]

~ No local definition found.

~ This creates a transcluded term that can be referenced in multiple ways:

~ - Using the full term name: [[ref: non-transferable-identifier]]
~ - Using the alias: [[ref: nti]]

~ Both references will scroll to the same transcluded term above.

~ ## Backwards Compatibility

~ The existing functionality continues to work without aliases:

[[tref: test-spec, another-term]]

~ No local definition found.

~ This term can only be referenced by its full name:

~ - [[ref: another-term]]

~ ## Local Definitions (Unchanged)

~ The existing local definition functionality continues to work as before:

[[def: local-term, lt, Local Term]]

~ No local definition found.

~ This is a local definition with multiple aliases.

~ References to local terms:

~ - [[ref: local-term]]
~ - [[ref: lt]]
~ - [[ref: Local Term]]

~ ## Implementation Notes

~ - Aliases are the third parameter in tref tags: `[[tref: spec, term, alias]]`
~ - Multiple IDs are created for each term to support both original and alias references
~ - The `[[ref: alias]]` syntax works automatically without any changes needed
~ - Backwards compatibility is maintained - existing two-parameter tref tags continue to work
