“工人”的版本间的差异
来自China Digital Space
| 第2行: | 第2行: | ||
############################################################################################# | ############################################################################################# | ||
Part 1: Getting extract from Wikipedia | Part 1: Getting extract from Wikipedia | ||
| − | {{FULLPAGENAME}} defaults to the title of this page, but you | + | {{FULLPAGENAME}} defaults to the title of this page, but you can change it manually. |
############################################################################################# | ############################################################################################# | ||
--> | --> | ||
| + | |||
{{#get_web_data: | {{#get_web_data: | ||
| − | url=https://zh.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&titles= | + | url=https://zh.wikipedia.org/w/api.php?action=query&prop=extracts&exsentences=4&explaintext&format=json&exintro&titles={{FULLPAGENAME}} |
|format=JSON | |format=JSON | ||
|data=extract=extract}} | |data=extract=extract}} | ||
| − | {{#external_value:extract}} | + | {{#external_value:extract }}[https://zh.wikipedia.org/wiki/{{FULLPAGENAME}} (维基百科{{FULLPAGENAME}})] |
<!-- | <!-- | ||



