Semantic MediaWiki test: Difference between revisions
(→Type:Code: alternative) |
|||
(One intermediate revision by the same user not shown) | |||
Line 14: | 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 — 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!
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]