Template:Void/doc: Difference between revisions
Template page
More actions
+doc (separate page not needed) / new cat |
Fix language-code links to use Wikipedia interwiki prefixes |
||
| (8 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
< | {{Documentation subpage}} | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | |||
This template does nothing. | |||
It often is used within a template to the right of an equals sign. | More exactly, it outputs the [[w:null string|null string]]. It's useful for programming advanced templates. | ||
*It often is used within a template to the right of an equals sign. | |||
*It can be useful in killing part of template or page containing text and html comments (<!--- some commented stuff --->) surrounding the combined strings and multiple lines inside the template, which feeds them ... nowhere. Into the mythological bit bucket. | |||
==Alternatives== | ==Alternatives== | ||
It's also possible to use <code>{ | It's also possible to use <code>{{x|ns|ns:0}}</code> instead of <code><nowiki>{{void}}</nowiki></code>. | ||
Some [[m:Help:Magic words|magic words]] like {{ | Some [[m:Help:Magic words|magic words]] like {{x|END}} might also have the desired effect of doing nothing. | ||
==See also== | |||
*{{tl|Empty}} | |||
*[[w:Template:Void]] | |||
<includeonly>{{Sandbox other|| | |||
<!-- Categories below this line; interwikis at Wikidata --> | |||
[[Category:Typing-aid templates|{{PAGENAME}}]] | |||
[[Category:Workaround templates|{{PAGENAME}}]] | [[Category:Workaround templates|{{PAGENAME}}]] | ||
</ | }}</includeonly> | ||
Latest revision as of 18:45, 12 August 2026
This template does nothing.
More exactly, it outputs the null string. It's useful for programming advanced templates.
- It often is used within a template to the right of an equals sign.
- It can be useful in killing part of template or page containing text and html comments (<!--- some commented stuff --->) surrounding the combined strings and multiple lines inside the template, which feeds them ... nowhere. Into the mythological bit bucket.
Alternatives
It's also possible to use {{ns:0}} instead of {{void}}.
Some magic words like __END__ might also have the desired effect of doing nothing.