Trim Brackets

This template trims leading and trailing square brackets and whitespace from a string.

Trim Brackets Template documentation
सङ्क्षिप्त रूप
  • ढाँचा:Trimbr

This is similar to {{delink}}, but it won't remove brackets from the middle of the string. The string should be passed as the first unnamed parameter or using |1= if your string contains any = signs. You may substitute this template - that is, if used as {{subst:trim brackets}}, the resulting wikicode is "clean".

Usage

{{trim brackets|text}} = text with any leading or trailing square brackets removed (as long as text doesn't contain any = signs).

{{trim brackets|1=text}} = text with any leading or trailing square brackets removed.

Example

  • "{{trim brackets|1= [[abc]], [[def]], and [[ghi]] }}" produces "abc]], def, and [[ghi"
    ("{{delink|1= [[abc]], [[def]], and [[ghi]] }}" produces "abc, def, and ghi").

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Trim brackets

The template trims leading and trailing square brackets from a string.

ढाँचा प्यारामिटरहरूढाँचा डाटा सम्पादन गर्नुहोस्

मापदण्डविवरणप्रकारस्थिति
String1

The string to be trimmed

    Stringआवश्यक

    See also

    • {{delink}}, which does nearly the exact same thing, but also removes balanced pairs of square brackets that aren't leading and trailing and has additional options.
    • {{trim}}


    Tags:

    ढाँचा:Delink

    🔥 Trending searches on Wiki डोटेली:

    दिनशाहरूख खानमाल्टाएलन मस्कशतक (क्रिकेट)केटी होम्सकिर्गिजस्तानरोमानियाइटालीदक्षिण अफ्रिकाजेरुशलममध्यमाञ्चल विकास क्षेत्रसल्यान जिल्लापपुवा न्युगिनीभियतनामखिरनेपालआकाशविकिपिडियामोहन शमशेर जङ्गबहादुर राणासरुवा रोगनेपाल टेलिकमकोलकाता नाईट राइडर्सबरफगौरीशंकर हिमालक्रिष्टियानो रोनाल्डोजेट लीमुख्य पन्नाचीन देशएड्सरेखा थापातीर्थ श्रेष्ठदासढुङ्गा घटनाममता बनर्जीअक्षय तृतीयाराप्ती नदीओजोन तहनेपालका राष्ट्रपतिहरूनीर शाहविकिमिडिया कमन्सअन्टार्क्टिकाबियरद वासिङ्टन पोस्टआइज्याक न्यूटनलुम्बिनीकैलाश सत्यार्थीदशैंसिद्धार्थ राजमार्गक्षेत्रीपृथ्वीनारायण शाहसंयुक्त राज्य अमेरिकाफिलिपिन्सगौरी (शोककाव्य)अनिरुद्ध थापावर्षानेपाल परिवार दलमहेन्द्र राजमार्गगणतन्त्रनेपाल का बैङ्कअन कि सूचीनेपाल कम्युनिष्ट पार्टी (एकीकृत समाजवादी)देशसंख्यामलेसियानाइल नदीडोटेली भाषारुवान्डा🡆 More