Difference between revisions of "WikiDB/Index"
(→Special pages: Make into links to local versions of these pages, by way of example.) |
(→Criteria operators: Updated with list for next release.) |
||
Line 49: | Line 49: | ||
== Criteria operators == | == Criteria operators == | ||
− | The following operators are available for use within the | + | The following operators are available for use within the <code>criteria</code> attribute of the <code><repeat></code> tag. Note that, due to the inherent restrictions on attribute values, you currently need to write <code>></code> as <code>&gt;</code>, so you may wish to use the alternative text-representation instead. Note that text-representations are case-insensitive. |
− | + | ; Equal | |
− | + | : <code>=</code> or <code>==</code> or <code>EQ</code> | |
− | + | ; Not equal | |
− | + | : <code><></code> or <code>!=</code> or <code>NEQ</code> | |
− | + | ; Greater than | |
− | + | : <code>></code> or <code>GT</code> | |
+ | ; Less than | ||
+ | : <code><</code> or <code>LT</code> | ||
+ | ; Greater than or equal to | ||
+ | : <code>>=</code> or <code>GTE</code> | ||
+ | ; Less than or equal to | ||
+ | : <code><=</code> or <code>LTE</code> | ||
== Public constants == | == Public constants == |
Revision as of 23:43, 7 June 2015
For each category of item, this page contains an exhaustive list of available WikiDB features. Not all of these are documented elsewhere yet. I aim to ensure this page is always up-to-date with the latest features, even if the proper documentation doesn't appear until some time later.
Contents
Configuration settings
Used to configure how WikiDB works.
Maintenance scripts
Command-line scripts for creating, upgrading or maintaining the WikiDB database.
Special pages
Additional pages provided by WikiDB.
New wiki syntax
New wiki markup that WikiDB provides.
Built-in data types
Data types provided by WikiDB for use when defining tables. It is also possible for you to create custom data types, if necessary.
Meta-data fields
Extra fields that are included in each row of data, that may be referenced within the <repeat> tag.
- _SourceArticle
- _Row
Criteria operators
The following operators are available for use within the criteria
attribute of the <repeat>
tag. Note that, due to the inherent restrictions on attribute values, you currently need to write >
as >
, so you may wish to use the alternative text-representation instead. Note that text-representations are case-insensitive.
- Equal
-
=
or==
orEQ
- Not equal
-
<>
or!=
orNEQ
- Greater than
-
>
orGT
- Less than
-
<
orLT
- Greater than or equal to
-
>=
orGTE
- Less than or equal to
-
<=
orLTE
Public constants
The following constants have been provided for use in configuring/customisting WikiDB.
For setting $wgWikiDBMaxRefreshRate
- WIKIDB_DisableAutoRefresh
- WIKIDB_RefreshAll
For custom type handlers
The following constants have been provided for use when creating a custom type handler, in order to understand what operation is being requested.
- WIKIDB_Validate
- WIKIDB_FormatForDisplay
- WIKIDB_FormatForSorting
- WIKIDB_GetSimilarity