Libregamewiki:DatabaseQuery
Jump to navigation
Jump to search
DatabaseQuery is an extension used by LibreGameWiki. It allows to make queries to the database of games. It is meant to be used on pages like List of Games and New games and releases.
Its source code can be found at [1].
Usage[edit]
This extension can be used by inserting the following code into a wiki page:
{{#databasequery:<query>|<table style>|<column header template>|<row template>|<count or filter>}}
Parameters:
query: Type of the query. Eitherrecentreleasedfor recently-released games orgamelistfor a list of gamestable style: Style for the table. Commonly used arewikitableandsortable. If empty, uses the default stylecolumn header template: Name of the template to be used to render column headers (excluding theTemplate:prefix)row template: Name of the template to render each row (excluding theTemplate:prefix). The names of the columns are used as parameter names herecount or filter: Depends on the query type- For
recentreleased: Number of entries in output - For
gamelist: Filter of the game name.X%filters all games that start with letter X.<Xfilters all games that start with a letter “smaller than” X
- For
Recommended column header and row templates[edit]
In LibreGameWiki, the following templates for column header template are available:
And for row template:
Author[edit]
This extension comes from nikitools and is authored by Hendrik Brummermann.