enterprisemediawiki / SemanticActions

An action tracking system for a Semantic MediaWiki
MIT License
3 stars 2 forks source link

When configured to use User namespace, links to actionees does not work #14

Closed darenwelsh closed 5 years ago

darenwelsh commented 5 years ago

image

darenwelsh commented 5 years ago

I think only Template:Actionable needs to be modified. This means there will be two different versions depending on the config variable.

darenwelsh commented 5 years ago
ASSIGNED_TO

--><tr><td>'''Actionees'''</td><td>{{#if:{{{ASSIGNED_TO|}}}|{{#arraymap:{{{ASSIGNED_TO|}}}|,|x|[[User:x|x]]|,}}</td></tr>|}}<!--
darenwelsh commented 5 years ago

With this method, the links to usernames on a standard SMW query results table (like one used on a user page) will still be missing the "User:" prefix.

Either the query results for table format will require a template output (not very nice to the wiki users) or the properties being set need to include the namespace prefix. I think the latter is the better way to go.

darenwelsh commented 5 years ago

This needs to also be fixed in Template:Actionable board row

darenwelsh commented 5 years ago

something other than x should be used in the arraymap (for both config options)

darenwelsh commented 5 years ago

It might be better to modify

-->{{#set:
|Action ID={{#sub:{{FULLPAGENAME}}|7|0}} 
|Summary={{{SUMMARY|}}}
|Assigned to={{{ASSIGNED_TO|}}}|+sep=,

to add "User:"

Note that other pages will need to be modified so "User:" isn't displayed in the action block links.

darenwelsh commented 5 years ago

https://mwstake.org/mwstake/index.php?title=Template%3AActionable&type=revision&diff=1810&oldid=1777

and

https://mwstake.org/mwstake/index.php?title=Template%3AActionable_board_row&type=revision&diff=1809&oldid=1775

darenwelsh commented 5 years ago

Fixed by #17

darenwelsh commented 5 years ago

Had to add 7c25a5a5cfd7d9ffd118ff19cb599a4a38f10926