Semantic MediaWiki test: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: Just for testing SMW. This is nothing to do with OLPC Test results and Test cases. == Type:Code == I'm about to use Sample property::12345 of Type:Code, what happens. == Trac ...)
 
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
I'm about to use [[Sample property::12345]] of [[Type:Code]], what happens.
I'm about to use [[Sample property::12345]] of [[Type:Code]], what happens.


Why not just use &lt;pre&gt; in the alternative text: [[Short description::Here we go|<pre>Here we go</pre>]] ?


== Trac woes ==
== Trac woes ==
Line 13: Line 14:


The good news (click the factbox below) is the (?) symbol for service links doesn't have the comma.
The good news (click the factbox below) is the (?) symbol for service links doesn't have the comma.

=== Formatting templates ===

Want to format results in stuff like [[Template:Test results]] to be bug links. This already uses the #arraymap parser function. There are a few ways to do this, see the edits by skierpage in the history of that page, but you have to use [[Template:!]] to insert the '|' pipe symbol in semantic assignments. Template wound up using a nested http link to the bug as the property's alt text &mdash; e.g. [[Sample property2::545454{{!}}[http://dev.laptop.org/ticket/5454 #5454]]]

Latest revision as of 11:26, 6 September 2008

Just for testing SMW. This is nothing to do with OLPC Test results and Test cases.


Type:Code

I'm about to use Sample property::12345 of Type:Code, what happens.

Why not just use <pre> in the alternative text:

Here we go

 ?

Trac woes

Note how numbers appear with commas. That's not what I want!

Sample property2::54321

The good news (click the factbox below) is the (?) symbol for service links doesn't have the comma.

Formatting templates

Want to format results in stuff like Template:Test results to be bug links. This already uses the #arraymap parser function. There are a few ways to do this, see the edits by skierpage in the history of that page, but you have to use Template:! to insert the '|' pipe symbol in semantic assignments. Template wound up using a nested http link to the bug as the property's alt text — e.g. [http://dev.laptop.org/ticket/5454 #5454]