Template:Sbp.smw.mode
From Semantic Portal Wiki
Description
| Help:Sbp.smw.mode | Template:Sbp.smw.mode |
- 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.smw.mode
|p= # property
|v= # value(s)
|v_label= # label of each value
|length= # length of displayed link. 0: do not show, default: show all
|ns= # namespace of value e.g. 'Category'
|v_mode= # {'one', 'list'}, default 'one'
}}
will print a SMW link
[[<p>::<ns><v>|<v_label> or <v>]]
and category declaration when p is empty and ns or v's prefix is Category
[[<ns><v>]]

