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

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

问题描述

有人知道如何访问页面内的模板正文吗?

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

我熟悉返回存在的所有模板列表的 API 在页面上,但是我如何才能访问模板的正文?有没有这方面的 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.

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

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