Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Wikipedia:Manual of Style/Hidden text

Page semi-protected
From Wikipedia, the free encyclopedia
<Wikipedia:Manual of Style
Gives advice on using HTML comments in wikitext
"WP:HIDDEN" redirects here. For the guideline against hiding content in articles, seeMOS:DONTHIDE. For information about hidden categories, seeWP:HIDDENCAT. For information about how to hide/show collapsed text, seeTemplate:Hidden.
Not to be confused withWP:HID.

Thisguideline is a part of the English Wikipedia'sManual of Style.
Editors should generally follow it, thoughexceptions may apply.Substantive edits to this page should reflectconsensus. When in doubt, discuss first onthis guideline's talk page.
iconThis page in a nutshell: Hidden text, that is visible only when editing, can be inserted into articles, project pages, and other Wikipedia pages, by surrounding the text as follows:<!-- Hidden text -->
Manual of Style

On Wikipedia,hidden text is text that is visible when editing the source for the page or when usingVisualEditor, but not on the "rendered" version of the page presented to readers of the article.

Invisible comments are useful for alerting other editors to issues such as common mistakes that regularly occur in the article, a section title's being the target of an incoming link, or pointing to a discussion that established a consensus relating to the article. They should not be used to instruct other editors not to perform certain edits, although where existing local consensus is against making such an edit, they may usefully draw the editor's attention to that. Avoid adding too many invisible comments because they can clutter the wiki source for other editors.

Appropriate uses for hidden text

  • <!-- If you change this section title, also change the links to it on the pages .... -->(bots do this, seeMOS:RENAMESECTION)
  • <!-- When adding table entries, remember to update the total given in the text. -->
  • <!-- Please only add items to this section if they are mentioned in, and cited to, reliable sources. -->

Some situations where hidden text is useful and good to have in articles:

  • Instructing others how to edit a page that may be difficult to edit
  • Providing information to assist other editors in preventing a common mistake. For example, if there is a reference which is known to be wrong, it may be appropriate to let other editors know about the error to prevent a likely re-insertion of the error.
  • Warning editors against making edits that would breach a specific discretionary sanction that has been placed on the page.
  • Informing other editors that a section title is linked from a redirect, so that if the title is altered, the redirect can be changed. (In this case, it is often better to use an anchor in the first place.)
  • Letting others know of a better article or location within the article to add information on a current event or other hot topic where there is temptation to add it in that location.
  • Reminding others of Wikipedia policies where they have been frequently broken. For example, in many articles, hidden text is necessary to remind editors not to add inappropriate links. On the pageHelp:Getting started, hidden text is used to let others know not to write their first article on that page.
  • Preparing small amounts of information to be added to the article in the future (such as when a known event will occur). Larger amounts of information should be prepared on a subpage of the article's talk page or in user space.
  • Hiding a portion of the text that has been temporarily removed while consensus is pending. However, it may be preferable to transfer such text onto a subpage of the article's talk page.
  • Commenting out categories for articles inuser pages anduser subpages. See:Categorizing user pages
  • Cues for bots, such as the<!--BEGIN CFD TEMPLATE--> on categories being discussed atWikipedia:Categories for discussion
  • Commenting on maintenance tags such as{{citation needed}} and{{disambiguation needed}}, to detail to other editors how you have tried to solve a problem but failed; to save them the effort of merely reproducing your failure.

Inappropriate uses for hidden text

Shortcut
  • <!-- This article is perfect. Don't mess with it! -->
  • <!-- To the bozos who keep editing this section to use em-dashes: eat my shorts. -->
  • <!-- BTW this album slaps hard, check it out if you get a chance -->
  • <!-- Jimmy was here. -->

Types of hidden text that should not be added include:

  • Assertingownership of an article
  • Telling others not to edit an article
  • Telling others not to perform certain edits to a page,unless there is an existing guideline or policy against that edit.
    • When it is only alocal consensus that a certain edit should not be performed, the hidden text should be worded more softly to suggest to the editor to consult thetalk page (orarchive page if appropriate) for the current consensus prior to making the edit. Sinceconsensus can change, it is inappropriate to use hidden text to try toprohibit making a certain edit merely because it would conflict with an existing local consensus.
  • Disruptive behavior, such asvandalism,harassment,threats, orlibel content
  • Using it as atalk page
  • Advertising WikiProjects.
  • Hiding significant portions of the text. Such a "stealth removal" may go unnoticed in the page history, as it’dincrease the article size (character count). If the content removal is warranted, it should be done explicitly.

How to enter hidden text

Enter<!-- Comment --> and replace the word "Comment" with the hidden text you desire.Example (and note that line breaks in the comment itself do not show up in the rendered page):

The clock tower was constructed in 1928,<refname="historicalsociety"/> and while it was struck by lightning in November 1955,<refname="picayune"/><!--The Picayune-Herald article lists it as being constructed in 1929, but the Historical Society's book (and the original city documents) show it was built in 1928.--> it remained functional until 1987,<!--Some sources erroneously cite this as having taken place in 1989.-->when its face was permanently damaged in a fight between a high school student and an immortal vampire.<refname="araki"/>

This will render as:

The clock tower was constructed in 1928,[1] and while it was struck by lightning in November 1955,[2] it remained functional until 1987,when its face was permanently damaged in a fight between a high school student and an immortal vampire.[3]

Check that your invisible comment does not upset the article's formatting, for example by introducing unwanted white space.

See also

Content
Formatting
Images
Layout
Lists
By topic area
Arts
Music
History
Legal and cultural
Regional
Religion and education
Science and technology
Sports
Related guidelines
Search
Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Manual_of_Style/Hidden_text&oldid=1317232441"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp