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

Content added Content deleted
imported>FrozenPlum
mNo edit summary
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.)
Line 6: Line 6:
==Example==
==Example==


This list will output pages that are in [[:Category:Number examples]] that link to other pages with <code>Tw</code> 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 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.


<table class="wikitable" style="vertical-align:top;">
<tr>
<td>'''Parser extension (tag)'''
<pre>
<dpl>
category = Number examples
linksto = Tw%
</dpl>
</pre>
</td><td>'''Parser function'''
<pre>
<pre>
{{#dpl:
{{#dpl:
Line 24: Line 14:
}}
}}
</pre>
</pre>

</td></tr>

<tr><td colspan="2">
'''Result:'''<br>
==Result==

Parser function method<br>
{{#dpl:
{{#dpl:
|category = Number examples
|category = Number examples
|linksto = Tw%
|linksto = Tw%
}}
}}
</td></tr>
</table>
<noinclude>
<noinclude>
[[Category:Select by link-related criteria‎]]
[[Category:Select by link-related criteria‎]]