• ମୂଳ
  • ଯାହିତାହି
  • ପାଖାପାଖି
  • ଲଗ-ଇନ
  • ସଜାଣି
Donate Now If Wikipedia is useful to you, please give today.
  • ଉଇକିପିଡ଼ିଆ ବାବଦରେ
  • ଆମେ ଦାୟୀ ନୋହୁଁ
ଉଇକିପିଡ଼ିଆ

ଛାଞ୍ଚ:Parameter names example

  • ଭାଷା
  • ଦେଖିବେ
  • ସମ୍ପାଦନା
ଛାଞ୍ଚ ଡକ୍ୟୁମେଣ୍ଟେସନ୍[view] [edit] [ଇତିହାସ] [purge]
This template uses Lua:
  • Module:Parameter names example

{{Parameter names example}} – or, alternatively, {{Generic template demo}} – is intended to assist template documentation by producing a generic instance of the template that uses parameters' names as those parameters' values.

Example

ସମ୍ପାଦନା

The example opposite for {{Infobox}}, for instance, was produced by:

{{{title}}}
{{{above}}}
{{{subheader}}}
{{{subheader2}}}
{{{image}}}
{{{caption}}}
{{{header1}}}
{{{label2}}}{{{data2}}}
{{{label3}}}{{{data3}}}
{{{header4}}}
{{{data5}}}
{{{data6}}}
{{{below}}}
{{Parameter names example
|_template=Infobox
|title |above |subheader |subheader2 |image |caption 
|header1 |label2 |data2 |label3 |data3 |header4 
|data5 |data6 |below
}}

Usage notes

ସମ୍ପାଦନା

When {{Parameter names example}} is used on an immediate subpage of its target template – e.g. on the target template's /doc page – its own |_template= parameter identifying the target template may be omitted. In other words, the code above, if used on Template:Infobox/page (where page could be "doc", "testcases", etc.), would become:

{{Parameter names example
|title |above |subheader |subheader2 |image |caption 
|header1 |label2 |data2 |label3 |data3 |header4 
|data5 |data6 |below
}}

One exception to this is the "sandbox" subpage. If the module is called from a page ending in "/sandbox", it uses that page to generate the template output, not the base page. To override this behaviour you can specify the |_template= parameter explicitly.

The formatting of the parameter names can be changed with the |_display= parameter. By default, the parameter names are shown in triple braces (the parameter standard, e.g. {{{name}}} ), but if |_display=italics or |_display=italic is set, they are shown in italics.

A custom value for a parameter may be supplied by using |[parameter name]=[value] in place of |[parameter name]. Any formatting for such a value – including, for instance, italics – must be supplied as part of the value (e.g. |parameter=''value''<br/>). Custom values cannot be used for parameters whose names begin with an underscore ("_").

See also

ସମ୍ପାଦନା
  • Wikipedia:Template documentation
  • Template:Parameters and Module:Parameters – generates a list of parameter names for a given template
The above documentation is transcluded from ଛାଞ୍ଚ:Parameter names example/doc. (edit | ଇତିହାସ)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
"https://or.wikipedia.org/w/index.php?title=ଛାଞ୍ଚ:Parameter_names_example&oldid=514952"ରୁ ଅଣାଯାଇଅଛି
Last edited on ୧୭ ଅକ୍ଟୋବର ୨୦୨୩, at ୦୯:୩୨

Languages

    • Аԥсшәа
    • Afrikaans
    • अंगिका
    • العربية
    • الدارجة
    • مصرى
    • অসমীয়া
    • Azərbaycanca
    • تۆرکجه
    • Башҡортса
    • Basa Bali
    • Беларуская
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • বাংলা
    • Bosanski
    • Català
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • کوردی
    • Dansk
    • ދިވެހިބަސް
    • Ελληνικά
    • English
    • Español
    • Eesti
    • فارسی
    • Føroyskt
    • Galego
    • ગુજરાતી
    • Gungbe
    • Gaelg
    • Hausa
    • 客家語 / Hak-kâ-ngî
    • Hawaiʻi
    • हिन्दी
    • Fiji Hindi
    • Hrvatski
    • Արեւմտահայերէն
    • Bahasa Indonesia
    • Ilokano
    • Ido
    • Íslenska
    • 日本語
    • Jawa
    • ქართული
    • Qaraqalpaqsha
    • Kumoring
    • Қазақша
    • 한국어
    • Kurdî
    • Ladin
    • ລາວ
    • Lietuvių
    • Latviešu
    • Madhurâ
    • मैथिली
    • Мокшень
    • Malagasy
    • Māori
    • Македонски
    • മലയാളം
    • Монгол
    • ဘာသာမန်
    • मराठी
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • नेपाली
    • Norsk bokmål
    • Occitan
    • ਪੰਜਾਬੀ
    • پنجابی
    • پښتو
    • Português
    • Română
    • Руски
    • Русский
    • Русиньскый
    • संस्कृतम्
    • Scots
    • Simple English
    • Slovenščina
    • Shqip
    • Српски / srpski
    • தமிழ்
    • తెలుగు
    • Тоҷикӣ
    • ไทย
    • Türkmençe
    • Türkçe
    • ChiTumbuka
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Vèneto
    • Tiếng Việt
    • Winaray
    • ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
    • 中文
    • 閩南語 / Bân-lâm-gú
    • 粵語
    ଉଇକିପିଡ଼ିଆ
    • Wikimedia Foundation
    • Powered by MediaWiki
    • ଏ ପୃଷ୍ଠାଟି ୧୭ ଅକ୍ଟୋବର ୨୦୨୩ ଦିନ ୦୯:୩୨ ବେଳେ ବଦଳାଯାଇଥିଲା ।
    • ଦର୍ଶାଯାଇନଥିଲେ ସମସ୍ତ ବିଷୟବସ୍ତୁ CC BY-SA 4.0 ରେ ଉପଲବ୍ଧ ।
    • ଗୁମର ନୀତି
    • ଉଇକିପିଡ଼ିଆ ବାବଦରେ
    • ଆମେ ଦାୟୀ ନୋହୁଁ
    • କୋଡ୍ ଅଫ୍ କଣ୍ଡକ୍ଟ୍ / ଆଚରଣ ସଂହିତା
    • ଡେଭେଲପରମାନେ
    • ପରିସଂଖ୍ୟାନ
    • କୁକି ବିବରଣୀ
    • ବ୍ୟବହାର ନିୟମାବଳୀ
    • ଡେସ୍କଟପ