Template:SMWTableFormatter

From Hive13 Wiki
Jump to navigation Jump to search

|- | {{{1}}} | {{{2}}} | {{{3}}}


This template takes the output of a semantic mediawiki query to make it look nicer. This template is designed for a query that outputs three columns/fields. It builds one single row. In order to use this properly, you would wrap your #ask query in a table begin and end tag like so:

{| border="1" cellspacing="0" cellpadding="2"
! User
! Skill They Have
! Skill They'd Like To Learn
{{#ask: [[User:+]] [[Skill::!]] OR [[SkillWanted::!]]
| mainlabel=User
| format=template
| template=SMWTableFormatter
| ?Skill
| ?SkillWanted
}}
|}