Jump to content

Page talk:Swahili tales.djvu/385

Add topic
From Wikisource
Latest comment: 9 years ago by Alex brollo in topic A test

A test

[edit]

@Mudbringer: Test to replace iwtemplate with source wikitext

To do list
the hard way
  • build a gadget to launch script from view mode
  • get link: iwlink=$(".prp-page-qualityheader a").attr("href");
  • read remote raw code and revision id by async ajax call
  • edit raw code replace header, store somehow revision id into page code
  • write local raw code by API async ajax
  • refresh
the easier way
  • build the simpler possible UI (a tattoo)
  • enter in edit mode and show the UI tattoo
  • build iwlink from page data (it's the same that current page, wgServer only needs to be changed)
  • read remote raw code and revision id by async ajax call
  • edit raw code replace header, store somehow revision id into page code
  • replace textarea.val() with the resulting text

--Alex brollo (talk) 22:04, 21 August 2015 (UTC)Reply

Code

[edit]

WIP here: User:Alex brollo/replacer.js