[[MediaWiki:Apihelp-edit-example-undo/zh-hans]]

Fragment of a discussion from User talk:D41D8CD98F

这句话用在/api.php?action=help&modules=edit,用来解释api.php?action=edit&title=Test&undo=13585&undoafter=13579&basetimestamp=2007-08-24T12:34:54Z&token=123ABC这个例子。按照同一个页面提供的信息,undo=13585的意义是“Undo this revision. Overrides text, prependtext and appendtext. ”,用中文是“撤销此次修订。覆盖text、prependtext和appendtext。 ”;undoafter=13579的意义是“Undo all revisions from undo to this one. If not set, just undo one revision. ”,用中文是“撤销从undo至此的所有修订。如果不设置就撤销一次修订。 ”(这是您的翻译)。所以可以推断这个例子的作用是撤销13585(这是这个例子中undo参数的值)至13579(这是undoafter参数的值)的所有修订

D41D8CD98F (talk)05:14, 7 November 2016

后面那句原文明明是“从$1undo”的吧(其实我也不明白为何在实际文档中变成了undo,$1莫名其妙消失了)

同样感谢阁下解释哈。

Liuxinyu970226 (talk)05:42, 7 November 2016

按照MediaWiki:Apihelp-edit-param-undoafter/qqq,$1被替换成模块参数前缀(比如backlinks模块的参数前缀是bl这个模块的所有参数名都是以bl开头的)。edit模块没有参数前缀,所以$1被替换成空字符串

D41D8CD98F (talk)06:17, 7 November 2016