Difference between revisions of "User:Roc michael"
Roc michael (talk | contribs) |
Roc michael (talk | contribs) (→error with namespace and prefix) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
*[[Template:Invalid page]] | *[[Template:Invalid page]] | ||
− | == | + | == ECP Register System study== |
*[[ECP List]] | *[[ECP List]] | ||
− | *[[Template: | + | *[[Template:DPL Page Name S/N Maker]] |
− | *[[ | + | *[[Template:DPL Page Name S/N Maker test]] |
− | *[[Template | + | |
+ | ===error with namespace and prefix=== | ||
+ | '''The bug is fixed now.'''--[[User:Roc michael|Roc michael]] 12:16, 22 March 2009 (UTC) | ||
+ | *After creating pages named "Talk00001" and "Help:CPR-0001", I get errors like following: | ||
+ | [[Image:N Maker Template error.png|500px]] | ||
==[[User:Roc michael/Calendar study]]== | ==[[User:Roc michael/Calendar study]]== | ||
Line 11: | Line 15: | ||
==[[User:Roc michael/dplmatrix study]]== | ==[[User:Roc michael/dplmatrix study]]== | ||
{{/dplmatrix study}} | {{/dplmatrix study}} | ||
+ | |||
+ | ==[[User:Roc michael/ploticus study]]== | ||
+ | {{/ploticus study}} | ||
+ | |||
+ | ==flickr code generater== | ||
+ | {{flickr code generater}} |
Latest revision as of 13:16, 22 March 2009
Contents
ECP Register System study
error with namespace and prefix
The bug is fixed now.--Roc michael 12:16, 22 March 2009 (UTC)
- After creating pages named "Talk00001" and "Help:CPR-0001", I get errors like following:
User:Roc michael/Calendar study
User:Roc michael/dplmatrix study
dplmatrix demo1
code 1
{|class=wikitable !normal !flipped |-- | {{#dplmatrix:a simple demo matrix|||| one oho aha two ~~ Two ehem three four aha uhui ~~ UHU two ~~ Two uhui ~~ UHU }} | {{#dplmatrix:a simple demo matrix|<big>•</big>|.|flip| one oho aha two ~~ Two ehem three four aha uhui ~~ UHU two ~~ Two uhui ~~ UHU }} |}
Demo1 Result
normal | flipped | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
{{#dpl: |debug=1 |category=DPL Manual |format=,%PAGE% ~~ %TITLE%\n²{:Test matrix2¦page=%PAGE%¦category=DPL Manual¦namespace=}², }}
dplmatrix demo2
code 2-1
DPL:Manual ~~ Manual
DPL:Manual - Authors and History ~~ Manual - Authors and History DPL:Manual - Compatibility ~~ Manual - Compatibility DPL:Manual - DPL Bug Reporting and Feature Requests ~~ Manual - DPL Bug Reporting and Feature Requests DPL:Manual - DPL parameters: Controlling output format ~~ Manual - DPL parameters: Controlling output format DPL:Manual - DPL parameters: Controlling output order ~~ Manual - DPL parameters: Controlling output order DPL:Manual - DPL parameters: Controlling output volume ~~ Manual - DPL parameters: Controlling output volume DPL:Manual - DPL parameters: Criteria for page selection ~~ Manual - DPL parameters: Criteria for page selection DPL:Manual - DPL parameters: Other parameters ~~ Manual - DPL parameters: Other parameters DPL:Manual - General Usage and Invocation Syntax ~~ Manual - General Usage and Invocation Syntax DPL:Manual - Source and Installation ~~ Manual - Source and Installation
DPL:Manual - Authors and History ~~ Manual - Authors and History
DPL:Manual ~~ Manual DPL:Manual - Compatibility ~~ Manual - Compatibility
DPL:Manual - Compatibility ~~ Manual - Compatibility
DPL:Manual ~~ Manual
DPL:Manual - DPL Bug Reporting and Feature Requests ~~ Manual - DPL Bug Reporting and Feature Requests
DPL:Manual ~~ Manual
DPL:Manual - DPL parameters: Controlling output format ~~ Manual - DPL parameters: Controlling output format
DPL:Manual ~~ Manual DPL:Manual - DPL parameters: Controlling output order ~~ Manual - DPL parameters: Controlling output order DPL:Manual - DPL parameters: Controlling output volume ~~ Manual - DPL parameters: Controlling output volume
DPL:Manual - DPL parameters: Controlling output volume ~~ Manual - DPL parameters: Controlling output volume
DPL:Manual ~~ Manual DPL:Manual - DPL parameters: Criteria for page selection ~~ Manual - DPL parameters: Criteria for page selection
DPL:Manual - DPL parameters: Other parameters ~~ Manual - DPL parameters: Other parameters
DPL:Manual ~~ Manual
DPL:Manual - DPL Special Page with Parameters ~~ Manual - DPL Special Page with Parameters
DPL:Manual ~~ Manual
DPL:Manual - DPL with PostgreSQL ~~ Manual - DPL with PostgreSQL
DPL:Manual ~~ Manual
DPL:Manual - dplmatrix ~~ Manual - dplmatrix
DPL:Manual ~~ Manual DPL:Manual - Authors and History ~~ Manual - Authors and History DPL:Manual - DPL Bug Reporting and Feature Requests ~~ Manual - DPL Bug Reporting and Feature Requests DPL:Manual - DPL Special Page with Parameters ~~ Manual - DPL Special Page with Parameters DPL:Manual - DPL parameters: Controlling output format ~~ Manual - DPL parameters: Controlling output format DPL:Manual - DPL parameters: Controlling output order ~~ Manual - DPL parameters: Controlling output order DPL:Manual - DPL parameters: Controlling output volume ~~ Manual - DPL parameters: Controlling output volume DPL:Manual - DPL parameters: Criteria for page selection ~~ Manual - DPL parameters: Criteria for page selection DPL:Manual - DPL parameters: Other parameters ~~ Manual - DPL parameters: Other parameters DPL:Manual - DPL with PostgreSQL ~~ Manual - DPL with PostgreSQL DPL:Manual - General Usage and Invocation Syntax ~~ Manual - General Usage and Invocation Syntax DPL:Manual - Source and Installation ~~ Manual - Source and Installation DPL:Manual - dplchapter ~~ Manual - dplchapter
DPL:Manual - dplnum ~~ Manual - dplnum
DPL:Manual ~~ Manual
DPL:Manual - dplreplace ~~ Manual - dplreplace
DPL:Manual ~~ Manual
DPL:Manual - dplvar ~~ Manual - dplvar
DPL:Manual ~~ Manual
DPL:Manual - General Usage and Invocation Syntax ~~ Manual - General Usage and Invocation Syntax
DPL:Manual ~~ Manual DPL:Manual - DPL parameters: Controlling output format ~~ Manual - DPL parameters: Controlling output format
DPL:Manual - DPL parameters: Controlling output order ~~ Manual - DPL parameters: Controlling output order
DPL:Manual ~~ Manual DPL:Manual - DPL parameters: Controlling output format ~~ Manual - DPL parameters: Controlling output format
DPL:Manual - DPL parameters: Criteria for page selection ~~ Manual - DPL parameters: Criteria for page selection
DPL:Manual ~~ Manual DPL:Manual - DPL parameters: Controlling output volume ~~ Manual - DPL parameters: Controlling output volume DPL:Manual - General Usage and Invocation Syntax ~~ Manual - General Usage and Invocation Syntax DPL:Manual - Source and Installation ~~ Manual - Source and Installation
DPL:Manual - dplchapter ~~ Manual - dplchapter
DPL:Manual ~~ Manual
DPL:Manual - Source and Installation ~~ Manual - Source and Installation
DPL:Manual ~~ Manual DPL:Manual - Compatibility ~~ Manual - Compatibility DPL:Manual - DPL parameters: Criteria for page selection ~~ Manual - DPL parameters: Criteria for page selection DPL:Manual - DPL with PostgreSQL ~~ Manual - DPL with PostgreSQL
code 2-2
Now we use two nested DPL queries to generate the indented list:
{{#dplmatrix:''links from articles to the DPL manual''|'''x'''|-|flip| {{#dpl: |debug=1 |category=DPL Manual |format=,%PAGE% ~~ %TITLE%\n²{:Test matrix2¦page=%PAGE%¦category=DPL Manual¦namespace=}², }} }}
demo2 Result
User:Roc michael/ploticus study
{{#ploticus:
//index-headings: unicode font, xml_encoding, clustered bars, categories
// this is used only when producing SVG..
- proc settings
xml_encoding: utf-8 //-font SimSun
// specify the data.. field 1 is english, field 2 is utf-8 unicode, fields 3 - 5 are values
- proc getdata
data: chicken 鸡 478 204 184 beef 牛肉 537 258 202 pork 猪肉 274 189 148 lamb 羊羔 147 176 108
// set up the plotting area
- proc areadef
// "Quantities shipped per region" title: 数量运送了每区域 titledetails: align=C size=15 rectangle: 1 1 4 2.5 xcategories: datafield=2 yrange: 0 800 xaxis.stubs: usecategories yaxis.stubs: inc 100 // "kilograms" yaxis.label: 公斤 yaxis.labeldistance: 0.4
// do the red bars..
- proc bars
locfield: 2 lenfield: 3 barwidth: 0.1 cluster: 1 / 2 color: red // "Northeast" (?) legendlabel: 东北
// do the blue bars..
- proc bars
locfield: 2 lenfield: 4 barwidth: 0.1 cluster: 2 / 2 color: blue // "West" legendlabel: 西部
// render the legend using labels specified above..
- proc legend
location: max-0.2 max-0.2
// add a disclaimer :>
- proc annotate
location: min 0.5 textdetails: size=8 align=L // "I am sorry if these Chinese translations do not make sense.. they were done by a computer!" text: 我抱歉如果这些中国翻译没有道理。 他们由计算机做了! }}
flickr code generater
The Demo of Combining the use of Call extension、Simple Forms extension and Flickr extension.
{{#form: name= demo |action={{#replace:/dpldemo/index.php?title=Roc_michael
|%^([\/]\S*[index.php])([\/])([Roc michael]\S*)% |\1 }}|
{{#input: name= title |type= hidden | value = Special:Call/Flickr code generater}}
圖片網址(url) | {{#input: name=url | value = }} (EX:http://www.flickr.com/photos/king-edward/362100651/in/photostream/) | ||
圖片編號(photoid) | {{#input: name=photoid | value = }} (EX:「1380153248」) | ||
圖片型式(type) | {{#input: name=type | type=select | value = |
}} |
||
圖片位置(location) | {{#input: name=location | type=select | value = |
}} |
||
圖片尺寸(size) | {{#input: name=size | type=select | value = |
}} |
||
圖片註解(caption) | {{#input: name=caption | value = }} |
{{#input: type = submit | value = 產生(Generate)}} 放棄(reset) |
}}
<flickr>{{#replace:
|/^([http]\S*[photos])[\/](\S*)[\/](\d*)[\/](\S*)/ |\3}}|||</flickr>
您使用如下的查詢參數(Your query is following):
<flickr>{{#replace:
|/^([http]\S*[photos])[\/](\S*)[\/](\d*)[\/](\S*)/ |\3}}|||</flickr>