Difference between revisions of "User:Roc michael"

From FollowTheScore
Jump to: navigation, search
(New page: {{#form: name= demo |action=/dpldemo/index.php| {{#input: name= title |type= hidden | value = Special:Call/Catlist }} <table cellpadding=0 cellspacing=0 margins=0> <tr bgcolor="#...)
 
(error with namespace and prefix)
 
(47 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#form:  name= demo      |action=/dpldemo/index.php|
+
*[[Template:Invalid page]]
{{#input: name= title    |type= hidden | value = Special:Call/Catlist }}
+
 
<table cellpadding=0 cellspacing=0 margins=0>
+
== ECP Register System study==
<tr bgcolor="#ddddff">
+
*[[ECP List]]
<td align="right"> 所屬名字空間(namespace) </td>
+
*[[Template:DPL Page Name S/N Maker]]
<td>&nbsp; {{#input: name= namespace |type= select | value = {{{namespace|}}} |
+
*[[Template:DPL Page Name S/N Maker test]]
*all
+
 
*main
+
===error with namespace and prefix===
*Talk
+
'''The bug is fixed now.'''--[[User:Roc michael|Roc michael]] 12:16, 22 March 2009 (UTC)
*Template
+
*After creating pages named "Talk00001" and "Help:CPR-0001", I get errors like following:
*Category
+
[[Image:N Maker Template error.png|500px]]
*Image
+
 
*User
+
==[[User:Roc michael/Calendar study]]==
*DPL
+
{{/Calendar study}}
*Wgraph
+
==[[User:Roc michael/dplmatrix study]]==
}}</td>
+
{{/dplmatrix study}}
<td align="right"> 但非 </td>
+
 
<td> &nbsp; {{#input: name= notnamespace |type= select | value = {{{notnamespace|}}} |
+
==[[User:Roc michael/ploticus study]]==
*-
+
{{/ploticus study}}
*main
+
 
*Talk
+
==flickr code generater==
*Template
+
{{flickr code generater}}
*Category
 
*Image
 
*User
 
*DPL
 
*Wgraph
 
}}
 
</td>
 
</tr>
 
<tr bgcolor="#ddffff">
 
<td align="right"> 所屬分類(category) </td>
 
<td> &nbsp; {{#input: name= category | value = {{{category|}}} |type= select
 
                                    | *? {{#dpl: namespace=Category | format=,\n*%TITLE%,, }} }}
 
</td>
 
<td align="right">  但非  </td>
 
<td> &nbsp; {{#input: name= notcategory | value = {{{notcategory|}}} |type= select
 
                                        | *? {{#dpl: namespace=Category | format = ,\n*%TITLE%,, }} }}
 
</td>
 
</tr>
 
<tr bgcolor="#ffddff">
 
<td align="right"> 套用某樣板(Template)的頁面(uses) </td>
 
<td> &nbsp; {{#input: name= uses | value = {{{uses|}}} |type= select
 
                                | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,, }} }}
 
</td>
 
<td align="right">  但非  </td>
 
<td> &nbsp; {{#input: name= notuses | value = {{{notuses|}}} |type= select
 
                                    | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,, }} }}
 
</td>
 
</tr>
 
<tr bgcolor="#ffffdd">
 
<td align="right"> 連結至某頁(links to) </td>
 
<td> &nbsp; {{#input: name= linksto | value = {{{linksto|}}} }}
 
</td>
 
<td align="right"> (無連結至某頁)but not to </td>
 
<td> &nbsp; {{#input: name= notlinksto | value = {{{notlinksto|}}} }}
 
</td>
 
</tr>
 
<tr bgcolor="#ffeedd">
 
<td align="right"> 為某人所創建的頁面(created by) </td>
 
<td> &nbsp; {{#input: name= createdby | value = {{{createdby|}}} |type= select
 
                                      | *? {{#dpl: namespace=User | format=,\n*%TITLE%,, }} }}
 
</td>
 
<td align="right">&nbsp; 為某人所修改過的頁面(modified by) </td>
 
<td> &nbsp; {{#input: name= modifiedby | value = {{{modifiedby|}}} |type= select
 
                                      | *? {{#dpl: namespace=User | format=,\n*%TITLE%,, }} }}
 
</td>
 
</tr>
 
<tr bgcolor="#ddeeff">
 
<td align="right"> 截至某日前最後的版本 last rev. before </td>
 
<td> &nbsp; {{#input: name= lastrevisionbefore | value = {{#if:{{{lastrevisionbefore|}}}|{{{lastrevisionbefore|}}}|YYYY-MM-DD}} }}</td>
 
<td align="right"> 於某日後最早的版本 first rev. since </td>
 
<td> &nbsp; {{#input: name= firstrevisionsince | value = {{#if:{{{firstrevisionsince|}}}|{{{firstrevisionsince|}}}|YYYY-MM-DD}} }}</td>
 
</tr>
 
<tr bgcolor="#ddeeff">
 
<td align="right"> 於某日前的所有版本''all revs.'' before </td>
 
<td> &nbsp; {{#input: name= allrevisionsbefore | value = {{#if:{{{allrevisionsbefore|}}}|{{{allrevisionsbefore|}}}|YYYY-MM-DD}} }}</td>
 
<td align="right"> 於某日後所有的版本''all revs.'' since </td>
 
<td> &nbsp; {{#input: name= allrevisionssince  | value =  {{#if:{{{allrevisionssince|}}}|{{{allrevisionssince|}}}|YYYY-MM-DD}} }}</td>
 
</tr>
 
</table>
 
<table cellpadding=0 cellspacing=0 margins=0>
 
</table>
 
'''顯示條件(某些須搭配排序依據使用):'''<br>
 
名字空間(namespace) {{#input: name= shownamespace
 
  |type= select | value = {{{shownamespace|}}} |
 
*yes
 
*no
 
}}分類(categories) {{#input: name= addcategories
 
  |type= select | value = {{{addcategories|}}} |
 
*no
 
*yes
 
}}瀏覽次數(visits) {{#input: name= addpagecounter
 
  |type= select | value = {{{addpagecounter|}}} |
 
*no
 
*yes
 
}}尺寸(size) {{#input: name= addpagesize
 
  |type= select | value = {{{addpagesize|}}} |
 
*no
 
*yes
 
}}該版本的編輯者(user) {{#input: name= adduser
 
  |type= select | value = {{{adduser|}}} |
 
*no
 
*yes
 
}}該版本的編輯日期editdate {{#input: name= addeditdate
 
  |type= select | value = {{{addeditdate|}}} |
 
*no
 
*yes
 
}}造訪日(touch date): {{#input: name= addpagetoucheddate
 
  |type= select | value = {{{addpagetoucheddate|}}} |
 
*no
 
*yes
 
}}
 
'''資料排序:'''<br>
 
排序依據(ordermethod) {{#input: name= ordermethod |type= select | value = {{{ordermethod|}}} |
 
*-
 
*category,firstedit
 
*category,lastedit
 
*category,pagetouched
 
*category,sortkey
 
*categoryadd
 
*counter
 
*firstedit
 
*lastedit
 
*pagetouched
 
*size
 
*title
 
*titlewithoutnamespace
 
*user,firstedit
 
*user,lastedit
 
}}升(降)冪(order): {{#input: name= order
 
  |type= select | value = {{{order|}}} |
 
*ascending
 
*descending
 
}}僅顯示相關的連結,而非直接顯示圖像(image)或分類(category)頁面(escapelinks): {{#input: name= escapelinks
 
  |type= select | value = {{{escapelinks|}}} |
 
*true
 
*false
 
}}隨機選取頁數(randomcount): {{#input: name= randomcount
 
  |type= select | value = {{{randomcount|}}} |
 
*-
 
*1
 
*3
 
*5
 
*10
 
}}輸出(export): {{#input: name= export
 
  |type= select | value = {{{export|}}} |
 
*no
 
*yes
 
}}
 
<table cellpadding=0 cellspacing=0 margins=0>
 
<tr bgcolor="#eeffee">
 
<td> 符合頁面名稱(須於其後接半型百分號「%」) (title(%)) {{#input: name= titlematch | value = {{{titlematch|}}} }} 欄位數量(columns) {{#input: name= columns |type= select | value = {{{columns|}}} |
 
*3
 
*1
 
*2
 
*3
 
*4
 
*5
 
}}限定最大輸出紀錄數量(maxrecords) {{#input: name= count | value = {{{count|}}} | size = 2
 
}} &nbsp; &nbsp; {{#input: type = submit | value = 列出結果 (List members) }}
 
&nbsp; <small>[[:Template:Catlist|reset]] &nbsp; [[:Template:Catgraph|graph]]</small>
 
</td></tr></table>
 
}}
 
<!------------------------------------------------------------------------------------------------------------->
 
<includeonly>
 
{{#if:{{{name|}}}|
 
==== {{{name}}} ====
 
|}}
 
{{#dpl: resultsheader=<small>%PAGES% members found.<br><hr></small>\n
 
|noresultsheader=<small>There are no results for your query.<br><hr></small>\n
 
|oneresultheader=<small>1 member found.<br><hr></small>\n
 
|{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=|namespace={{{namespace|}}}}}}}}}
 
|{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=|notnamespace={{{notnamespace|}}}}}}}}}
 
|{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}}}}}
 
|{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}}}}}
 
|{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}}}}}
 
|{{#ifeq:{{{notuses|}}}|?||{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}}}}}
 
|{{#ifeq:{{{createdby|}}}|?||{{#if:{{{createdby|}}}|createdby={{{createdby|}}}}}}}
 
|{{#ifeq:{{{modifiedby|}}}|?||{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}}}}}
 
|titlematch={{{titlematch|}}}
 
|nottitlematch={{{nottitlematch|}}}
 
|linksto={{{linksto|}}}
 
|notlinksto={{{notlinksto|}}}
 
|{{#if:{{{columns|}}}|columns={{{columns|}}}|columns=3}}
 
|{{#ifeq:{{{export|}}}|yes|columns=1}}
 
|order={{{order|}}}
 
|{{#ifeq:{{{ordermethod|}}}|-||ordermethod={{{ordermethod|}}}}}
 
|escapelinks={{{escapelinks|}}}
 
|{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}}}
 
|{{#ifeq:{{{count|}}}|-||{{#if:{{{count|}}}|count={{{count|}}}}}}}
 
|shownamespace={{{shownamespace|}}}
 
|addcategories={{{addcategories|}}}
 
|addpagecounter={{{addpagecounter|}}}
 
|addpagesize={{{addpagesize|}}}
 
|addeditdate={{{addeditdate|}}}
 
|addpagetoucheddate={{{addpagetoucheddate|}}}
 
|adduser={{{adduser|}}}
 
|{{#ifeq:{{{lastrevisionbefore|}}}|YYYY-MM-DD||lastrevisionbefore={{{lastrevisionbefore|}}}}}
 
|{{#ifeq:{{{firstrevisionsince|}}}|YYYY-MM-DD||firstrevisionsince={{{firstrevisionsince|}}}}}
 
|{{#ifeq:{{{allrevisionsbefore|}}}|YYYY-MM-DD||allrevisionsbefore={{{allrevisionsbefore|}}}}}
 
|{{#ifeq:{{{allrevisionssince|}}}|YYYY-MM-DD||allrevisionssince={{{allrevisionssince|}}}}}
 
|{{#ifeq:{{{export|}}}|yes|include={export.dpl}}}
 
|{{#ifeq:{{{export|}}}|yes|format=[http://gs-nb/dpldemo/index.php/Special:Export?pages=,,%0D%0A, click to start export of '''all selected pages''']}}
 
}}
 
----
 
<small><u>Your query used the following parameters</u><br/>
 
{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=<br>|namespace={{{namespace|}}}<br>}}}}}}<!--
 
-->{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=<br>|notnamespace={{{notnamespace|}}}<br>}}}}}}<!--
 
-->{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{notuses|}}}|?||{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{createdby|}}}|?||{{#if:{{{createdby|}}}|createdby={{{createdby|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{modifiedby|}}}|?||{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}<br>}}}}<!--
 
-->{{#if:{{{titlematch|}}}|titlematch={{{titlematch|}}}<br>}}<!--
 
-->{{#if:{{{nottitlematch|}}}|nottitlematch={{{nottitlematch|}}}<br>}}<!--
 
-->{{#if:{{{linksto|}}}|linksto={{{linksto|}}}<br>}}<!--
 
-->{{#if:{{{notlinksto|}}}|notlinksto={{{notlinksto|}}}<br>}}<!--
 
-->{{#if:{{{columns|}}}|columns={{{columns|}}}<br>|columns=3<br>}}<!--
 
-->{{#ifeq:{{{export|}}}|yes|columns=1<br>}}<!--
 
-->{{#ifeq:{{{order|}}}|ascending||order={{{order|}}}<br>}}<!--
 
-->{{#ifeq:{{{ordermethod|}}}|-||ordermethod={{{ordermethod|}}}<br>}}<!--
 
-->{{#ifeq:{{{escapelinks|}}}|true||escapelinks={{{escapelinks|}}}<br>}}<!--
 
-->{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}<br>}}<!--
 
-->{{#ifeq:{{{count|}}}|-||{{#if:{{{count|}}}|count={{{count|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{shownamespace|}}}|no||shownamespace={{{shownamespace|}}}<br>}}<!--
 
-->{{#ifeq:{{{addcategories|}}}|no||addcategories={{{addcategories|}}}<br>}}<!--
 
-->{{#ifeq:{{{addpagecounter|}}}|no||addpagecounter={{{addpagecounter|}}}<br>}}<!--
 
-->{{#ifeq:{{{addpagesize|}}}|no||addpagesize={{{addpagesize|}}}<br>}}<!--
 
-->{{#ifeq:{{{addeditdate|}}}|no||addeditdate={{{addeditdate|}}}<br>}}<!--
 
-->{{#ifeq:{{{addpagetoucheddate|no||}}}|addpagetoucheddate={{{addpagetoucheddate|}}}<br>}}<!--
 
-->{{#ifeq:{{{adduser|}}}|no||adduser={{{adduser|}}}<br>}}<!--
 
-->{{#ifeq:{{{lastrevisionbefore|}}}|YYYY-MM-DD||lastrevisionbefore={{{lastrevisionbefore|}}}<br>}}<!--
 
-->{{#ifeq:{{{firstrevisionsince|}}}|YYYY-MM-DD||firstrevisionsince={{{firstrevisionsince|}}}<br>}}<!--
 
-->{{#ifeq:{{{allrevisionsbefore|}}}|YYYY-MM-DD||allrevisionsbefore={{{allrevisionsbefore|}}}<br>}}<!--
 
-->{{#ifeq:{{{allrevisionssince|}}}|YYYY-MM-DD||allrevisionssince={{{allrevisionssince|}}}<br>}}<!--
 
--></small><br></includeonly>
 

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>