close

  
<div><p> 
  </p>
    <h1>MediaWiki Functions</h1>
    
    <h2>Domains</h2>
    <table><tr><th>Description</th>
        <th>Syntax</th>
        <th>Example</th>
      </tr><tr><td class="description">Link to a base.</td>
        <td class="syntax">{{fbDomain : /base/computerscience }}</td>
        <td class="example">${FbWiki.domain_link('/base/computerscience')}</td>
      </tr><tr><td class="description">Link to a user domain.</td>
        <td class="syntax">{{fbDomain : /user/narphorium/people }}</td>
        <td class="example">${FbWiki.domain_link('/user/narphorium/people')}</td>
      </tr><tr><td class="description">Link to a commons domain.</td>
        <td class="syntax">{{fbDomain : /astronomy }}</td>
        <td class="example">${FbWiki.domain_link('/astronomy')}</td>
      </tr></table><h2>Types</h2>
    <table><tr><th>Description</th>
        <th>Syntax</th>
        <th>Example</th>
      </tr><tr><td class="description">Link to a type's schema.</td>
        <td class="syntax">{{fbType : /people/person }}</td>
        <td class="example">${FbWiki.type_link('/people/person')}</td>
      </tr><tr><td class="description">Show the number of instances of a type.</td>
        <td class="syntax">{{fbInstanceCount : /people/person }}</td>
        <td class="example">${FbWiki.instance_count('/people/person')}</td>
      </tr></table><h2>Topics</h2>
    <table><tr><th>Description</th>
        <th>Syntax</th>
        <th>Example</th>
      </tr><tr><td class="description">Link to a topic by ID.</td>
        <td class="syntax">{{fbTopic : /en/metaweb }}</td>
        <td class="example">${FbWiki.topic_link('/en/metaweb')}</td>
      </tr><tr><td class="description">Link to a topic by GUID.</td>
        <td class="syntax">{{fbTopic : #9202a8c04000641f800000000b63a765 }}</td>
        <td class="example">${FbWiki.topic_link('#9202a8c04000641f800000000b63a765')}</td>
      </tr><tr><td class="description">Look up the property value of a specific topic.</td>
        <td class="syntax">{{fbTopicValue : /en/peru | /location/country/capital }}</td>
        <td class="example">${FbWiki.topic_property('/en/peru', '/location/country/capital')}</td>
      </tr></table><h2>Users</h2>
    <table><tr><th>Description</th>
        <th>Syntax</th>
        <th>Example</th>
      </tr><tr><td class="description">Text link to a user.</td>
        <td class="syntax">{{fbUser : /user/narphorium }}</td>
        <td class="example">${FbWiki.user_link('/user/narphorium')}</td>
      </tr><tr><td class="description">Small image link to a user.</td>
        <td class="syntax">{{fbUserImage : small | /user/narphorium }}</td>
        <td class="example">${FbWiki.user_image_small('/user/narphorium')}</td>
      </tr><tr><td class="description">Medium image link to a user.</td>
        <td class="syntax">{{fbUserImage : medium | /user/narphorium }}</td>
        <td class="example">${FbWiki.user_image_medium('/user/narphorium')}</td>
      </tr></table><h2>Views</h2>
    <table><tr><th>Description</th>
        <th>Syntax</th>
        <th>Example</th>
      </tr><tr><td class="description">Link to a view.</td>
        <td class="syntax">{{fbView : /en/metaweb }}</td>
        <td class="example">${FbWiki.view_link('/base/computerscience/views/data_structure')}</td>
      </tr><tr><td class="description">Embed a medium preview of a view.</td>
        <td class="syntax">{{fbViewChiclet : medium | /base/computerscience/views/np_complete_problems }}</td>
        <td class="example">${FbWiki.view_preview_medium('/base/computerscience/views/np_complete_problems')}</td>
      </tr><tr><td class="description">Embed a large preview of a view.</td>
        <td class="syntax">{{fbViewChiclet : large | /base/computerscience/views/automaton }}</td>
        <td class="example">${FbWiki.view_preview_large('/base/computerscience/views/automaton')}</td>
      </tr></table></div>

Comments

Hide