साँचा:Delink
दिखावट
This template uses Lua: |
This template is used on 800,000+ pages, which is 2% of all pages. To avoid large-scale disruption and unnecessary server load, any changes to it should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in a single edit. Please consider discussing any changes on the talk page before implementing them. |
This template removes links from wikitext. It de-links wikilinks, URL links, removes HTML comments, and normalises whitespace. It handles most wikitext correctly, including category links, the colon trick, the pipe trick (normal and reverse), nested wikilinks, and invalid link characters.
Usage
[स्रोत सम्पादित करें]- Basic
{{delink|text}}
- All parameters
{{delink | 1 = | wikilinks = no | urls = no | comments = no | whitespace = no | refs = yes }}
Parameters
[स्रोत सम्पादित करें]1
- the text to be de-linked.wikilinks
- if set to "no", "n", "false", or "0", wikilinks are not de-linked.urls
- if set to "no", "n", "false", or "0", URL links are not de-linked.comments
- if set to "no", "n", "false", or "0", HTML comments are not removed.whitespace
- if set to "no", "n", "false", or "0", whitespace is not normalised. The normalisation makes the whitespace of the resulting text look as if it had been put through the MediaWiki parser. For example, single new lines are converted to a single space, but double new lines are left alone.refs
- (experimental) if set to "yes", "y", "true", or "1", removes references. This is not recommended, as only the [1], [2], etc. markers will be removed - the references themselves will still appear at the end of the page. There is no known workaround for this problem as of April 2014.
Examples
[स्रोत सम्पादित करें]Code | Output |
---|---|
{{delink|[[Foo]]}}
|
Foo |
{{delink|[[Foo]], [[bar]] and [[baz]].}}
|
Foo, bar and baz. |
{{delink|I visited [http://www.example.com example.com].}}
|
I visited example.com. |
See also
[स्रोत सम्पादित करें]ऊपर दिए गए निर्देश साँचा:Delink/doc से लिए गए है। (संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल (create | mirror) व प्रयोग (create) पन्नों में प्रयोग कर सकते है। कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |