Examples/Parameter: linksto (example 1): Difference between revisions

From DynamicPageList3 Manual
Content deleted Content added
imported>FrozenPlum
m Lens0021 make excellent point that this had tables, which complicated understanding/explanation, so removed it (isn't necessary to keep repeating syntax variants, but my focus at the time was parcelling out the examples, getting them working, and refining later). I'll remove it now anyhow, since I didn't get through the other pages in their entirety to finish parcelling out, and getting examples working first anyway.
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)
Line 6: Line 6:
==Example==
==Example==


This will select pages in [[:Category:Number examples]] that link to other pages with "Tw" in the name (e.g., pages that link to page '''[[Two]]''') that are in the ''Main'' namespace (by default). To make the comparison case-insensitive, the parameter <code>{{DPL|ignorecase}}</code> can be used.
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 <code>{{DPL|ignorecase}}</code> can be used.


<pre>
<pre>

Revision as of 08:45, 22 April 2022

Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

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% }}