Rosetta Code:Village Pump/RC extraction Tool and Task: Difference between revisions

I think SMW might be able to solve most of this
(I think SMW might be able to solve most of this)
Line 25:
 
Thoughts are appreciated. --[[User:Dgamey|Dgamey]] 13:33, 2 May 2011 (UTC)
:What do you mean by "language segment"? There are big plans (not very detailed or solid plans, but plans) to use SMW to add examples to the site. The idea is/was to have each example as its own page with SMW tags for what language it was in, what task it was for, probably a subheading if necessary (e.g. "Iterative" or "Recursive"), and other metadata. A task page would then transclude the content from example pages which implement that task. "Transclusion" was a new concept for me so I will explain it in case it's not clear. Transcluding a page basically copies its wiki-rendered content on to a destination page. In this case it would take the content from an example page and place it (in alphabetical order by language) on the task page. Hopefully we could get edit links to link to the example pages and other little things like that to work, but editing the actual task page would not be an option to edit an example. The task page content would just be <nowiki>"{{task|Category}}Description description. Example input/output. {{template to transclude examples by task name}}"</nowiki>. If that sort of system were put in place, the ideas listed here would probably be simple SMW queries. --[[User:Mwn3d|Mwn3d]] 15:40, 2 May 2011 (UTC)
Anonymous user