User:Jason0403/Sandbox:修订间差异
(→介绍) |
|||
第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> |
2020年8月9日 (日) 20:27的版本
介绍
此为用户:Jason0403的实验页,一些小的折腾项目会放在这里
Syntax Highlight 测试
- <syntaxhighlight>标签用不了.jpg
def main(arr):
print('hello world')
Graph 测试
- 待填数据
External Data 测试
参考:[1]
- 需要做的:
- wfLoadExtension( 'ExternalData' ); → localsettings.php
- 缓存:$edgCacheTable = 'ed_url_cache'; 然后手动建立表格
- 语法:
{{#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 }}