Hello! Is there a bot or extension that can generate stubs of template descriptions by template wikitext? It should be pretty simple: the bot will just grab all template parameters {{{PARAMETER}}} and lists those parameters.
If no such extensions exists could anybody tell how to programaticaly get the parameters of a given template?
Sincerely yours, ----- Yury Katkov
Hi Yury,
Cleaning up my pywikipedia backlog, and in the category 'better late than never':
On 6 August 2012 14:05, Yury Katkov katkov.juriy@gmail.com wrote:
If no such extensions exists could anybody tell how to programaticaly get the parameters of a given template?
The 'generatexml' function in the API should do roughly what you want:
http://www.mediawiki.org/w/api.php?action=parse&page=Template:Gerrit-rev...
Then walk over all nodes using //tplarg/title
Merlijn
Pretty cool! It's really possible to generate the descriptions from that. thanks! ----- Yury Katkov, WikiVote
On Sun, Apr 14, 2013 at 12:49 AM, Merlijn van Deen valhallasw@arctus.nl wrote:
Hi Yury,
Cleaning up my pywikipedia backlog, and in the category 'better late than never':
On 6 August 2012 14:05, Yury Katkov katkov.juriy@gmail.com wrote:
If no such extensions exists could anybody tell how to programaticaly get the parameters of a given template?
The 'generatexml' function in the API should do roughly what you want:
http://www.mediawiki.org/w/api.php?action=parse&page=Template:Gerrit-rev...
Then walk over all nodes using //tplarg/title
Merlijn
pywikipedia-l@lists.wikimedia.org