Examples/Parameter: linksto (example 1): Difference between revisions
< Examples
Content deleted Content added
miraheze:dpl3>Soukupmi links only to pages that start with "Tw" as there would have to be a leading "%" otherwise; if we use "%Tw%" instead of "Tw%" page ThirtyOne would show in the list as well (as it links to ThirtyTwo) |
imported>FrozenPlum m FrozenPlum moved page Criteria for page selection/Parameter: linksto (example 1) to Examples/Parameter: linksto (example 1): Simplifying how things are structured |
||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
}} |
}} |
||
</pre> |
</pre> |
||
==Result== |
==Result== |
Latest revision as of 22:44, 31 March 2023
Example
This will select pages in Category:Number examples that link to other pages starting with "Tw" in the name (e.g., pages that link to page Two, but not to ThirtyTwo) that are in the Main namespace (by default). To make the comparison case-insensitive, the parameter ignorecase
can be used.
{{#dpl: |category = Number examples |linksto = Tw% }}
Result
Parser function method
{{#dpl:
|category = Number examples
|linksto = Tw%
}}