Examples/Parameter: titlegt (example 1): Difference between revisions
< Examples
imported>FrozenPlum m (I should have supplied the best-practice link type for example (that would work for templates, categories, and other namespaces)) |
imported>FrozenPlum m (FrozenPlum moved page Criteria for page selection/Parameter: titlegt (example 1) to Examples/Parameter: titlegt (example 1): Simplifying how things are structured) |
(No difference)
|
Latest revision as of 22:41, 31 March 2023
Example
This selects the article after the Chocolate Cake article, as they appear in Category:Dessert examples.
The format
statement formats the output into a plain page title, the count is set to 1 to ensure only one next page is returned.
{{#dpl: |titlegt = Chocolate Cake |category = Dessert examples |format = ,[[%PAGE%|%TITLE%]] |count = 1 }}
Result
{{#dpl: |titlegt = Chocolate Cake |category = Dessert examples |format = ,%TITLE% |count = 1 }}