https://bugzilla.wikimedia.org/show_bug.cgi?id=22737

--- Comment #1 from Bob MacCallum <uncool...@gmail.com> 2010-03-08 12:30:28 UTC 
---
SRF graph is currently rendering non-Page type nodes with URLs to nonexistent
pages (if graphlink=yes).  I guess this is a bug.

It also suggests another feature to me:

A page might have a string or boolean property.  You might want to color or
style those nodes differently on the graph.  Therefore if the property had a
"graphviz node attribute" property, and the property's value was non-empty (and
not false if boolean) you could apply the attributes to the node (*after*
applying the category and page-based attributes).

Even cooler (but open to injection-based attacks?) would be to enable the
display of property values.  I envisage something like this

Property:Has supervisor
[[Has type::string]]
[[Has graphviz node attribute::label="\N (supervisor \P)"]]

As described here
http://www.graphviz.org/doc/info/attrs.html#k:escString
\N is an existing graphviz escape sequence to insert the node name.

\P could be intercepted by the SRF extension and be replaced with the property
value.

One problem with this approach is that I can't see how you would add text from
more than one property to a node's label.

An alternative might be to use my existing patch something like this:

[[Has graphviz node attribute::label="{{PAGENAME}} (Supervisor
{{#show:{{PAGENAME}}|?has supervisor|link=none}})"]]

This works (but comes out all lowercase for some reason).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to