টেমপ্লেট শৈলী গাইড
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
কমিউনিটি টেমপ্লেট গ্যালারির জন্য কীভাবে টেমপ্লেট প্রস্তুত করবেন সে বিষয়ে সিদ্ধান্ত নিতে আপনাকে সাহায্য করার জন্য এই শৈলী নির্দেশিকা প্রস্তুত করা হয়েছে। এই শৈলী নির্দেশিকাটি Google Material Design লেখার নীতির উপর ভিত্তি করে তৈরি করা হয়েছে। সহজভাবে বলতে গেলে, এগুলি হল:
- সংক্ষিপ্ত হোন
- সহজভাবে এবং সরাসরি লিখুন
- স্পষ্টভাবে ব্যবহারকারীদের সম্বোধন করুন
- প্রয়োজনীয় বিবরণ যোগাযোগ
- সমস্ত পড়ার স্তরের জন্য লিখুন
- মানুষ হও: মানুষের জন্য লিখুন, রোবট নয়
সমস্ত টেমপ্লেটের একটি সামঞ্জস্যপূর্ণ চেহারা এবং অনুভূতি নিশ্চিত করতে এবং ব্যবহারকারীদের কীভাবে আপনার টেমপ্লেট ব্যবহার করতে হয় তা বুঝতে সাহায্য করার জন্য এই নির্দেশিকাগুলি অনুসরণ করুন৷
তথ্য
এই নির্দেশিকাগুলি টেমপ্লেট সম্পাদকের তথ্য ট্যাবে পাওয়া আইটেমগুলিতে প্রযোজ্য।
নাম
ট্যাগ ম্যানেজার ব্যবহারকারী ইন্টারফেস এবং কমিউনিটি টেমপ্লেট গ্যালারী জুড়ে টেমপ্লেট নামটি ট্যাগ ম্যানেজার ব্যবহারকারীদের কাছে উপস্থাপন করা হয়। এটি একটি টেমপ্লেটের বিশদ পৃষ্ঠার শীর্ষে প্রদর্শিত হয় এবং যখন টেমপ্লেট তালিকাভুক্ত হয় তখন এটি প্রদর্শিত হয়।
- আপনার কোম্পানি/সংস্থার নাম এবং টেমপ্লেটের কার্যকরী নাম ব্যবহার করুন: প্রতিষ্ঠানের নাম টেমপ্লেট নাম ।
- টাইটেল কেস ব্যবহার করুন।
- কার্যকারিতার বর্ণনামূলক পদ ব্যবহার করুন।
- টেমপ্লেটের নামগুলিতে "অফিসিয়াল" শব্দটি ব্যবহার এড়িয়ে চলুন, যদি না আপনি প্রাসঙ্গিক সংস্থার দ্বারা এটি করার জন্য অনুমোদিত হন।
উদাহরণ: MyCompany রূপান্তর পরিমাপ ট্যাগ, MyCompany ক্যাম্পেইন আইডি পরিবর্তনশীল
বর্ণনা
টেমপ্লেট বিবরণ হল টেমপ্লেটের একটি বিবরণ যা টেমপ্লেট কার্যকারিতার সংক্ষিপ্ত সারাংশ হিসাবে বিশদ পৃষ্ঠাগুলিতে প্রদর্শিত হয়।
- টেমপ্লেটটি কী করে তা বর্ণনা করতে স্পষ্ট এবং সংক্ষিপ্ত বাক্য ব্যবহার করুন।
- আপনার টেমপ্লেট ব্যবহারকারীকে কীভাবে উপকৃত করে তা স্পষ্টভাবে বলুন। যেমন: "Example.com অডিয়েন্স বিল্ডার টেমপ্লেট আপনাকে ওয়েবসাইট ভিজিটরদের থেকে নতুন দর্শক তালিকা তৈরি করতে সাহায্য করতে পারে।"
- পরিভাষা এড়িয়ে চলুন।
- অতিরিক্ত তথ্য, ডকুমেন্টেশন এবং সমর্থনের জন্য লিঙ্কগুলি অন্তর্ভুক্ত করুন।
আইকন
ট্যাগ ম্যানেজার এবং কমিউনিটি টেমপ্লেট গ্যালারিতে তালিকাভুক্ত হলে আপনার টেমপ্লেট আইকনটি থাম্বনেইল হিসেবে উপস্থাপন করা হয়।
- ইমেজ ফরম্যাটের জন্য PNG, JPEG, বা GIF ব্যবহার করুন।
- ছবি বর্গাকার হওয়া উচিত, কমপক্ষে 48px x 48px, এবং 96px x 96px এর চেয়ে বড় হওয়া উচিত নয়।
- ফাইলের আকার 50 কিলোবাইটের কম হতে হবে।
- অফিসিয়াল কোম্পানির লোগো ব্যবহার এড়িয়ে চলুন, যদি না আপনি প্রাসঙ্গিক সংস্থার দ্বারা এটি করার জন্য অনুমোদিত হন।
- ক্ষেত্র
- ফর্ম উপাদান যেমন টেক্সট ইনপুট, চেকবক্স ইত্যাদি যোগ করতে টেমপ্লেট সম্পাদকের ক্ষেত্র ট্যাব ব্যবহার করুন।
ক্ষেত্র
এই শৈলী নির্দেশিকাগুলি টেমপ্লেট সম্পাদকের ক্ষেত্র ট্যাবে প্রযোজ্য।
পরামিতি নাম
এটি টেমপ্লেট এডিটরে প্রদর্শিত ক্ষেত্রের নাম, কিন্তু ব্যবহারকারীর কাছে এটির মতো নয়। নামগুলি ব্যবহার করা ডেটার প্রকারের বর্ণনামূলক হওয়া উচিত। lowerCamelCase
হিসাবে প্যারামিটার নামগুলি ফর্ম্যাট করুন। উদাহরণ: username, customerID, shoppingCartValue ।
ক্ষেত্র লেবেল
ক্ষেত্র লেবেল প্রদর্শন নামের ক্ষেত্র, চেকবক্স পাঠ্য, এবং সম্পর্কিত আইটেম অন্তর্ভুক্ত।
- বাক্যের ক্ষেত্রে ব্যবহার করুন।
- ছোট হলে ভালো।
- বর্ণনামূলক হন।
- সাধারণ শব্দ ব্যবহার করুন।
সাহায্য টেক্সট
সাহায্য টেক্সট তথ্যমূলক বিষয়বস্তু, একটি টুলটিপ হিসাবে দেখানো হয়, যাতে ব্যবহারকারীকে টেমপ্লেট ক্ষেত্রে একটি বৈধ মান প্রবেশ করতে সহায়তা করে। সম্ভব হলে উদাহরণ ইনপুট দিন এবং টেমপ্লেট ক্ষেত্রটি কীভাবে ব্যবহার করা হয় বা নির্দিষ্ট মান প্রদানের প্রভাব বর্ণনা করুন।
- বাক্যের ক্ষেত্রে ব্যবহার করুন।
- সংক্ষিপ্ত হন, কিন্তু মানুষ হন। সংকোচন ব্যবহার করা এবং ২য় ব্যক্তি (আপনি) লিখতে ঠিক আছে।
- সমর্থিত ক্ষেত্রের প্রকার
- মৌলিক HTML বিন্যাস অনুমোদিত. উদাহরণ:
<strong>
, <em>
।
সমর্থিত ক্ষেত্রের প্রকার
টাইপ | বর্ণনা |
---|
টেক্সট ইনপুট | টেক্সট ইনপুট। এই ধরনের একটি টেমপ্লেট প্যারামিটারের মান একটি স্ট্রিং হবে যা ভেরিয়েবলকে উল্লেখ করতে পারে। ট্যাগ ম্যানেজার ইউজার ইন্টারফেসে রেন্ডার করা টেক্সট ইনপুট উইজেট একটি একক-লাইন টেক্সট ফিল্ড বা মাল্টি-লাইন ইনপুট হতে পারে। |
ড্রপ-ডাউন মেনু | ড্রপ-ডাউন মেনু যেখানে টেমপ্লেট প্যারামিটারের মান হিসাবে শুধুমাত্র একটি আইটেম নির্বাচন করা যেতে পারে। অন্যথা করার একটি ভাল কারণ না থাকলে বর্ণানুক্রমিক ক্রমে আইটেমগুলি তালিকাভুক্ত করুন। |
চেকবক্স | চেকবক্স ইনপুট। এই ধরনের টেমপ্লেট প্যারামিটারের মান হবে বুলিয়ান: চেক করা হলে সত্য, চেক না করা হলে মিথ্যা। |
রেডিও বোতাম | রেডিও ইনপুট। এই ধরনের একটি টেমপ্লেট প্যারামিটার ট্যাগ ম্যানেজার ইউজার ইন্টারফেসে পছন্দের একটি তালিকা উপস্থাপন করে এবং ব্যবহারকারীকে শুধুমাত্র টেমপ্লেট প্যারামিটারের মান হিসাবে পছন্দের একটি বেছে নেওয়ার অনুমতি দেওয়া হয়। |
সহজ টেবিল | একটি সাধারণ টেবিল ইনপুট। টেবিলের প্রতিটি কক্ষের জায়গায় সম্পাদনা করা যেতে পারে, এবং প্রতিটি ঘর শুধুমাত্র দুই ধরনের হতে পারে: একটি পাঠ্য ইনপুট বা একটি ড্রপ-ডাউন মেনু৷ এই ধরনের একটি টেমপ্লেট প্যারামিটারের মান হল অবজেক্টের একটি অ্যারে: প্রতিটি অবজেক্ট একটি সারি এনকোড করে, অবজেক্টের প্রতিটি কী অবশ্যই কলামের নামগুলির একটি হতে হবে এবং অবজেক্টের প্রতিটি মান হল সংশ্লিষ্ট কক্ষের মান। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis style guide helps you create templates for the Community Template Gallery, ensuring consistency and user-friendliness by adhering to Google Material Design writing principles.\u003c/p\u003e\n"],["\u003cp\u003eWhen naming your template, use your organization's name, a descriptive functional name in Title Case, and avoid using "Official" unless authorized.\u003c/p\u003e\n"],["\u003cp\u003eTemplate descriptions should clearly explain the template's function, benefits, and any supporting resources using concise language and avoiding jargon.\u003c/p\u003e\n"],["\u003cp\u003eTemplate icons must be square images (PNG, JPEG, or GIF) between 48px and 96px in size, under 50 kilobytes, and avoid using official logos without authorization.\u003c/p\u003e\n"],["\u003cp\u003eFor template fields, use descriptive parameter names in lowerCamelCase, concise and clear field labels in sentence case, and helpful tooltips written in a human-friendly tone.\u003c/p\u003e\n"]]],["Template guidelines for the Community Template Gallery include creating descriptive names using \"Organization Name Template Name\" in Title Case, clear descriptions detailing template functionality and user benefits, and square icons (48-96px, under 50KB). In the Fields tab, parameter names should be `lowerCamelCase`, field labels in sentence case, and concise, human-readable help text. Supported field types are text input, drop-down menu, checkbox, radio button, and simple table, with specific formatting rules.\n"],null,["# Template style guide\n\nThis style guide has been prepared to help you make decisions on how to prepare templates for the [Community Template Gallery](https://support.google.com/tagmanager/answer/9454109). This style guide is based on the [Google Material Design writing principles](https://material.io/design/communication/writing.html#principles). Simply put, these are:\n\n- Be concise\n- Write simply and directly\n- Address users clearly\n- Communicate essential details\n- Write for all reading levels\n- Be human: write for humans, not robots\n\nFollow these guidelines to help ensure that all templates have a consistent look and feel, and to help users understand how to use your template.\n\nInfo\n----\n\nThese guidelines apply to items found in the Template Editor's **Info** tab.\n\n### Name\n\nThe template name is presented to Tag Manager users throughout the Tag Manager user interface and Community Template Gallery. It appears at the top of a template's detail page, and appears when templates are listed.\n\n- Use your company/organization name and the functional name of the template: *Organization Name* *Template Name*.\n- Use Title Case.\n- Use terms that are descriptive of the functionality.\n- Avoid use of the term \"Official\" in template names, unless you are authorized to do so by the relevant organization.\n\n**Examples:** *MyCompany Conversion Measurement Tag, MyCompany Campaign ID Variable*\n\n### Description\n\nThe template description is a description of the template that appears on detail pages as a brief summary of the template functionality.\n\n- Use clear and concise sentences to describe what the template does.\n- Clearly state how your template benefits the user. For example: \"The Example.com Audience Builder template can help you build new audience lists from website visitors.\"\n- Avoid jargon.\n- Include links for additional information, documentation, and support.\n\n### Icon\n\nYour template icon is represented as a thumbnail when listed in Tag Manager and on the Community Template Gallery.\n\n- Use PNG, JPEG, or GIF for the image format.\n- Image should be square, at least 48px by 48px, and no larger than 96px by 96px.\n- File size must be less than 50 kilobytes.\n- Avoid use of official company logos, unless you are authorized to do so by the relevant organization.\n- Fields\n- Use the Template Editor's Fields tab to add form elements such as text input, checkboxes, etc.\n\nFields\n------\n\nThese style guidelines apply to the Template Editor's **Fields** tab.\n\n### Parameter name\n\nThis is the name of the field as it appears in the Template Editor, but not as it appears to the user. Names should be descriptive of the type of data used. Format parameter names as `lowerCamelCase`. **Examples:** *userName, customerID, shoppingCartValue*.\n\n### Field labels\n\nField labels include display name fields, checkbox text, and related items.\n\n- Use sentence case.\n- Shorter is better.\n- Be descriptive.\n- Use common words.\n\nHelp text\n---------\n\nHelp text is informational content, shown as a tooltip, to help the user enter a valid value into the template field. Provide example input, if possible, and describe how the template field is used or the effect of providing certain values.\n\n- Use sentence case.\n- Be concise, but be human. It's okay to use contractions and write in the 2nd person (you).\n- Supported field types\n- Basic HTML formatting is permitted. Examples: *`\u003cstrong\u003e`, `\u003cem\u003e`*.\n\nSupported field types\n---------------------\n\n| Type | Description |\n|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Text input** | Text input. The value of a template parameter of this type will be a string that may refer to variables. The text input widget rendered in the Tag Manager user interface could be either a single-line text field or a multi-line input. |\n| **Drop-down menu** | Drop-down menu in which only a single item could be selected as the value of the template parameter. List items in alphabetical order unless there is a good reason to do otherwise. |\n| **Checkbox** | Checkbox input. The value of a template parameter of this type will be boolean: true for checked, false for unchecked. |\n| **Radio button** | Radio input. A template parameter of this type presents a list of choices in the Tag Manager user interface and the user is only allowed to pick one of the choices as the value of the template parameter. |\n| **Simple table** | A simple table input. Each cell in the table can be edited in place, and each cell can only be of two types: a text input or a drop-down menu. The value of a template parameter of this type is an array of objects: each object encodes a row, each key in the object must be one of the column names, and each value in the object is the value of the corresponding cell. |"]]