利用者:Yukichi/dpl
出典: Wikia
ここでは、記事のリストを、様々な条件を指定して作成するダイナミックページリスト(DPL)について解説します。
目次 |
[編集] 概要
これは、名前空間、カテゴリなどをキーに記事のリストを抽出し、そのリストを、日付や名前順、ページサイズといったパラメーターの順序で並べることのできるメディアウィキの拡張機能です。また、ウィキアでは、この拡張の抽出補助のためのツールも用意しています。
[編集] 利用の基礎
ダイナミックページリストは、<dpl>というタグをを使います。<dpl>ではじまり、その下に抽出条件を指定、その後</dpl>で閉じます。例えば、
<dpl> namespace= count=7 </dpl>
とすると、
といった風に七つの記事のリストが抽出されます(パラメータ"count"で記事数を指定しています)。
[編集] 指定できるパラメータ
[編集] 抽出する記事の指定
- category
- categorymatch
- categoryregexp
- notcategory
- notcategorymatch
- notcategoryregexp
- categoriesminmax
- namespace
- notnamespace
- linksfrom
- openreferences
- notlinksfrom
- linksto
- notlinksto
- uses
- notuses
- createdby
- notcreatedby
- modifiedby
- notmodifiedby
- lastmodifiedby
- title
- titlematch
- titleregexp
- nottitlematch
- nottitleregexp
- includematch
- includenotmatch
- lastrevisionbefore
- firstrevisionsince
- allrevisionsbefore
- allrevisionssince
- articlecategory
- includesubpages
- redirects
- minoredits
[編集] 出力の内容の制限
- count
- offset
- randomcount
- randomseed
- distinct
- ignorecase
- skipthispage
[編集] 出力の順序
- ordermethod
- categoryadd
- counter
- size
- firstiedit
- lastedit
- pagetouched
- pagesel
- title
- titlewithoutnamespace
- category,firstedit
- category,lastedit
- category,pagetouched
- category,sortkey
- user,firstedit
- user,lastedit
- order
- ordercollation
[編集] 出力する形式
- mode
- unordered
- ordered
- none
- line
- category
- userformat
- inlinetext
- listseparators
- format
- secseparators
- multisecseparators
- dominantsection
- table
- tablerow
- headingmode
- headingcount
- listattr
- itemattr
- hlistattr
- hitemattr
- userdateformat
- shownamespace
- escapelinks
- titlemaxlength
- replaceintitle
- columns
- rows
- rowsize
- rowcolformat
[編集] その他
- goal
- allowcachedresults
- reset
- eliminate
- debug
