Rosetta Code:Village Pump/SMW Examples by language and concept: Difference between revisions

I feel like two tags would over-complicate things
(Responses)
(I feel like two tags would over-complicate things)
Line 21:
:*I was thinking the form would be <nowiki>{{demonstrates|concept|language}} which would tag the page with [[demonstration of/language::concept]]</nowiki>. It can be read as "this example demonstrates concept in language".
:: The more natural SMW form, I think, would have the page tag with <nowiki>[[demonstration of::language]][[shows concept::concept]]</nowiki>. (It may be desirable to use [[Property:Demonstrates language]] and [[Property:Demonstrates concept]], rather than [[Property:Demonstration of]]; you can have languages and concepts (and many other things, such as implementations, libraries, etc) which share names, but you wouldn't want to confuse the engine into thinking one is the other. --[[User:Short Circuit|Michael Mol]] 14:30, 29 June 2011 (UTC)
:::<nowiki>[[demonstration of::language]]</nowiki> seems redundant because we already have <nowiki>[[implemented in language::language]]</nowiki>. I really think it's best to keep it all in one tag and let the property pages do some of the work. If we do it with the two tags then we will have two property pages which don't mean what we want until they're connected on some other page with a query. If each language has its own property page then things are already wrapped up nicely. --[[User:Mwn3d|Mwn3d]] 14:51, 29 June 2011 (UTC)
::*This of course is dependent on dicussions about the property organization
:*This template should go under each language header as the examples get tagged, and it would not display anything. We would need one template for each concept (a la {{tmpl|works with}}).
Anonymous user