• Home
  • Random
  • Log in
  • Settings
Donate Now If this site has been useful to you, please give today.
  • About Wikisource
  • Disclaimers
Wikisource

Template:Nop

  • Template
  • Discussion
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 385,000 pages, or roughly 8% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.

This template uses block elements, e.g. <div> or <p>.
It should not be nested inside an inline element, e.g. <span>, or a template that produces such an element.

See H:DIVSPAN for details.

This forces a standard paragraph space for pages transcluded from the Page: namespace when viewed in the main namespace.

Contents

  • 1 Usage
  • 2 Technical
  • 3 Gadget
  • 4 See also
  • 5 Further reading

Usage

Used at the end of a paragraph in the PAGE: namespace where the paragraph terminates the page.

Note: At the end of the terminating paragraph, add a new line, as the template needs to start a new line to have full functionality (such as use of the "previous page nop" gadget).

... paragraph terminating a page.
{{nop}}

There are no optional parameters.

Previously this template was used when a table stretches over multiple pages. It is no longer the case and is deprecated for that usage; please use {{nopt}} instead.

{{nopt}}
|- <!-- start of a table continuation at the top of the body of a page -->
...

Technical

Mediawiki software collapses terminating blank lines, i.e. when they occur at the end of a page. When pages are transcluded from one namespace to another, this can mean the loss of a new paragraph mark rather than its necessary preservation. This template when used appropriately will allow clear designation of the end of a paragraph, and hence the clear start of the next.

The template itself has no effect on the underlying text, however, the strategic placement of this template prevents blank lines from being collapsed, effectively preserving end of paragraph marker

Gadget

The NopInserter gadget can be enabled via your preferences. It adds a sidebar link to check for and insert a paragraph-breaking {{nop}} at the end of the previous page.

See also

  • {{nopt}} for use with tables.
  • {{page end hyphen}}
  • {{unspaced page end}}
  • {{clear}}
  • {{div end}}
  • Help:Poetry#Poem extension for using {{nop}} with <poem></poem> tags.

Further reading

"It is a NOP".

The above documentation is transcluded from Template:Nop/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikisource.org/w/index.php?title=Template:Nop&oldid=11476539"
Last edited on 4 July 2021, at 14:02

Languages

    • العربية
    • Беларуская
    • বাংলা
    • Català
    • Čeština
    • Cymraeg
    • Dansk
    • Ελληνικά
    • Español
    • فارسی
    • Suomi
    • Français
    • हिन्दी
    • Հայերեն
    • Bahasa Indonesia
    • Íslenska
    • Italiano
    • 日本語
    • Jawa
    • 한국어
    • Latina
    • Македонски
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • Nederlands
    • Norsk
    • ਪੰਜਾਬੀ
    • Polski
    • Português
    • Русский
    • Slovenščina
    • Svenska
    • தமிழ்
    • తెలుగు
    • ไทย
    • Türkçe
    • Українська
    • Vèneto
    • Tiếng Việt
    • 中文
    Wikisource
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 4 July 2021, at 14:02.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikisource
    • Disclaimers
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop