Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:2

Permanently protected template
From Wikipedia, the free encyclopedia


Unexpected use of template {{2}} - seeTemplate:2 for details.

Template documentation
This template may have notransclusions. This is because it is substituted by a tool or script, it is used as part of a short-term or less active Wikipedia process, or for some other reason.

Templates{{1}},{{2}},{{3}}, etc. warn readers/editors that atypo exists in the page they are reading/editing. If{{2}} is called, you probably meant the parameter 2 (as {{{2}}} with triple braces), but in fact only double braces were used, invoking {{2}}. In addition to a warning, it also adds pages toCategory:Templates with incorrect parameter syntax. For more information on how template parameters work, seemw:Help:Templates#Parameters.

However, the most problems have been caused by omitting the first brace "{" of a parameter and getting {{2}}}, as invoking Template:2 +"}" rather than parameter 2. This can be an insidious problem, especially when the transclusion of Template:2 is hidden, so that the effect is invisible to the person editing a page. For that reason, Template:2 now issues a warning to the user.

With that warning, the prior invisible access to Template:2 can now be understood to be a formerly unseen problem coded within a page.

Note: this will also pick up several variations such as {{2|}} for {{{2|}}} and {{{2}}.

Periodically, people checkwhat-links-here to see if anyone has accidentally invoked Template:2.

See also

Editors can experiment in this template'ssandbox(edit |diff) and testcases(create) pages.
Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:2&oldid=892392968"
Categories:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp