Template:Linkshere: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
m (add todo)
(→‎onlyinclude: update with Special: link small text, and related template links)
Line 5: Line 5:
==[[onlyinclude]]==
==[[onlyinclude]]==
<onlyinclude>
<onlyinclude>
<div class="mw-collapsible mw-collapsed">''[[Special:WhatLinksHere/{{FULLPAGENAME}}]] (<small><code>{{[[template:linkshere|<nowiki>linkshere</nowiki>]]}}</code></small>):''
<div class="mw-collapsible mw-collapsed">''[{{fullurl:Special:WhatLinksHere/{{FULLPAGENAME}}}} <small>Special:WhatLinksHere/</small>{{FULLPAGENAME}}] (<small><code>{{[[template:linksheret|<nowiki>linkshere</nowiki>]]}}</code> <small>[[Template:LinkshereAllNS|A]]·[[Template:LinkshereMainNS|M]]·[[Template:LinkshereCategoryNS|C]]·[[Template:LinkshereTemplateNS|T]]</small></small>):''
<div class="mw-collapsible-content"><blockquote>{{Special:WhatLinksHere/{{FULLPAGENAME}}}}</blockquote></div></div>
<div class="mw-collapsible-content"><blockquote>{{Special:WhatLinksHere/{{FULLPAGENAME}}}}</blockquote></div></div>
</onlyinclude>
</onlyinclude>

Revision as of 18:58, 27 July 2025

Use this with {{linkshere}} to show what links to current page, in folded away section.

It is preferable to only include this template within a noinclude'd section of other pages, particularly if used in a template.

onlyinclude

Special:WhatLinksHere/Template:Linkshere ({{linkshere}} A·M·C·T):


TODO

Allow calling this template with arguments, e.g. {{linkshere|template:t}} to allow links to specific pages to be shown with 1) link to search 2) list of links, in 3) collapsed-default collapsible form. Category:Wiki/Todo