Difference between revisions of "User:Roc michael"

From FollowTheScore
Jump to: navigation, search
(error with namespace and prefix)
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Calendar Demo==
+
*[[Template:Invalid page]]
Now we are going to include ''Current events'' which will give us the actual calendar right here. ''Current events'' understands the following parameters:
 
* year - defaults to the current year
 
* month - defaults to the current month
 
* purpose - empty or a string which will be used as a category filter. Only events belonging to that category will be shown.
 
* namespace - empty or a namespace string. Only event defined in articles in that namespace will be shown; new events wilöl be created in an article which belongs to that namespace
 
* eventList = {no|current|all}, defaults to 'current'; produces a tabular report of the selected events
 
* width = empty or a width specification for the table, e.g. '500px' or '100%'; default is to make the calendar as small as possible
 
* noadd = empty or '1'; when set to '1' the calendar will not offer a link to create an event page
 
  
==Calendar test==
+
== ECP Register System study==
Calendar Settings
+
*[[ECP List]]
<pre>{{:Current events|namespace=Test|purpose=Michael's events |width=500px}}</pre>
+
*[[Template:DPL Page Name S/N Maker]]
*[[:category:Michael's events]]
+
*[[Template:DPL Page Name S/N Maker test]]
{{:Current events|namespace=Test|purpose=Michael's events}}
+
 
 +
===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]]==
 +
{{/Calendar study}}
 +
==[[User:Roc michael/dplmatrix study]]==
 +
{{/dplmatrix study}}
 +
 
 +
==[[User:Roc michael/ploticus study]]==
 +
{{/ploticus study}}
 +
 
 +
==flickr code generater==
 +
{{flickr code generater}}

Latest revision as of 14:16, 22 March 2009

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:

N Maker Template error.png

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
a simple demo matrix aha ehem oho UHU
one x   x  
Two   x   x
three        
four x     x
a simple demo matrix one Two three four
aha . .
ehem . . .
oho . . .
UHU . .


{{#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

links from articles to the DPL manual Manual Manual - Authors and History Manual - Compatibility Manual - DPL Bug Reporting and Feature Requests Manual - DPL parameters: Controlling output format Manual - DPL parameters: Controlling output volume Manual - DPL parameters: Other parameters Manual - DPL Special Page with Parameters Manual - DPL with PostgreSQL Manual - dplmatrix Manual - dplnum Manual - dplreplace Manual - dplvar Manual - General Usage and Invocation Syntax Manual - DPL parameters: Controlling output order Manual - DPL parameters: Criteria for page selection Manual - dplchapter Manual - Source and Installation
Manual - x x x x x x x x x x x x x x x x x
Manual - Authors and History x - - - - - - - - x - - - - - - - -
Manual - Compatibility x x - - - - - - - - - - - - - - - x
Manual - DPL Bug Reporting and Feature Requests x - - - - - - - - x - - - - - - - -
Manual - DPL Special Page with Parameters - - - - - - - - - x - - - - - - - -
Manual - DPL parameters: Controlling output format x - - - - - - - - x - - - x x - - -
Manual - DPL parameters: Controlling output order x - - - x - - - - x - - - - - - - -
Manual - DPL parameters: Controlling output volume x - - - x - - - - x - - - - - x - -
Manual - DPL parameters: Criteria for page selection x - - - - x - - - x - - - - - - - x
Manual - DPL parameters: Other parameters x - - - - - - - - x - - - - - - - -
Manual - DPL with PostgreSQL - - - - - - - - - x - - - - - - - x
Manual - General Usage and Invocation Syntax x - - - - - - - - x - - - - - x - -
Manual - Source and Installation x - - - - - - - - x - - - - - x - -
Manual - dplchapter - - - - - - - - - x - - - - - - - -

User:Roc michael/ploticus study


{{#ploticus:

//index-headings: unicode font, xml_encoding, clustered bars, categories

// this is used only when producing SVG..

  1. 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

  1. proc getdata

data: chicken 鸡 478 204 184 beef 牛肉 537 258 202 pork 猪肉 274 189 148 lamb 羊羔 147 176 108


// set up the plotting area

  1. 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..

  1. proc bars

locfield: 2 lenfield: 3 barwidth: 0.1 cluster: 1 / 2 color: red // "Northeast" (?) legendlabel: 东北

// do the blue bars..

  1. proc bars

locfield: 2 lenfield: 4 barwidth: 0.1 cluster: 2 / 2 color: blue // "West" legendlabel: 西部

// render the legend using labels specified above..

  1. proc legend

location: max-0.2 max-0.2

// add a disclaimer :>

  1. 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 extensionSimple 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 = |
  • 縮圖 (thumb)
  • 加框 (frame)

}}

圖片位置(location)  {{#input: name=location | type=select | value = |
  • 右 (right)
  • 左 (left)
  • 中 (center)
  • 不限定 (none)

}}

圖片尺寸(size)  {{#input: name=size | type=select | value = |
  • 小方塊 (s)
  • 小縮圖 (t)
  • 小尺寸 (m)
  • 中尺寸 (-)
  • 大尺寸 (b)

}}

圖片註解(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>