Wikipedia API: check if template is protected -


when list of templates associated specific page (ie. http://en.wikipedia.org/w/api.php?action=query&prop=templates&format=json&tllimit=10&pageids=199445), notice lot of them not visible in wikpedia page itself. when did research, due these templates marked protected.

any ideas on checking if templates flagged protected?

i believe there confusion. templates protected prevent vandalisms replicated on large quantity of pages, it's possible see them on wp. example, template:basepage subpage can seen in http://en.wikipedia.org/wiki/template:basepage_subpage . of them aren't shown on articles because can part of template, they're transcluded on article text.

still, if need check if list of pages protected, can use api this:

https://en.wikipedia.org/w/api.php?action=query&titles=template:basepage%20subpage|template:authority%20control/categories&prop=info&inprop=protection


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -