Structured reusable data

You can store information on one wiki page that can be reused on several other pages.

To simply include the content of one page inside another, use the include macro.

If, instead, you want to reuse structured information, like "the phone number of wiki user X", then it takes a little more to setup, but the reward is much smarter reuse possibilities.

A good example is personal info. Instead of including names, phone numbers and perhaps photos of each member of each project, you can instead store such info per user, and only refer to their data. If a user then later on change photo or phone number, it is instantly reflected on all project pages.

Structured data requires 2 things:

  1. The wiki page must end in Dict
  2. The data must be on a single line, written as a definition: space + term + double colon + space + definition

That second one is maybe a bit hard to understand. If you want to say "PhoneNumber: +45 40843136", then you need to repeat the colon to tell it apart from colons in normal text, and you need to indent the whole line to activate the magic.

If you still don't get it, then don't worry - just try for yourself, using a template:

  1. Make sure you have a wiki homepage
    • When logged into the wiki, your name is shown at the top (or to the right) as a link. Go there
    • If you haven't been there before, you will need to create your homepage.
  2. In the address field of your web browser, add "/MyDict" to the end of the address, and go there

    • The "address field" is the one at the top of your browser, above the web page itself!

  3. Create this new page, with MyDictTemplate as template

  4. Fill in the fields, and save

Now you have added some structured personal info, reusable across the wiki.

For example usage, see BrandingTheKaosPilots and its list, BrandingTheKaosPilotsGroup.

Similar to structured data needing to be stored in a dictionary - a page ending in "Dict", lists of dictionaries to lookup needs to be stored in a page ending in "Group".

Homebase: ItStructuredReusableData (last edited 2007-03-30 09:42:34 by JonasSmedegaard)