Customize Lists: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
(Created page with "=== Introduction === === Customize the defaults for your wiki === If you want to change the appearance for all calls of <code><nowiki>{{#semorg-list:''templatename''}}</nowi...")
 
Line 3: Line 3:
=== Customize the defaults for your wiki ===
=== Customize the defaults for your wiki ===


If you want to change the appearance for all calls of <code><nowiki>{{#semorg-list:''templatename''}}</nowiki></code> create your own template as a replacement for <code>Template:Semorg-''templatename''-row</code>. It's name should follow the convention, i.e. start with <code>semorg-</code> and end with <code>-row</code>.
If you want to change the appearance for all calls of <code><nowiki>{{#semorg-list:</nowiki>''templatename''<nowiki>}}</nowiki></code> create your own template as a replacement for <code>Template:Semorg-''templatename''-row</code>. It's name should follow the convention, i.e. start with <code>semorg-</code> and end with <code>-row</code>.


* Change <code>MediaWiki:Semorg-list-''templatename''-row-template</code>
* Change <code>MediaWiki:Semorg-list-''templatename''-row-template</code>

Revision as of 22:43, 27 September 2020

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)

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