Template:Sbp.fit.tag

From Semantic Portal Wiki

Jump to: navigation, search

Description

Help:Sbp.fit.tag Template:Sbp.fit.tag
  • description: A smart short-cut for adding a SMW tag to a page
  • module: Help:SMW FIT
  • version: 0.1
  • status: unstable
  • author: Li Ding

Usage:

{{sbp.fit.tag
  |p=     #property
  |v=        #value
  |ns=          # nemspace of value   e.g. 'Category'
  |mode=       # parsting mode on value, {'one', 'list'},  default 'one'
  |length=      # length of displayed link. 0: do not show; default: show all

  |v_label=      # label of value
  |p_label=     # label of property
  |format=      # {'ul', 'ol', 'tr', 'tr2', 'none'}  default 'tr'
  |prefix       # prefix before the rendered tag
  |suffix       # prefix after the rendered tag
}}

* it prints in the following manner
<prefix> [[<p>OR<p_label>::<ns><v>|<v_label> or <v>]] <suffix>

* format overwrites prefix and suffix with a predefine ones.


Personal tools
Semantic Web Community
Tetherless World constellation
maintenance