Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
11,987
edits
(→Use full wikitext instead of #template_display: syntaxhighlight) |
|||
| Line 202: | Line 202: | ||
}}</syntaxhighlight> | }}</syntaxhighlight> | ||
By setting use full wikitext=true, the template parser will interpret all wikitext within the template, allowing for more complex layouts, headings, classes, etc., as defined in your template. | |||
Explanation: | Explanation: | ||
ExampleTable: This is your Cargo table containing fields like name, description, and year. | * ExampleTable: This is your Cargo table containing fields like name, description, and year. | ||
ExampleTemplate: This template formats how each row from ExampleTable will be displayed. | * ExampleTemplate: This template formats how each row from ExampleTable will be displayed. | ||
<nowiki>{{{name|}}}</nowiki> means it will display the name field, with an empty string if name is not provided. | * <nowiki>{{{name|}}}</nowiki> means it will display the name field, with an empty string if name is not provided. | ||
<nowiki>{{{description|No description provided}}}</nowiki> shows the description or a default message if none exists. | * <nowiki>{{{description|No description provided}}}</nowiki> shows the description or a default message if none exists. | ||
<nowiki>{{{year|Unknown}}}</nowiki> similarly handles the year. | * <nowiki>{{{year|Unknown}}}</nowiki> similarly handles the year. | ||
Query Parameters: | Query Parameters: | ||
* format=template specifies that we're using a template for output. | * format=template specifies that we're using a template for output. | ||
| Line 216: | Line 217: | ||
This method allows for richer, more customized display options directly from your Cargo query results, integrating seamlessly with MediaWiki's text processing capabilities. | This method allows for richer, more customized display options directly from your Cargo query results, integrating seamlessly with MediaWiki's text processing capabilities. | ||
The options are: | The options are: | ||