如何获得维基模板的内容? [英] How to get wiki template's content?

查看:133
本文介绍了如何获得维基模板的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道如何让页面内访问模板的身体?

Does anybody know how to get access to the template's body inside the page?

我熟悉的返回中存在的在页面,但我怎么能访问模板的身体?对此有任何API?现在,我只看到一个可能的方式...手动解析它。难道我错了吗?

I'm familiar with the API that returns the list of ALL templates that exist on the page, but how I can get access to the template's body? Is there any API for this? For now I see only one possible way... parse it manually. Am I wrong?

推荐答案

您可以使用 expandtemplates API调用,或 rvexpandtemplates 的的修订 API调用。

You can use the expandtemplates API call, or the rvexpandtemplates parameter for the revisions API call.

这篇关于如何获得维基模板的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆