Item-id

> #AnythingGoes

Every wiki-page in the federation contains a Story Element which in turn is composed of an ordered list of items. Each item has an ID which is assigned on creation.

> **Note:** The `create` Action type alone does not generate an ID.

We can think of the id as the name of an allele, of which there may be many variants.

# Scripts Scripts may refer to items on a page using the item-id. We often use code-items for this, and especially the First Code Item.

However in more complex application there may be many code-items on a page that are in use, and for this we use item-ids to refer to the correct element regardless of their position on the page.

This becomes fragile when an author delete the item, or otherwise uses another similar looking element. From the point of view of the casual wiki-author they have simply used standard wiki tools to produce a result that looks correct - however teh code will no longer know where to find the relevant element.

# See also