সাধারণ ব্যবহার সম্পাদনা

এই টেমপ্লেটটি একটি ভাষাগত ইন্টারলাইনার গ্লসড টেক্সট ফর্ম্যাট করে:

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক

Important: আন্তঃরেখায় আবদ্ধ হওয়ার জন্য, যেকোনো উইকি মার্কআপ বা টেমপ্লেট কখনই শব্দের সীমানা ছড়ানো উচিত নয়। Мমার্কআপ বা টেমপ্লেট যা শব্দের ক্রমানুসারে প্রযোজ্য তা অবশ্যই প্রতিটি শব্দের জন্য পুনরাবৃত্তি করতে হবে: (একটি সম্পূর্ণ লাইনে বিন্যাস প্রয়োগ করাও সম্ভব, নীচে দেখুন)

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক

The characters <, > and = should not be used directly. They can be substituted as follows:

Character Substitute
< &lt;
> &gt;
= {{=}}

To let a multi-word expression be treated as a single word, surround it in {curly brackets}. Similarly, use {} for an empty word:[১]

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক

The template can be invoked with any number of unnamed parameters, which are interpreted as lines of text. If there is only one unnamed parameter, then it will be rendered in-line and treated as a gloss line: {{interlinear|house-ATTR master-ABS}} gives: স্ক্রিপ্ট ত্রুটি: "Interlinear" নামক কোনো মডিউল নেই।. If they are more than one, then all will be interlinearised except the last one, which is assumed to be the free translation. To force the interlinearisation of all lines, supply an empty last unnamed parameter:

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক

বিন্যাস সম্পাদনা

A line of text to be displayed above the interlinear block is given using |top=, one to be displayed immediately below the free translation is set using |bottom=. If any of these need to contain more than a singe line, then line breaks can be introduced using {{br}}. Example numbering can be set using |number=. The parameter consists in one or more characters to be displayed in the left margin.

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক

The indentation of the interlinear block (measured in ems) can be modified using |indent=. Currently, the default value is 3 if |number= is set, and 0 otherwise. This behaviour is set to change: the next version of the template will apply indentation by default.

The spacing between consecutive word stacks can be adjusted using |spacing=; it is measured in ems and its default value is 1. To visually set off the interlinear display from surrounding text, the |box=yes parameter can be used. It surrounds the whole interlinear text in a box with a wikitable-like background colour.

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক

To add a comment after a given line, use |cN= (where N is the sequence of the line: the content of |c1= will be appended at the end of first line, |c2= – at the end of the second line etc.):

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক

Line formatting সম্পাদনা

Formatting can be set for an entire line using the |styleN= parameter, which applies CSS style properties[২] to line N (|style1= for the first line, |style2= for the second one, etc):

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক

Similarly, CSS classes[৩] can be specified for line N using |classN=. Classes should be given without any quotation marks.

Italics are by default applied to the first line, unless disabled by |italics1=no. Any line can be italicised using |italicsN=yes (where N is the number of the line). On italicised lines, tone numbers[৪] will be formatted as superscripts, unless |tone-superscripting= is set to no. To turn off italics for a particular word within an italicised line, use {{noitalic}}.

To specify the language of a given line, you can use |langN= (with N being 1 for the first line, 2 for the second one etc.).[৫] The parameter should be the ISO code of the language, as in the familiar Template:Lang. If the unnumbered |lang= is given, then it is applied to the first line. If line N employs IPA, then the effect of Template:IPA can be mimicked by setting |ipaN=yes.[৬] If transliteration has been used, then the transliteration scheme can be specified with the |translN= parameter (similarly to Template:Transl).

Glossing abbreviations সম্পাদনা

Linguistic glosses typically abbreviate grammatical category labels, like this: টেমপ্লেট:Gcl, instead of the full name 'accusative'. The line containing such glosses is specified using |glossingN=yes (where N is the number of the line within the interlinear text). If no line is specified, then it is assumed such glosses are found in the second line (this can be bypassed with |glossing2=no). Within the lines so specified, any sequence of upper case letters will be interpreted as a grammar gloss and formatted in টেমপ্লেট:Small caps.

Additionally, the template will attempt to recognise the meaning of each abbreviation by looking it up in several places (more details below), and if the abbreviation is found, it will be formatted with a dotted underline and the "label" of this abbreviation will be displayed in a tooltip, like this: টেমপ্লেট:Gcl. Alternatively, the abbreviation can be turned into a link to the wikipedia article about the corresponding grammatical category, like this: টেমপ্লেট:Gcl. To choose the latter behvaiour, use the following parameter: |glossing=link. It is possible for separate lines to employ different styles, in this case the parameters used will be |glossing2=, |glossing3=, etc.

If a particular glossing abbreviation is to be treated differently from the rest, then {{gcl}} can be used:

{{interlinear|ngagun-yi nga-nanda-yi nung
|{{gcl|1sg}}.NOM-{{gcl|ERG||}} {{gcl|1sgA|1st-person singular "agent"}}.3sgO-see-{{gcl|'''P'''ST}} {{gcl|3sg}}.ACC
|'I saw him/her.'}}

স্ক্রিপ্ট ত্রুটি: "Interlinear" নামক কোনো মডিউল নেই। In this example, {{gcl|acc}} marks up acc as a glossing abbreviation (it wouldn't have otherwise been interpreted as such because it is lower-case). {{gcl|1sgA|1st-person singular "agent"}} is used to define the meaning of the unusual abbreviation 1sgA, which wouldn't be recognised even in upper case. {{gcl|ERG||}} displays the abbreviation as a link to the Wikipedia article. {{gcl|'''P'''ST}} applies formatting to a part of a glossing abbreviation; if {{gcl}} weren't used here then the wikimarkup would have forced P to be treated as a separate abbreviation from ST.

If the grammatical category labels are not abbreviated but written out in full (like that: টেমপ্লেট:Gcl) then |glossing= should be set to no abbr, which will only apply small-caps formatting:

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক

Additional style[২] parameters can be applied to all gloss abbreviations using |glossing-style=. The default formatting using small caps can be disabled with |small-caps=no, and the default underlining can be turned off using |underline=no. To exempt a particular abbreviation from being treated as a grammatical gloss, use {{no gloss}}.

The pesky boxes with glossing messages that are shown in preview mode can be turned off with |display-messages=no.

কাস্টম সংক্ষেপণ৷ সম্পাদনা

The template recognises some of the most commonly used abbreviations. However, it is recommended to always specify the meaning of each abbreviation used. There are several ways to do that:

  • Defining at the article level. If an article uses a number of interlinearised examples and they share a set of abbreviations, then these can be defined once for the whole article using the following format:
  • <section begin="list-of-glossing-abbreviations"/><div style="display:none;">
    ABBR1:meaning1
    ABBR2:meaning2</div><section end="list-of-glossing-abbreviations"/>
    

The list can contain any number of abbreviations; if a wikipedia article needs to be specified, it is added after a colon, for example: NEG:negator:Negation (linguistics). This whole code can be placed anywhere in the article, but it is customary to put it at the end, after the references but before any categories. It is visible only in edit mode, it is not displayed in the article.

  • Defining at the level of a single instance of the template. This is done using |abbreviations= (or |ablist=). The list of custom abbreviations takes the same format as above: ABBREVIATION1:meaning1:wikipedia_article1; ABBREVIATION2:meaning2:wikipedia_article2... (specifying a Wikipedia article is optional and has no effect unless |glossing=link):

"স্ক্রিপ্ট ত্রুটি: "Demo" নামক কোনো মডিউল নেই।"

https://en.wikipedia.org/wiki/Template:Demo#:~:text=%7B%7B%23invoke%3ADemo%7Cmain%7D%7D%3Cnoinclude%3E%7B%7Bdocumentation%7D%7D%3C/noinclude%3E 

Usage সম্পাদনা

This template simply places template code in a <pre>...</pre> tag and then places the template below the pre tag.

{{demo
|br =
|demo_kill_categories =
|<nowiki>{{your template}}</nowiki>
}}

IMPORTANT: You must wrap include <nowiki>...</nowiki> tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:

{{demo|<nowiki>[template source]</nowiki>}}
  • Failure to wrap <nowiki>...</nowiki> tags around the source may cause the source to be executed before it reaches this template:টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Pre style সম্পাদনা

Set style= to add any CSS text to the <pre>...</pre> tag.

For example, {{demo|style=display:inline|<nowiki>{{done}}</nowiki>}}, would result in:


টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Line breaks সম্পাদনা

You can change the number of line breaks between the pre tag and the template by setting br= to a number. The default is 1.

{{demo|br=3|<nowiki>{{done}}</nowiki>}}

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Alternative separator সম্পাদনা

You may also include an alternative separator by setting |br= to something other than a number and it will take the place of the br tags. For example, |br=<td> can make demo fit in a table:

টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo


Category removal সম্পাদনা

For templates that add categories (e.g. {{Asbox}}), set |demo_kill_categories= (or |nocat=) to anything to prevent them from showing up in the output: টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Module সম্পাদনা

If the template used is based on Lua, you can pass args directly to the demonstrated module by invoking Module:Demo like so: (this would reduce server stress) টেমপ্লেট লুপ সনাক্ত হয়েছে: টেমপ্লেট:Demo

Note: It will attempt to preserve line breaks for unnamed params, but such is impossible for named params since those are stripped of whitespace/order before being passed to the module. Also note, you should use |demo_br= instead of |br= (all args you don't want being passed should be prefixed with 'demo_' if not already)

See also সম্পাদনা

Other formatting templates সম্পাদনা

টেমপ্লেট:Template-linking templates


বিবরণ নেই।

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Content1

must be wrapped in <nowiki>

অজানাঐচ্ছিক
br br

Number of line breaks, or wikitext to fill in as the linebreak

অজানাঐচ্ছিক
demo_kill_categoriesdemo_kill_categories nocat

বিবরণ নেই

বুলিয়ানঐচ্ছিক
result_argresult_arg

বিবরণ নেই

অজানাঐচ্ছিক
<pre> stylestyle

বিবরণ নেই

অজানাঐচ্ছিক
  • Defining a single instance of an abbreviation. This is done using {{gcl}}, as seen above
  • Defining an abbreviation globally. This is done by the addition of an entry to the module's data page. The abbreviation will be recognised by any use of the templates, anywhere on the English wikipedia. This should be done only for completely unambiguous abbreviations.

সমস্যা সমাধান সম্পাদনা

This is a list of problems that are likely to be encountered:

  • One of the lines went missing.
    Does this line contain anywhere an equals sign? If yes, then all instances of the equals sign should be replaced with {{=}}.
  • I've applied bolding/italics to a phrase and now the formatting is all over the place.
    Any formatting should be applied separately to each word.
  • I receive the error "Mismatch in the number of words".
    Interlinearised lines don't contain the same number of words. If this is intended, then consider filling the empty slots with {}. If this is not intended, then the following points might help track down the cause:
    • if formatting or a template is applied to a piece of text then this text is treated as a single word:
    • non-breaking spaces are not treated as word separators;
    • if a sequence of words is enclosed in {curly brackets} then it's treated as a single word.
  • I receive the error "Unknown glossing abbreviation(s)".
    See above for details, but in short:
    • If this was not intended as a glossing abbreviation, enclose it in {{no gloss}}.
    • To set the meaning of one instance of a glossing abbreviation, format that instance with {{gcl}}, for example {{gcl|PF|perfective aspect}}.
    • If the abbreviation occurs several times within the same example then it might be easier to use the |abbreviations= parameter, for example: |abbreviations=PF:perfective aspect.

মন্তব্য সম্পাদনা

  1. An alternative in each case is to use a non-breaking space: the example sentence would then be: This is a little&nbsp;example in &nbsp; Dutch.
  2. See https://www.w3schools.com/html/html_styles.asp, with the caveat that not all html features are available in wikitext, see Help:HTML in wikitext.
  3. See WP:CLASS for a list of available classes. See also Help:User style for setting up customised display of classes.
  4. Any single digit following an alphabetical character is treated as a tone number.
  5. At this stage, the resulting behaviour does not necessarily match that of the {{lang}} template/s.
  6. This only applies the IPA CSS class.

আরো দেখুন সম্পাদনা

  • {{fs interlinear}}, a version of this template which makes it easier to set up glosses with separate lines for a foreign-script text and a transliteration
  • {{gcl}}, for formatting individual glossing abbreviations

টেমপ্লেট তথ্য সম্পাদনা

নতুন দৃশ্যমান সম্পাদনা দ্বারা ব্যবহৃত টেমপ্লেটের জন্য টেমপ্লেটডাটা নথি।

আন্তরৈখিক শীর্ষ

This template formats interlinear glossed text. Only a few of the capabilities of this template are documented here. For all options, see its documentation. Alignment is automatic, so there is no need to add padding either inside or around the template.

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
আন্তরৈখিক পাঠ্যের প্রথম লাইন1

It is italicised by default (unless the parameter "italics1" is set to "no").

স্ট্রিংপ্রয়োজনীয়
আন্তরৈখিক পাঠ্যের দ্বিতীয় লাইন2

By default, this is expected to contain the glosses. If there are any glossing abbreviations, they will be expanded (unless the parameter "glossing2" is set to "no").

স্ট্রিংপরামর্শকৃত
পাঠ্যের তৃতীয় লাইন3

If it is the last line, it is assumed to be the translation and so will not be interlinearised. To force the last line to be interlinearised, then add a new, empty, line after it.

স্ট্রিংপরামর্শকৃত
পাঠ্যের চতুর্থ লাইন।4

বিবরণ নেই

স্ট্রিংঐচ্ছিক
পাঠ্যের পঞ্চম লাইন।5

বিবরণ নেই

স্ট্রিংঐচ্ছিক
পাঠ্যের ভাষাlang

ISO 639 code of the language.

স্ট্রিংঐচ্ছিক