Template talk:Subpages: Difference between revisions
(→Support template arguments -- for embedding subpage list of target page instead of current-embedding page: new section) |
(→Parameterize template: new section) |
||
| Line 9: | Line 9: | ||
[[Category:Wiki/Project]] [[:Category:Wiki/Project]] | [[Category:Wiki/Project]] [[:Category:Wiki/Project]] | ||
--[[User:Mcint|Mcint]] ([[User_talk:Mcint|talk]]) [[mw:help:sign|<code><nowiki>--~~</nowiki><nowiki>~~</nowiki></code>]] 15:40, 26 August 2025 (PDT) | --[[User:Mcint|Mcint]] ([[User_talk:Mcint|talk]]) [[mw:help:sign|<code><nowiki>--~~</nowiki><nowiki>~~</nowiki></code>]] 15:40, 26 August 2025 (PDT) | ||
== Parameterize template == | |||
[[mw:Help:Templates]] can be parameterized. | |||
<blockquote> | |||
<pre>{{subpages}}</pre> | |||
{{subpages}} | |||
<pre>{{linkshere}}</pre> | |||
{{linkshere}} | |||
</blockquote> | |||
For this, let's support: | |||
<pre>{{subpages|WikiWG}}</pre> | |||
<pre>{{subpages|Category:Wiki}}</pre> | |||
--[[User:Mcint|Mcint]] ([[User_talk:Mcint|talk]]) [[mw:help:sign|<code><nowiki>--~~</nowiki><nowiki>~~</nowiki></code>]] 16:58, 26 August 2025 (PDT) | |||
Latest revision as of 16:58, 26 August 2025
Support template arguments -- for embedding subpage list of target page instead of current-embedding page[edit source]
Current use on pages, see sidebar "What links here" for Template:subpages page, i.e. Special:WhatLinksHere/Template:subpages, or similarly, analogously for Template:linkshere page Special:WhatLinksHere/Template:linkshere.
Sometimes you want to embed links for another page, and the templates make it easy to add explainers, or simple invocations so more editors can more easily add the templates.
{{Special:WhatLinksHere/Template:linkshere}} works on any page, even here on this talk page (getting error / slow to render during editing. Which may be an general issue, or may be due to additional load. Category:Wiki/Project
--Mcint (talk) --~~~~ 15:40, 26 August 2025 (PDT)
Parameterize template[edit source]
mw:Help:Templates can be parameterized.
{{subpages}}Special:PrefixIndex/Template talk:Subpages/:
{{linkshere}}
For this, let's support:
{{subpages|WikiWG}}
{{subpages|Category:Wiki}}