แม่แบบ:Selfref

จากวิกิพีเดีย สารานุกรมเสรี
ไปยังการนำทาง ไปยังการค้นหา
{{{1}}}
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

Usage[แก้]

{{selfref}} is a template that is used to mark pieces of text and links that wouldn't make sense on mirrors of Wikipedia: see Wikipedia:Self-references to avoid.

In most cases, {{selfref}} is used to create a disambiguation link to a page in the Wikipedia: namespace from article space; for instance, Objectivity (journalism) has a selfref link '{{selfref|For Wikipedia's policy on avoiding bias, see [[Wikipedia:Neutral point of view]].}}'. When using {{selfref}} in this way, use the following format:

{{selfref|the self-referential notice to display, including links}}

If the text of the notice contains any = characters, you have to escape it like this:

{{selfref|1=the self-referential notice to display, including links}}

(This is needed with all templates, not just {{selfref}}.) When using {{selfref}} in this way, the text will be indented slightly and put in italics.

{{selfref}} can also be used for any other text which shouldn't appear in mirrors (the mirrors can remove it by blanking {{selfref}} in their copy, although not all of them do), without reformatting; to use it like this, place an extra vertical bar at the end of the template inclusion, like this:

{{selfref|the self-referential text to display without reformatting|}}

or adding the word "inline" after a bar, like this:

{{selfref|the self-referential text to display without reformatting|inline}}

This template should not be substituted.

Example[แก้]

Code Page on Wikipedia Page on some mirrors
{{selfref|For the Wikipedia Sandbox, see [[WP:SAND]]}}

The Wikipedia Sandbox is a page on Wikipedia. {{selfref|You can edit it by clicking "edit" on the page.|}} It has been edited many times.
For the Wikipedia Sandbox, see WP:SAND

The Wikipedia Sandbox is a page on Wikipedia. You can edit it by clicking "edit" on the page. It has been edited many times.

The Wikipedia Sandbox is a page on Wikipedia. It has been edited many times.

See also[แก้]

  • Wikipedia:Self-references to avoid
  • {{srlink}}, for the opposite case when you want a link to the Wikipedia: namespace that does show in mirrors without breaking (for instance when writing an article about Wikipedia or something connected to it).
https://th.wikipedia.org/wiki/%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Selfref
th.wikipedia.org
crawl=CC-MAIN-2021-17
66892
application/http; msgtype=response
sha1:NZFSDQES3G4FP5IHPOKGTIBLAQT5E44D
<urn:uuid:e6c591fd-286c-44d8-b596-5d66dceb3af7>
2021-04-19T14:04:43Z
208.80.154.224
text/html
sha1:CI7N4MY7VYSDVQAIJVQ6TZQC4AHY37V3
<urn:uuid:1ab500e8-5fd8-4ddf-880d-cde3b3dd41a8>
https://th.wikipedia.org/wiki/%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Selfref
response
<urn:uuid:f549e2ed-319d-4d6f-8530-0c6fca185b59>
isPartOf: CC-MAIN-2021-17
publisher: Common Crawl
description: Wide crawl of the web for April 2021
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-28.ec2.internal
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/