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

More on tasks and RC reorg
(access to wiki data)
(More on tasks and RC reorg)
Line 21:
Doing all this from the html could be messy.
: It should be possible to extract the raw wiki data using the Edit tab and then abandon the page/edit.--[[User:Dgamey|Dgamey]] 01:59, 12 May 2011 (UTC)
:: The RC count example provides the right level of access for this. --[[User:Dgamey|Dgamey]] 10:44, 27 May 2011 (UTC)
 
A read only access to the wiki editor might be easier.
Line 29 ⟶ 30:
: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)
:: That would probably work. But it sounds like it's a way off. --[[User:Dgamey|Dgamey]] 17:30, 2 May 2011 (UTC)
 
:: I will probably prepare an example and draft task on this. In that order. If RC changes it should not be a huge re-work. What I would be looking at is if the bot grabs the raw format of a task page that there be some easily recognized header for the language and the bot can pick up the <nowiki>[[task/Language:langaugename]] or [[Language:languagename/taskname]]</nowiki> page in whatever form that takes.
::: This reorg could cause Icon/Unicon some problems as many of the tasks share code.
:: All the RC count example tasks will need to be redone. Ouch.
:: --[[User:Dgamey|Dgamey]] 10:44, 27 May 2011 (UTC)
 
=== Concrete Example ===
Anonymous user