Customize Lists: Difference between revisions
From SemanticOrganization
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
=== Custom row templates === | === Custom row templates === | ||
After having determined the name of the row template the script checks for the existence of <code>Template:semorg-''<row-template>''-'''custom'''-row</code>. If it hasn't been created, <code>Template:semorg-''<row-template>''-row</code> is used. | After having determined the name of the row template the script checks for the existence of <code>Template:semorg-list-''<row-template>''-'''custom'''-row</code>. If it hasn't been created, <code>Template:semorg-list-''<row-template>''-row</code> is used. | ||
So, the easiest way to customize a row template is to just move it to <code>Template:semorg-list-''<row-template>''-'''custom'''-row</code> and then edit the template. | |||
=== Single custom list === | === Single custom list === |
Latest revision as of 21:33, 8 March 2021
This page is part of semorg's documentation.
Introduction
Customize the defaults for your wiki
If you want to change the appearance for all calls of {{#semorg-list:templatename}}
create your own template as a replacement for Template:Semorg-templatename-row
. It's name should follow the convention, i.e. start with semorg-
and end with -row
.
- Change
MediaWiki:Semorg-list-templatename-row-template
- Change
MediaWiki:Semorg-list-templatename-headers
(only if you changed the columns)
Custom row templates
After having determined the name of the row template the script checks for the existence of Template:semorg-list-<row-template>-custom-row
. If it hasn't been created, Template:semorg-list-<row-template>-row
is used.
So, the easiest way to customize a row template is to just move it to Template:semorg-list-<row-template>-custom-row
and then edit the template.
Single custom list
Customized call of {{#semorg-list:''templatename''}}
- use parameter
category
- use parameter
query
- use parameter
row template
- use parameter
sort
- use parameter
order
- use parameter
default
- use parameter
limit
- use parameter
headers
- use
?property=name
to add custom query fields