ผลต่างระหว่างรุ่นของ "แม่แบบ:Selfref"
หน้าใหม่: {{#switch:{{{2|NONE}}} |NONE|hatnote|hat={{dablink|1=<span class="plainlinks selfreference">{{{1}}}</span>}} |inline|=<span class="plainlinks selfreference">{{{1}}}</span> ... |
ล r2.7.2) (โรบอต เพิ่ม: as, be, cs, da, dv, en, fr, gl, gv, hy, ja, ml, pt, ro, ru, vi, zh, zh-yue |
||
บรรทัด 6: | บรรทัด 6: | ||
--><noinclude> |
--><noinclude> |
||
{{documentation}} |
{{documentation}} |
||
[[as:সাঁচ:Selfref]] |
|||
[[be:Шаблон:Selfref]] |
|||
[[cs:Šablona:Sebereference]] |
|||
[[da:Skabelon:Selfref]] |
|||
[[dv:ފަންވަތް:Selfref]] |
|||
[[en:Template:Selfref]] |
|||
[[fr:Modèle:Voir aussi Wikipédia]] |
|||
[[gl:Modelo:Autoref]] |
|||
[[gv:Clowan:Selfref]] |
|||
[[hy:Կաղապար:Selfref]] |
|||
[[ja:Template:Selfref]] |
|||
[[ml:ഫലകം:Selfref]] |
|||
[[pt:Predefinição:Selfref]] |
|||
[[ro:Format:Autoref]] |
|||
[[ru:Шаблон:Selfref]] |
|||
[[vi:Bản mẫu:Selfref]] |
|||
[[zh:Template:Selfref]] |
|||
[[zh-yue:Template:Selfref]] |
|||
</noinclude> |
</noinclude> |
รุ่นแก้ไขเมื่อ 18:08, 19 กันยายน 2555
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. |
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).
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Selfref/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |