「User:Jason0403/Sandbox」:修訂間差異

出自Arcaea中文维基
第73行: 第73行:
url=https://www.fantasyroom.cn/api/v1/public/arc/app/checkver
url=https://www.fantasyroom.cn/api/v1/public/arc/app/checkver
|format=JSON
|format=JSON
|data=android_ver=android_ver,ios_ver=ios_ver
|data=android_ver=ver,ios_ver=ver
|use jsonpath=android_ver=$.content[0].ver,ios_ver=$.content[1].ver
|use jsonpath=android_ver=$.content[0].ver,ios_ver=$.content[1].ver
|cache seconds=0
|cache seconds=0
}}
}}
:Arcaea安卓最新版本为{{#external_value:android_ver}},iOS最新版本为{{#external_value:ios_ver}}

於 2020年8月17日 (一) 15:56 的修訂

介紹

此為用戶:Jason0403的實驗頁,一些小的折騰項目會放在這裏

Syntax Highlight 測試

  • <syntaxhighlight>標籤用不了.jpg
def main(arr):
	print('hello world')


Graph 測試

屬性 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Frag值 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50
Step值 45 45 45 46 46 48 50 53 56 61 67 71 75 78 80 81 82 82 82 83
Over值 12 12 12 12 13 14 16 19 23 27 33 38 41 44 46 48 48 49 49 49

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
}}
  • 例如

{{#get_web_data: url=https://www.fantasyroom.cn/api/v1/public/arc/app/checkver |format=JSON |data=android_ver=ver,ios_ver=ver |use jsonpath=android_ver=$.content[0].ver,ios_ver=$.content[1].ver |cache seconds=0 }}

Arcaea安卓最新版本為{{#external_value:android_ver}},iOS最新版本為{{#external_value:ios_ver}}