This is the Csp show class definition template. It should be called in the following format:
{{Csp show class definition |$namespacename= (text) e.g. "Wiki" |$page= (pagename without namespace) e.g. "Class definition/Application page" |Class= (text) should always be "Class definition" for those created from CSP 1.8.0 or later |Defines class= (text) e.g. "Person" |Footer template= (full pagename) |Page properties template= (full pagename) |Sidebar template= (full pagename) |Sub header template= (full pagename) }}
Note about the use of "Template:" inside this template to create links in the results: this was done because properties of type pages in WikiSearch are returned without namespace (due to how SMW stores them in ES). An alternative would be to retrieve data from slots of the class definition page or to add new properties (of type Text) that also contain the template names. However this wouldn't be compatible with class definitions from before CSP 1.8.0. Once the old style class definitions have been officially deprecated (1.9.0 or later), this template could be updated to change this.
Test
- Article properties
- (no footer template)
- Sidebar
- Subheader
- Class definition properties
- (no footer template)
- Sidebar
- Subheader