Template:LinkshereTemplateNS: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
m (Mcint moved page Template:LinkshereTemplates to Template:LinkshereTemplateNS without leaving a redirect)
m (→‎Drafts: mw:help link)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
Based on the success of [[Template:linkshere]], I want to create templates to easily invoke showing lists of Template (ns=10) and Main (ns=0) pages that link to the surrounding, or argument-specified page.  [[Wiki/Todo]] namespace list for newbies  
Based on the success of [[Template:linkshere]], I want to create templates to easily invoke showing lists of Template (ns=10) and Main (ns=0) pages that link to the surrounding, or argument-specified page.  [[Wiki/Todo]] namespace list for newbies  


* [[Template:linkshere]] -- (all) --> perhaps just main, be sure to include links / or embed the alt search links into the render
{{linkshere/about/templates}}
* [[Template:linkshereA]] -- linkshere all
* [[Template:linkshereT]] -- linkshere Template
* [[Template:linkshereM]] -- linkshere Main
* [[Template:linkshereC]] -- linkshere Category


I might use full names -- I don't remember if I can redirect the short names to the long names, and have the long-name templates correctly invoke by calling the templates as short names.  Certainly mediawiki enforces a single-redirect layer, by default or without workaround.
I might use full names -- I don't remember if I can redirect the short names to the long names, and have the long-name templates correctly invoke by calling the templates as short names.  Certainly mediawiki enforces a single-redirect layer, by default or without workaround.


=== For types of linking & use - see also ===
* Transclusions
* Links
* Redirects


https://www.noisebridge.net/wiki/Special:WhatLinksHere?target=Template%3AProjects&namespace=10
can be excluded from search, from the [[Special:WhatLinksHere]] of [[Special:SpecialPages]].
</noinclude>
</noinclude>


==[[onlyinclude]]==
==[[onlyinclude]]==
<onlyinclude>
<onlyinclude><div class="mw-collapsible mw-collapsed">''[{{fullurl:Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}} <small>Special:WhatLinksHere/</small>{{FULLPAGENAME}}<small>?namespace=10</small>] (<small><code>{{[[template:linksheret|<nowiki>linksheret</nowiki>]]}}</code> <small>[[Template:LinkshereAllNS|A]]·[[Template:LinkshereMainNS|M]]·[[Template:LinkshereCategoryNS|C]]·[[Template:LinkshereTemplateNS|T]]</small></small>):''
<div class="mw-collapsible mw-collapsed">''[[Special:WhatLinksHere/{{FULLPAGENAME}}?namespace=10]] (<small><code>{{[[template:linksheret|<nowiki>linksheret</nowiki>]]}}</code></small>):''
<div class="mw-collapsible-content"><blockquote>{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}</blockquote></div></div>
<div class="mw-collapsible-content"><blockquote>{{Special:WhatLinksHere/{{FULLPAGENAME}}?namespace=10}}</blockquote></div></div>
</onlyinclude>
</onlyinclude>
<noinclude>
== Drafts ==
https://www.noisebridge.net/wiki/Special:WhatLinksHere?target=Template%3AProjects&namespace=10
* FPN FULLPAGENAME {{FULLPAGENAME}}
* PN PAGENAME {{PAGENAME}}
* PNE PAGENAMEE {{PAGENAMEE}}
* NS NAMESPACE {{NAMESPACE}}
[[mw:Help:Magic_words#Page_names]]
=== links ===
Attempts:
<pre><nowiki>
{{Special:WhatLinksHere?target={{NAMESPACE}}:{{PAGENAME}}&namespace=10}} # no
{{Special:WhatLinksHere?target={{FULLPAGENAME}}&namespace=10}} #no
{{Special:WhatLinksHere?target={{FULLPAGENAME}}}} # ..not even!?
{{Special:WhatLinksHere/{{FULLPAGENAME}}}}  # yes, incomplete
{{Special:WhatLinksHere/{{FULLPAGENAME}}?namespace=10}}  # nope
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}  # works!!
</nowiki></pre>
<blockquote>
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}
</blockquote>
[{{fullurl:Page|action=edit}} edit Page]
</noinclude>

Latest revision as of 21:05, 30 November 2025

Based on the success of Template:linkshere, I want to create templates to easily invoke showing lists of Template (ns=10) and Main (ns=0) pages that link to the surrounding, or argument-specified page. Wiki/Todo namespace list for newbies

I might use full names -- I don't remember if I can redirect the short names to the long names, and have the long-name templates correctly invoke by calling the templates as short names. Certainly mediawiki enforces a single-redirect layer, by default or without workaround.

For types of linking & use - see also[edit source]

  • Transclusions
  • Links
  • Redirects

can be excluded from search, from the Special:WhatLinksHere of Special:SpecialPages.


onlyinclude[edit source]

Special:WhatLinksHere/Template:LinkshereTemplateNS?namespace=10 ({{linksheret}} A·M·C·T):


Drafts[edit source]

https://www.noisebridge.net/wiki/Special:WhatLinksHere?target=Template%3AProjects&namespace=10

  • FPN FULLPAGENAME Template:LinkshereTemplateNS
  • PN PAGENAME LinkshereTemplateNS
  • PNE PAGENAMEE LinkshereTemplateNS
  • NS NAMESPACE Template

mw:Help:Magic_words#Page_names

links[edit source]

Attempts:

{{Special:WhatLinksHere?target={{NAMESPACE}}:{{PAGENAME}}&namespace=10}} # no
{{Special:WhatLinksHere?target={{FULLPAGENAME}}&namespace=10}} #no
{{Special:WhatLinksHere?target={{FULLPAGENAME}}}} # ..not even!?
{{Special:WhatLinksHere/{{FULLPAGENAME}}}}  # yes, incomplete
{{Special:WhatLinksHere/{{FULLPAGENAME}}?namespace=10}}  # nope
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}  # works!!

edit Page