Template:LinksTo: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- | |||
{{#dpl: | {{#dpl: | ||
| namespace = | | namespace = | ||
Line 4: | Line 5: | ||
| titleregexp = ^[A-J] | | titleregexp = ^[A-J] | ||
| include = * | | include = * | ||
| includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}(\]{{!}}\{{!}}{{!}}#)@ | | includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}( )*(\]{{!}}\{{!}}{{!}}#)@ | ||
| includemaxlength = 0 | | includemaxlength = 0 | ||
| format = ,\n* [[%PAGE%|%TITLE%]],, | | format = ,\n* [[%PAGE%|%TITLE%]],, | ||
Line 14: | Line 15: | ||
| titleregexp = ^K[A-Z] | | titleregexp = ^K[A-Z] | ||
| include = * | | include = * | ||
| includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}(\]{{!}}\{{!}}{{!}}#)@ | | includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}( )*(\]{{!}}\{{!}}{{!}}#)@ | ||
| includemaxlength = 0 | | includemaxlength = 0 | ||
| format = ,\n* [[%PAGE%|%TITLE%]],, | | format = ,\n* [[%PAGE%|%TITLE%]],, | ||
Line 24: | Line 25: | ||
| titleregexp = ^K[a-ce-z] | | titleregexp = ^K[a-ce-z] | ||
| include = * | | include = * | ||
| includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}(\]{{!}}\{{!}}{{!}}#)@ | | includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}( )*(\]{{!}}\{{!}}{{!}}#)@ | ||
| includemaxlength = 0 | | includemaxlength = 0 | ||
| format = ,\n* [[%PAGE%|%TITLE%]],, | | format = ,\n* [[%PAGE%|%TITLE%]],, | ||
Line 34: | Line 35: | ||
| titleregexp = ^Kd | | titleregexp = ^Kd | ||
| include = * | | include = * | ||
| includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}(\]{{!}}\{{!}}{{!}}#)@ | | includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}( )*(\]{{!}}\{{!}}{{!}}#)@ | ||
| includemaxlength = 0 | | includemaxlength = 0 | ||
| format = ,\n* [[%PAGE%|%TITLE%]],, | | format = ,\n* [[%PAGE%|%TITLE%]],, | ||
Line 44: | Line 45: | ||
| titleregexp = ^[L-Z] | | titleregexp = ^[L-Z] | ||
| include = * | | include = * | ||
| includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}(\]{{!}}\{{!}}{{!}}#)@ | | includematch = @\[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}( )*(\]{{!}}\{{!}}{{!}}#)@ | ||
| includemaxlength = 0 | | includemaxlength = 0 | ||
| format = ,\n* [[%PAGE%|%TITLE%]],, | | format = ,\n* [[%PAGE%|%TITLE%]],, | ||
| resultsheader = There are %TOTALPAGES% pages beginning with L-Z\n | | resultsheader = There are %TOTALPAGES% pages beginning with L-Z\n | ||
}} | }} | ||
--> | |||
<noinclude> | <noinclude> | ||
---- | ---- | ||
{{Warning|1=Searching doesn't work on UserBase due do an issue with the 3. party module DynamicPageList3 - | |||
see [https://invent.kde.org/teams/web/wiki-sites/-/issues/16 issue on invent]}} | |||
Finds all English pages in namespace Main linking to the page given as argument. Usage <nowiki>{{LinksTo|</nowiki>'''''page name'''''<nowiki>}}</nowiki>, where '''''page name''''' is the name of the page. Note, that any space characters or underscores in the name should be replaced by <nowiki>[_ ]</nowiki> — that is: 'open square bracket', 'underscore', 'space', 'close square bracket'. This is because the links are found by a string search of the text of pages. In wiki format names can be written with either space or underscore, and for many pages both form occur. | Finds all English pages in namespace Main linking to the page given as argument. Usage <nowiki>{{LinksTo|</nowiki>'''''page name'''''<nowiki>}}</nowiki>, where '''''page name''''' is the name of the page. Note, that any space characters or underscores in the name should be replaced by <nowiki>[_ ]</nowiki> — that is: 'open square bracket', 'underscore', 'space', 'close square bracket'. This is because the links are found by a string search of the text of pages. In wiki format names can be written with either space or underscore, and for many pages both form occur. | ||
Line 59: | Line 64: | ||
[[Category:Template]] | [[Category:Template]] | ||
[[Category:TemplateWithIssues]] | |||
</noinclude> | </noinclude> |
Latest revision as of 11:10, 6 March 2024
Finds all English pages in namespace Main linking to the page given as argument. Usage {{LinksTo|page name}}, where page name is the name of the page. Note, that any space characters or underscores in the name should be replaced by [_ ] — that is: 'open square bracket', 'underscore', 'space', 'close square bracket'. This is because the links are found by a string search of the text of pages. In wiki format names can be written with either space or underscore, and for many pages both form occur.
As an example, {{LinksTo|Getting[_ ]Help}} gives