> ## Documentation Index
> Fetch the complete documentation index at: https://foliant-help.iforiti.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Liquid फ़िल्टर

> Foliant के जोड़े गए Liquid फ़िल्टर, जो पैसे, तारीख, शब्दों, पतों, इमेज, बारकोड, संख्याओं और रंगों के लिए हैं।

फ़िल्टर बदलते हैं कि कोई वैल्यू कैसे प्रिंट होती है। आप इन्हें वैल्यू के बाद पाइप लगाकर जोड़ते हैं: `{{ total_price | money }}`। आप इन्हें एक के बाद एक जोड़ सकते हैं: `{{ note | escape | newline_to_br }}`। Foliant, Liquid के मानक फ़िल्टर (जैसे `escape`, `default`, `upcase`, `date`, `plus`, `minus`, `split`, `join`, `newline_to_br`) सपोर्ट करता है। साथ ही, यह नीचे दिए गए फ़िल्टर भी जोड़ता है।

## पैसे

| फ़िल्टर | उदाहरण | यह क्या करता है |
| - | - | - |
| `money` | `{{ total_price \| money }}` | सेंट में दी गई रकम, ऑर्डर की करेंसी में |
| `money_with_currency` | `{{ total_price \| money_with_currency }}` | वही रकम, करेंसी कोड के साथ (`$1.00 USD`) |
| `money_without_currency` | `{{ total_price \| money_without_currency }}` | सिर्फ़ संख्या (`1.00`) |
| `money_without_trailing_zeros` | `{{ 10000 \| money_without_trailing_zeros }}` | `.00` हटा देता है (`$100`) |
| `money_in` | `{{ amount \| money_in: 'EUR' }}` | आपकी बताई गई करेंसी में रकम |

[टेम्पलेट में पैसे और करेंसी](https://foliant-help.iforiti.com/hi/template-editor/liquid-money-and-currency.md) देखें।

## तारीख और शब्द

| फ़िल्टर | उदाहरण | यह क्या करता है |
| - | - | - |
| `date` | `{{ created_at \| date: '%d %B %Y' }}` | तारीख को फ़ॉर्मैट करता है। महीने और दिन के नाम डॉक्यूमेंट की भाषा में आते हैं। कोई और भाषा चाहिए, तो उसे जोड़ें: `date: '%B', customer_locale`। |
| `t` (या `translate`, `label`) | `{{ 'subtotal' \| t }}` | Foliant के शब्द, डॉक्यूमेंट की भाषा में |
| `t_both` | `{{ 'titles.invoice' \| t_both }}` | शब्द, डॉक्यूमेंट की भाषा और उसकी दूसरी भाषा में ("Rechnung / Invoice") |
| `labelled` | `{{ shop.vat_number \| labelled: 'vat_number', ' · ' }}` | लेबल के बाद वैल्यू (" · VAT number NL…")। वैल्यू खाली हो, तो कुछ नहीं दिखता |

[तारीख, भाषाएँ और अनुवाद](https://foliant-help.iforiti.com/hi/template-editor/liquid-dates-and-languages.md) देखें।

## पते, इमेज और लिंक

| फ़िल्टर | उदाहरण | यह क्या करता है |
| - | - | - |
| `format_address` | `{{ shipping_address \| format_address }}` | पता, अलग-अलग लाइनों में, जैसे Shopify दिखाता है |
| `img_url` | `{{ line_item.image \| img_url: '120x120' }}` | किसी साइज़ में Shopify इमेज: `'thumb'`, `'small'`, `'medium'`, `'large'` या `'120x120'` |
| `img_tag` | `{{ line_item.image \| img_url: 'thumb' \| img_tag }}` | इमेज के पते के लिए `<img>` टैग। आप चाहें तो alt टेक्स्ट और class भी दे सकते हैं: `img_tag: 'Logo', 'logo'` |
| `link_to` | `{{ 'Track your order' \| link_to: order_status_url }}` | एक लिंक |

## बारकोड और QR कोड

| फ़िल्टर | उदाहरण | यह क्या करता है |
| - | - | - |
| `barcode` | `{{ line_item.sku \| barcode }}` | एक बारकोड (Code 128, जब तक आप कोई दूसरा टाइप न बताएँ, जैसे `'ean13'`) |
| `qr` | `{{ order_status_url \| qr }}` | एक QR कोड |

[बारकोड और QR कोड](https://foliant-help.iforiti.com/hi/template-editor/liquid-barcodes-and-qr-codes.md) देखें।

## संख्याएँ और टेक्स्ट

| फ़िल्टर | उदाहरण | यह क्या करता है |
| - | - | - |
| `weight_with_unit` | `{{ line_item.grams \| weight_with_unit }}` | ग्राम में वज़न, उसकी यूनिट के साथ: ग्राम, या 1,000 g से ज़्यादा होने पर किलोग्राम। बदलने के लिए यूनिट बताएँ: `weight_with_unit: 'lb'` (`kg`, `g`, `lb` या `oz`) |
| `format_number` | `{{ 1234.5 \| format_number: 2 }}` | डॉक्यूमेंट की भाषा के सेपरेटर वाली संख्या (जर्मन में `1.234,50`) |
| `number_with_precision` | `{{ 1.2345 \| number_with_precision: 2 }}` | उतने दशमलव अंकों वाली संख्या (`1.23`) |
| `pluralize` | `{{ item_count \| pluralize: 'item', 'items' }}` | गिनती के हिसाब से एकवचन या बहुवचन शब्द |
| `handleize` | `{{ 'Hello World!' \| handleize }}` | `hello-world` |
| `strip_html` | `{{ product.description \| strip_html }}` | HTML टैग हटा देता है |
| `truncate_words` | `{{ product.description \| truncate_words: 20 }}` | टेक्स्ट को तय शब्दों तक छोटा करता है |
| `default_value` | `{{ po_number \| default_value: 'N/A' }}` | वैल्यू खाली होने पर दिखने वाली वैकल्पिक वैल्यू |
| `json` | `{{ shipping_address \| json }}` | वैल्यू को डेटा के रूप में दिखाता है, ताकि टेम्पलेट बनाते समय आप देख सकें कि उसमें क्या है |

## रंग

| फ़िल्टर | उदाहरण | यह क्या करता है |
| - | - | - |
| `color_mix` | `{{ shop_accent_color \| color_mix: '#ffffff', 20 }}` | दो रंगों को मिलाता है: पहले रंग का 20% |
| `color_contrast` | `{{ shop_accent_color \| color_contrast: '#ffffff' }}` | दो रंगों के बीच का कंट्रास्ट अनुपात (1–21) |

## स्निपेट

दो बिल्ट-इन स्निपेट मानक VAT सेक्शन प्रिंट करते हैं:

* `{% include 'vat_breakdown' %}`: VAT ब्रेकडाउन टेबल, हर दर के हिसाब से।
* `{% include 'legal_notes' %}`: VAT से जुड़े कानूनी नोट (रिवर्स चार्ज, एक्सपोर्ट, IOSS…)।

[टैक्स और कानूनी जानकारी](https://foliant-help.iforiti.com/hi/tax-and-legal.md) देखें।

## ध्यान रखें

* कोड एडिटर अनजान फ़िल्टर पर चेतावनी दिखाता है। जब भी आपको चेतावनी दिखे, तो प्रीव्यू ज़रूर देखें।
* Shopify की स्टोरफ़्रंट थीम के कुछ फ़िल्टर डॉक्यूमेंट में मौजूद नहीं हैं। आप ऊपर दिए गए फ़िल्टर और Liquid के मानक फ़िल्टर ही इस्तेमाल करें।

## संबंधित लेख

* [टेम्पलेट में पैसे और करेंसी](https://foliant-help.iforiti.com/hi/template-editor/liquid-money-and-currency.md)
* [तारीख, भाषाएँ और अनुवाद](https://foliant-help.iforiti.com/hi/template-editor/liquid-dates-and-languages.md)
* [बारकोड और QR कोड](https://foliant-help.iforiti.com/hi/template-editor/liquid-barcodes-and-qr-codes.md)
* [ऑर्डर ऑब्जेक्ट और आम वेरिएबल](https://foliant-help.iforiti.com/hi/template-editor/liquid-order-variables.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.