2,352
次編輯
(→介绍) |
|||
第13行: | 第13行: | ||
=== Graph 测试 === | === Graph 测试 === | ||
* 待填数据 | * 待填数据 | ||
=== External Data 测试=== | |||
参考:[https://www.mediawiki.org/wiki/Extension:External_Data#Whitelist_for_URLs] | |||
* 需要做的: | |||
:wfLoadExtension( 'ExternalData' ); → localsettings.php | |||
:缓存:$edgCacheTable = 'ed_url_cache'; 然后手动建立表格 | |||
* 语法: | |||
<pre> | |||
{{#get_web_data: | |||
url=data source URL | |||
|format={CSV|CSV with header|GFF|JSON|XML|HTML|text} | |||
|delimiter=delimiter | |||
|regex=regular expression | |||
|data=local_variable_name1=external_variable_name1, etc. | |||
|filters=external_variable_name1=filter_value1, etc. | |||
|use xpath | |||
|use jsonpath | |||
|json offset=number of characters | |||
|post data=additional data | |||
|cache seconds=number of seconds | |||
}} | |||
</pre> |