Template:NoResultsCustomMessage/doc: Difference between revisions
Jump to navigation
Jump to search
m (Protected "Template:NoResultsCustomMessage/doc": Prevent editing of templates ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
(→Syntax) |
||
| Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<pre> | <pre> | ||
{{NoResultsCustomMessage|1|2|3}} | {{NoResultsCustomMessage | ||
|1 | |||
|2 | |||
|3 | |||
}} | |||
</pre> | </pre> | ||
Revision as of 12:40, 2 May 2023
Description[edit source]
This template displays two different outcomes depending on whether a Cargo query returns data.
Syntax[edit source]
{{NoResultsCustomMessage
|1
|2
|3
}}
Supplied items could be lengthy so anonymous/unnamed variables were used.
- The Cargo query. It can be a template itself, or a raw query (template recommended!)
- The content to display if the query has no results.
- The content to display if the query returns something.