Difference between revisions of "Template:Nosnippet"

From The Coppermind
Jump to navigation Jump to search
(Created page with "<includeonly><span data-nosnippet>{{{1}}}</span></includeonly><noinclude> Use this template to exclude portion of a page from Google's indexing of it. <noinclude>")
 
m (+cat)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><span data-nosnippet>{{{1}}}</span></includeonly><noinclude>
+
<includeonly><span data-nosnippet>{{{1}}}</span>[[Category: Pages with custom Google snippets]]</includeonly><noinclude>
  +
When Google indexes Coppermind pages, it grabs the a number of characters from the opening paragraph(s) of the page to generate a preview. If those sentences includes spoilers for recent releases, users of the wiki can get spoiled on accident, without ever visiting a page. We can use this template to exclude a portion of a page from Google's search results:
Use this template to exclude portion of a page from Google's indexing of it.
 
  +
  +
<pre>
  +
This is a relatively innocent opening sentence for a page, {{nosnippet|but there are spicy spoilers here, so they will still show up on the page, but not on Google}}.
  +
</pre>
 
<noinclude>
 
<noinclude>
  +
  +
[[Category:Templates]]

Latest revision as of 01:10, 4 December 2020

When Google indexes Coppermind pages, it grabs the a number of characters from the opening paragraph(s) of the page to generate a preview. If those sentences includes spoilers for recent releases, users of the wiki can get spoiled on accident, without ever visiting a page. We can use this template to exclude a portion of a page from Google's search results:

This is a relatively innocent opening sentence for a page, {{nosnippet|but there are spicy spoilers here, so they will still show up on the page, but not on Google}}.