Wikibooks
siwikibooks
https://si.wikibooks.org/wiki/%E0%B6%B8%E0%B7%94%E0%B6%BD%E0%B7%8A_%E0%B6%B4%E0%B7%92%E0%B6%A7%E0%B7%94%E0%B7%80
MediaWiki 1.46.0-wmf.24
first-letter
මාධ්යය
විශේෂ
සාකච්ඡාව
පරිශීලක
පරිශීලක සාකච්ඡාව
විකිපොත්
විකිපොත් සාකච්ඡාව
ගොනුව
ගොනුව සාකච්ඡාව
මාධ්යවිකි
මාධ්යවිකි සාකච්ඡාව
සැකිල්ල
සැකිලි සාකච්ඡාව
උදවු
උදවු සාකච්ඡාව
ප්රවර්ගය
ප්රවර්ග සාකච්ඡාව
විෂයය
විෂයය සාකච්ඡාව
කණිෂ්ඨ විකි
කණිෂ්ඨ විකි සාකච්ඡාව
TimedText
TimedText talk
Module
Module talk
Event
Event talk
සැකිල්ල:Quality/color/උපදෙස්
10
14863
37853
37115
2026-04-18T07:58:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37853
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template uses a single unnamed parameter to output the color used by each quality type as a six digit hex code prefixed with a # symbol.
{| class=wikitable style=text-align:center
! Syntax !! Output !! Color !! Syntax !! Output !! Color
|-
| <code><nowiki>{{quality/color|FB}}</nowiki></code>
| <code>{{quality/color|FB}}</code>
|style="background:{{quality/color|FB}}"|
| <code><nowiki>{{quality/color|Unassessed}}</nowiki></code>
| <code>{{quality/color|Unassessed}}</code>
|style="background:{{quality/color|Unassessed}}"|
|-
| <code><nowiki>{{quality/color|A}}</nowiki></code>
| <code>{{quality/color|A}}</code>
|style="background:{{quality/color|A}}"|
| <code><nowiki>{{quality/color|NB}}</nowiki></code>
| <code>{{quality/color|NB}}</code>
|style="background:{{quality/color|NB}}"|
|-
| <code><nowiki>{{quality/color|B}}</nowiki></code>
| <code>{{quality/color|B}}</code>
|style="background:{{quality/color|B}}"|
| <code><nowiki>{{quality/color|Project}}</nowiki></code>
| <code>{{quality/color|Project}}</code>
|style="background:{{quality/color|Project}}"|
|-
| <code><nowiki>{{quality/color|C}}</nowiki></code>
| <code>{{quality/color|C}}</code>
|style="background:{{quality/color|C}}"|
| <code><nowiki>{{quality/color|Category}}</nowiki></code>
| <code>{{quality/color|Category}}</code>
|style="background:{{quality/color|Category}}"|
|-
| <code><nowiki>{{quality/color|Start}}</nowiki></code>
| <code>{{quality/color|Start}}</code>
|style="background:{{quality/color|Start}}"|
| <code><nowiki>{{quality/color|Shelf}}</nowiki></code>
| <code>{{quality/color|Shelf}}</code>
|style="background:{{quality/color|Shelf}}"|
|-
| <code><nowiki>{{quality/color|Stub}}</nowiki></code>
| <code>{{quality/color|Stub}}</code>
|style="background:{{quality/color|Stub}}"|
| <code><nowiki>{{quality/color|Template}}</nowiki></code>
| <code>{{quality/color|Template}}</code>
|style="background:{{quality/color|Template}}"|
|-
|
|
|
| <code><nowiki>{{quality/color|Subject}}</nowiki></code>
| <code>{{quality/color|Subject}}</code>
|style="background:{{quality/color|Subject}}"|
|}
== අමතර අවධානයට ==
{{Grading templates see also}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[ප්රවර්ගය:සැකිලි උප පිටු|{{PAGENAME}}]]
</includeonly>
ainr2ip8o83dvd9jy16vudlhem5yekq
සැකිල්ල:Priority scale/උපදෙස්
10
14867
37854
37106
2026-04-18T07:59:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37854
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
==Usage instructions==
* The code below is for customizing the template for a specific WikiProject. The ''Top'', ''NB'', and ''Unknown'' parameters are optional, and will default to generic examples if left blank.
**Specifying the <code>topic</code> parameter will link the priority labels to the appropriate priority category in the given project in the format "''X''-priority ''topic'' pages".
**impn - allows a different name for the priority scale (e.g. importance). If not specified, then "priority" will be used.
*Copy and paste:
{| class="wikitable"
! Regular || Full Override
|-
|style="vertical-align:top;"|
<pre style="border:none; margin:0; padding:5px;">
{{priority scale
|topic =
|High_text =
|Mid_text =
|Low_text =
}}</pre>
|
<pre style="border:none; margin:0; padding:5px;">
{{priority scale
|topic =
|impn =
|Top_text =
|High_text =
|Mid_text =
|Low_text =
|NB_text =
|Unknown_text =
}}</pre>
|}
<includeonly>
== අමතර අවධානයට ==
{{Grading templates see also}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
[[Category:WikiProject templates|{{PAGENAME}}]]
</includeonly>
ariu4hdo5baqdta97ya6ebfmg042ceg
සැකිල්ල:Assessment Priority Summary/උපදෙස්
10
14873
37855
36730
2026-04-18T07:59:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37855
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
This template will display information about priority assessments. The template is generally used for the instructions on a WikiProject's "/Assessment" page.
====Full syntax====
<pre style="width:50%;">
{{Assessment Priority Summary
|banner =
|topic =
|extraparam =
}}
</pre>
==== පැරාමිති ====
* {{para|banner}} (required) - the name of the WikiProject's project banner template, ''without'' the "Template:" prefix. This parameter is found in the banner name field. (''Note'': a template shortcut can also be used).
:For example: <code>|BANNER_NAME=Template:''banner''</code>
* {{para|topic}} (required) - set so that the quality categories are: "Foo-priority ''topic'' pages". This parameter can be found in one of two places. By default, the topic field would equal the project field, or if it exists, the corresponding assessment category field.
:For example: <code>|PROJECT=''topic''</code> or <code>|ASSESSMENT_CAT=''topic'' pages</code>
* {{para|extraparam}} (optional) - extra parameters to be passed over to the WikiProject's banner, usually the name of a task force with a ''yes''. This parameter is found in the corresponding task force field.
:For example: <code>|tf 1=''extraparam''=''yes''</code>
=== උදාහරණ ===
<pre style="width:50%;">
{{Assessment Priority Summary
|banner = WikiProject Languages
|topic = French language
|extraparam = French=yes
}}
</pre>
will produce:
{{Assessment Priority Summary
|banner = WikiProject Languages
|topic = French language
|extraparam = French=yes
}}
=== අමතර අවධානයට ===
{{Grading templates see also}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:WikiProject templates|{{PAGENAME}}]]
</includeonly>
oor2vbqmorgkqqsthrv0sly4ff0u0as
සැකිල්ල:Cat priority/උපදෙස්
10
14877
37856
36814
2026-04-18T07:59:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37856
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template can be used to add a navigation bar to "assessment by topic" category pages that follow the naming convention "Category: ''importance''-importance ''topic'' pages" (e.g. Category:Top-importance history pages) in order to facilitate navigation between the various assessment class categories for that topic. By default, the template will also add the category to the parent categories "''Topic'' pages by importance" (e.g. History pages by importance) and "''importance''-importance pages" (e.g. Top-importance pages).
=== Syntax ===
<pre>
{{cat priority
|topic =
|priority =
|sort =
|parent =
}}
</pre>
=== පැරාමිති ===
* '''topic''' - set so that your category is, e.g. "High-priority ''topic'' pages"
* '''priority''' - should be one of ''top'', ''high'', ''mid'', ''low'', ''NB'', or ''Unknown''
* '''sort''' (optional) - the key you want to use to sort the category in its parent Category:Foo-priority pages
* '''parent''' (optional) - set so that your priority categories are subcategories of "''parent'' pages by priority". If not defined, defaults to ''topic''.
* '''impn''' (optional) - for projects that use other words instead of "priority", for example "importance". Defaults to "priority".
== අමතර අවධානයට ==
{{Grading templates see also}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[ප්රවර්ගය:ප්රවර්ග නාමාවකාශයේ සැකිලි|{{PAGENAME}}]]
</includeonly>
t6uk64fezxdv6oq1f27j9gbf6zt5e8a
සැකිල්ල:Pagetype/උපදෙස්
10
14882
37857
37073
2026-04-18T07:59:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37857
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template is used to identify what kind of page it or its subject page is.
=== භාවිතය ===
<pre>{{pagetype | classification | page= }}</pre>
=== පැරාමිති ===
;''classification''
This ''unnamed'' parameter is optional and is used to distinguish between different non-book pages in mainspace (e.g. disambiguation pages and redirects). See below for details.
;''page''
The name of a page. The default is the current page.
;''subjectspace''
If set to ''yes'' then subjectspace pages will be treated the same as talkspace pages.
===Output===
{| class="wikitable"
|-
!Namespace !! classification !! Output
|-
|rowspan="4" | Talk || disambig, disamb, dab
| rowspan="3" | page
|-
|| redirect, redir
|-
|| nb
|-
| ''anything else'' || page
|-
|User talk || rowspan="4" | ''anything'' || rowspan="4" | page
|-
|MediaWiki talk
|-
|Help talk
|-
|Wikijunior talk
|-
|Wikibooks talk || ''anything'' || project page
|-
|File talk || ''anything'' || file
|-
|Template talk || ''anything'' || template
|-
|Category talk || ''anything'' || category
|-
|Subject talk || ''anything'' || subject
|-
|Cookbook talk || ''anything'' || recipe
|-
| rowspan="11" | ''Any subjectspace''
| wikijunior, junior || rowspan="4" | page
|-
| disambig, disamb, dab
|-
| redirect, redir
|-
| nb
|-
| project, wikibooks || project page
|-
| image, file || file
|-
| template, temp, templ || template
|-
| category, cat, categ || category
|-
| subject || subject
|-
| cookbook, cook, recipe || recipe
|-
| ''anything else'' || page
|}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[ප්රවර්ගය:නාමාවකාශ හැසිරවීම් සැකිලි|{{PAGENAME}}]]
</includeonly>
egumf3ddm81rnwjyewp72nt95q6gwk5
සැකිල්ල:Pages by Priority/උපදෙස්
10
14891
37858
37071
2026-04-18T07:59:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37858
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{template shortcut|PbP}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
== භාවිතය ==
This template will display, in a horizontal table, the number of pages of each priority, which belong to a particular [[Wikibooks:WikiProject|WikiProject]]. The syntax is as follows:
<pre>
{{Pages by Priority
|topic=
|project=
}}
</pre>
=== පැරාමිති ===
* {{para|topic}} (required) - set so that the priority categories are: "Foo-priority ''topic'' pages".
* {{para|project}} (optional) - if defined, a refresh button and the following caption is displayed below the table: "WikiProject ''project'' pages by priority".
== උදාහරණ ==
<pre>
{{Pages by Priority|topic=language|project=Languages}}
</pre>
will result in:
{{Pages by Priority|topic=language|project=Languages}}
;Formatting template layout
By using the {{para|format}} tag, you can change the way the template is formatted using one of Wikibooks' defined styles ([[Cascading Style Sheets|CSS]]).
<pre>
{{Pages by Priority|topic=language|project=Languages|format=toc}}
</pre>
will result in:
{{Pages by Priority|topic=language|project=Languages|format=toc}}
You can use any of the Wikibooks-defined classes in this parameter. In this example, the switch changes the style from the default ''wikitable'' to the ''toc'' style used in the {{tl|Cat priority}} template. All formatting in the template will be changed to the defined style chosen and cannot be modified.
=== Task force example ===
<pre style="width:50%;">
{{Pages by Priority
|project = Languages
|topic = French language
|task_force = yes
|tf_link = French language task force
|parent = Languages
|format = toc
}}
</pre>
will generate:
{{Pages by Priority
|project = Languages
|topic = French language
|task_force = yes
|tf_link = French language task force
|parent = Languages
|nocat = yes
|format = toc
}}
== අමතර අවධානයට ==
{{Grading templates see also}}
<includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
[[ප්රවර්ගය:ප්රවර්ග නාමාවකාශයේ සැකිලි|{{PAGENAME}}]]
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>
9icnzrm2chia6jvpzqfr6uf7qddu6bl
සැකිල්ල:Quality scale/උපදෙස්
10
14897
37859
37114
2026-04-18T07:59:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37859
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
== Usage instructions ==
* The code below is for customizing the template for a specific WikiProject. Parameters for the standard quality classes need to be filled in, but will default to empty if not supplied.
*Specifying the <code>topic</code> parameter will link the classification labels to the appropriate quality category in the format "''X''-quality ''topic'' pages".
*The rows for ''Category'', ''Shelf'', ''Project'', and ''Template'' classifications are optional but will be displayed unless {{para|quality|standard}} is specified.
*Filling in the ''X_detail'' parameter will add a drop-down box to the criteria column, permitting additional information to be added.
*The ''FB'', ''Category'', ''Shelf'', ''Project'', ''Template'', and ''NB'' classifications, if used, can have the default information overridden with {{para|X_criteria}}, {{para|X_detail}}, {{para|X_reader}}, and {{para|X_suggestion}}
*Copy and paste:
{| class="wikitable"
! Regular || Detailed || Full Override
|-
|style="vertical-align:top;"|
<pre style="border:none; margin:0; padding:5px;">
{{quality scale
|topic =
|quality = extended
|A_criteria =
|A_reader =
|A_suggestion =
|B_criteria =
|B_reader =
|B_suggestion =
|C_criteria =
|C_reader =
|C_suggestion =
|Start_criteria =
|Start_reader =
|Start_suggestion =
|Stub_criteria =
|Stub_reader =
|Stub_suggestion =
}}</pre>
|style="vertical-align:top;"|
<pre style="border:none; margin:0; padding:5px;">
{{quality scale
|topic =
|quality = extended
|A_criteria =
|A_detail =
|A_reader =
|A_suggestion =
|B_criteria =
|B_detail =
|B_reader =
|B_suggestion =
|C_criteria =
|C_detail =
|C_reader =
|C_suggestion =
|Start_criteria =
|Start_detail =
|Start_reader =
|Start_suggestion =
|Stub_criteria =
|Stub_detail =
|Stub_reader =
|Stub_suggestion =
}}</pre>
|
<pre style="border:none; margin:0; padding:5px;">
{{quality scale
|topic =
|quality = extended
|FB_criteria =
|FB_detail =
|FB_reader =
|FB_suggestion =
|A_criteria =
|A_detail =
|A_reader =
|A_suggestion =
|B_criteria =
|B_detail =
|B_reader =
|B_suggestion =
|C_criteria =
|C_detail =
|C_reader =
|C_suggestion =
|Start_criteria =
|Start_detail =
|Start_reader =
|Start_suggestion =
|Stub_criteria =
|Stub_detail =
|Stub_reader =
|Stub_suggestion =
|Category_criteria =
|Category_detail =
|Category_reader =
|Category_suggestion =
|Shelf_criteria =
|Shelf_detail =
|Shelf_reader =
|Shelf_suggestion =
|Project_criteria =
|Project_detail =
|Project_reader =
|Project_suggestion =
|Template_criteria =
|Template_detail =
|Template_reader =
|Template_suggestion =
|NB_criteria =
|NB_detail =
|NB_reader =
|NB_suggestion =
}}</pre>
|}
== අමතර අවධානයට ==
{{Grading templates see also}}
<includeonly>
[[Category:WikiProject templates|{{PAGENAME}}]]
</includeonly>
lkp3mff5xapjeobl42m903epxgdsg41
සැකිල්ල:Cat quality/උපදෙස්
10
14905
37860
36815
2026-04-18T08:00:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37860
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
This template can be used to add a navigation bar to "assessment by topic" category pages that follow the naming convention "Category:''quality''-quality ''topic'' pages" (e.g. Category:Start-quality history pages) in order to facilitate navigation between the various assessment quality categories for that topic. By default, the template will also add the category to the parent categories "''Topic'' pages by quality" (e.g. History pages by quality) and "''quality''-quality pages" (e.g. Start-quality pages).
==Syntax==
<pre>
{{cat quality
|topic=
|quality=
|sort=
|parent=
}}
</pre>
=== පැරාමිති ===
* '''topic''' - set so that your category is, e.g. "''Quality''-quality ''topic'' pages"
* '''quality''' - should be one of ''FB'', ''a'', ''b'', ''c'', ''start'', ''stub'', ''NB'', or ''Unassessed''
* '''sort''' (optional) - the key you want to use to sort the category in its parent Category:Foo-quality pages
* '''parent''' (optional) - set so that your importance categories are subcategories of "''parent'' pages by quality". If not defined, defaults to ''topic''.
== අමතර අවධානයට ==
{{Grading templates see also}}
<includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
[[ප්රවර්ගය:ප්රවර්ග නාමාවකාශයේ සැකිලි|{{PAGENAME}}]]
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>
iz6bjdc0to1s9cp7fcd5qijk7h69h26
සැකිල්ල:Pages by Quality/උපදෙස්
10
14907
37861
37072
2026-04-18T08:00:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37861
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{template shortcut|PbQ}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
== භාවිතය ==
This template will display, in a horizontal table, the number of pages of each quality, which belong to a particular [[Wikibooks:WikiProject|WikiProject]]. The syntax is as follows:
<pre>
{{Pages by Quality
|topic=
|project=
}}
</pre>
=== පැරාමිති ===
* {{para|topic}} (required) - set so that the quality categories are: "Foo-quality ''topic'' pages".
* {{para|project}} (optional) - if defined, a refresh button and the following caption is displayed below the table: "WikiProject ''project'' pages by quality".
== උදාහරණ ==
<pre>
{{Pages by Quality|topic=language|project=Languages}}
</pre>
will result in:
{{Pages by Quality|topic=language|project=Languages}}
;Formatting template layout
By using the {{para|format}} tag, you can change the way the template is formatted using one of Wikibooks' defined styles ([[Cascading Style Sheets|CSS]]).
<pre>
{{Pages by Quality|topic=language|project=Languages|format=toc}}
</pre>
will result in:
{{Pages by Quality|topic=language|project=Languages|format=toc}}
You can use any of the Wikibooks-defined classes in this parameter. In this example, the switch changes the style from the default ''wikitable'' to the ''toc'' style used in the {{tl|Cat quality}} template. All formatting in the template will be changed to the defined style chosen and cannot be modified.
=== Task force example ===
<pre style="width:50%;">
{{Pages by Quality
|project = Languages
|topic = French language
|task_force = yes
|tf_link = French language task force
|parent = Languages
|format = toc
}}
</pre>
will generate:
{{Pages by Quality
|project = Languages
|topic = French language
|task_force = yes
|tf_link = French language task force
|parent = Languages
|nocat =yes
|format = toc
}}
== අමතර අවධානයට ==
{{Grading templates see also}}
<includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
[[ප්රවර්ගය:ප්රවර්ග නාමාවකාශයේ සැකිලි|{{PAGENAME}}]]
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>
jmks5bbhmm777zul4p5ihimp6hj6fq2
සැකිල්ල:Quality/උපදෙස්
10
14915
37862
37117
2026-04-18T08:00:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37862
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template is used to show quality assessment ratings on WikiProject banners and other places.
== භාවිතය ==
*<code><nowiki>{{quality|</nowiki>''grade''<nowiki>}}</nowiki></code>
*:Where ''grade'' is the quality of the page.
*<code><nowiki>{{quality|</nowiki>''grade''<nowiki>|image=</nowiki>''yes''<nowiki>}}</nowiki></code>
*:'''{{para|image|no}}''' does not ever display icons.
*<code><nowiki>{{quality|</nowiki>''grade''<nowiki>|category=</nowiki>''category''<nowiki>}}</nowiki></code>
*:Define an alternative X-quality ''blah'' category.
*<code><nowiki>{{quality|</nowiki>''grade''<nowiki>|fullcategory=</nowiki>''fullcategory''<nowiki>}}</nowiki></code>
*:Define an alternative category link.
=== උදාහරණ ===
{| style="background:transparent;" class="wikitable"
|-
|<code><nowiki>{{quality|FB}}</nowiki></code>
{{quality|FB}}
|-
|<code><nowiki>{{quality|FB|image=no}}</nowiki></code>
{{quality|FB|image=no}}
|-
|<code><nowiki>{{quality|FB|category=modules}}</nowiki></code>
{{quality|FB|category=modules}}
|-
|<code><nowiki>{{quality|FB|fullcategory=Featured recipes}}</nowiki></code>
{{quality|FB|fullcategory=Featured recipes}}
|-
|<code><nowiki>{{quality|A}}</nowiki></code>
{{quality|A}}
|-
|<code><nowiki>{{quality|B|image=no}}</nowiki></code>
{{quality|B|image=no}}
|}
== අමතර අවධානයට ==
{{Grading templates see also}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[ප්රවර්ගය:ඇගැයුම් සැකිලි|{{PAGENAME}}]]
</includeonly>
eefnxi9uo01n4bmi785bf6k4313xt63
සැකිල්ල:Quality/icon/උපදෙස්
10
14919
37863
37116
2026-04-18T08:00:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37863
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template creates an inline image that is used to show assessment ratings on WikiProject banners and other places.
{{col-begin}}
{{col-2}}
* {{Quality/icon|FB}} '''Featured Book''': <nowiki>{{Quality/icon|FB}}</nowiki>
* {{Quality/icon|A}} '''A-Class Page''': <nowiki>{{Quality/icon|A}}</nowiki>
* {{Quality/icon|B}} '''B-Class Page''': <nowiki>{{Quality/icon|B}}</nowiki>
* {{Quality/icon|C}} '''C-Class Page''': <nowiki>{{Quality/icon|C}}</nowiki>
* {{Quality/icon|Start}} '''Start-Class Page''': <nowiki>{{Quality/icon|Start}}</nowiki>
* {{Quality/icon|Stub}} '''Stub-Class Page''': <nowiki>{{Quality/icon|Stub}}</nowiki>
{{col-2}}
* {{Quality/icon|NB}} '''Non-Book Page''': <nowiki>{{Quality/icon|NB}}</nowiki>
* {{Quality/icon|Project}} '''Project Page''': <nowiki>{{Quality/icon|Project}}</nowiki>
* {{Quality/icon|Category}} '''Category Page''': <nowiki>{{Quality/icon|Category}}</nowiki>
* {{Quality/icon|Shelf}} '''Shelf Page''': <nowiki>{{Quality/icon|Shelf}}</nowiki>
* {{Quality/icon|Subject}} '''Subject Page''': <nowiki>{{Quality/icon|Subject}}</nowiki>
* {{Quality/icon|Template}} '''Template Page''': <nowiki>{{Quality/icon|Template}}</nowiki>
* {{Quality/icon|}} '''Unknown''': <nowiki>{{Quality/icon|}}</nowiki>
{{col-end}}
== අමතර අවධානයට ==
{{Grading templates see also}}
*[[Template:WPBannerMeta]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[ප්රවර්ගය:සැකිලි උප පිටු|{{PAGENAME}}]]
</includeonly>
mcwmcgl3by465qhkx7exa17n92i7dlz
සැකිල්ල:ප්රමුඛතාව/color/උපදෙස්
10
14923
37864
37275
2026-04-18T08:00:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37864
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template uses a single unnamed parameter to output the color used by each priority type as a six digit hex code prefixed with a # symbol.
{| class=wikitable style=text-align:center
! Syntax !! Output !! Color
|-
| <code><nowiki>{{priority/color|Top}}</nowiki></code>
| <code>{{priority/color|Top}}</code>
|style="background:{{priority/color|Top}}"|
|-
| <code><nowiki>{{priority/color|High}}</nowiki></code>
| <code>{{priority/color|High}}</code>
|style="background:{{priority/color|High}}"|
|-
| <code><nowiki>{{priority/color|Mid}}</nowiki></code>
| <code>{{priority/color|Mid}}</code>
|style="background:{{priority/color|Mid}}"|
|-
| <code><nowiki>{{priority/color|Low}}</nowiki></code>
| <code>{{priority/color|Low}}</code>
|style="background:{{priority/color|Low}}"|
|-
| <code><nowiki>{{priority/color|NB}}</nowiki></code>
| <code>{{priority/color|NB}}</code>
|style="background:{{priority/color|NB}}"|
|-
| <code><nowiki>{{priority/color|Unknown}}</nowiki></code>
| <code>{{priority/color|Unknown}}</code>
|style="background:{{priority/color|Unknown}}"|
|}
== අමතර අවධානයට ==
{{Grading templates see also}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[ප්රවර්ගය:සැකිලි උප පිටු|{{PAGENAME}}]]
</includeonly>
42jzbpnxd6j7cqw6p11uv9r61plmkf8
සැකිල්ල:ප්රමුඛතාව/උපදෙස්
10
14925
37865
37276
2026-04-18T08:00:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37865
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
This template is used to show priority assessment ratings on WikiProject banners and other places, and to classify them into [[:Category:Pages by priority]].
== භාවිතය ==
*<tt><nowiki>{{priority|</nowiki>''grade''<nowiki>}}</nowiki></tt>
*:Where ''grade'' is the priority of the page.
*<tt><nowiki>{{priority|</nowiki>''grade''<nowiki>|category=</nowiki>''category''<nowiki>}}</nowiki></tt>
*:Define an alternative category link.
*<tt><nowiki>{{priority|</nowiki>''grade''<nowiki>|impn=</nowiki>importance<nowiki>}}</nowiki></tt>
*:Allows the template to be used with the importance scale.
== අමතර අවධානයට ==
{{Grading templates see also}}
<includeonly>
[[ප්රවර්ගය:ඇගැයුම් සැකිලි|{{PAGENAME}}]]
</includeonly>
nowh2u7ukue6n48zm0kv7ekf45jaezp
සැකිල්ල:Cat in use/උපදෙස්
10
14945
37866
36813
2026-04-18T08:01:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37866
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template checks whether a category is 'in use', checking various combinations of whether the category exists (is not a redlink) and is populated (has pages in it).
=== භාවිතය ===
*<tt><nowiki>{{cat in use|Wikipedia}}</nowiki></tt> → {{cat in use|Wikipedia}}
*<tt><nowiki>{{cat in use|Avpoaihaw}}</nowiki></tt> → {{cat in use|Avpoaihaw}}
The second parameter can be used to say what kind of comparison is done:
*<tt>'''or'''</tt> – returns true if the category exists ''or'' has members
*<tt>'''and'''</tt> – true if the category exists ''and'' has members
*<tt>'''xor'''</tt> – true if the category exists but is empty, or if the category does not exist but has members (slightly weird, admittedly <tt>:D</tt>)
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Function templates|{{PAGENAME}}]]
</includeonly>
q8kfn3lqhln2y9ewsrwrufun9rnn0rt
සැකිල්ල:ප්රධාන ප්රවර්ගය/උපදෙස්
10
14974
37867
37273
2026-04-18T08:01:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37867
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{Template shortcut|Maincat|Mcat}}
* {{tlx|ප්රධාන ප්රවර්ගය|CATEGORY NAME|CATEGORY LABEL}} → {{ප්රධාන ප්රවර්ගය|CATEGORY NAME|CATEGORY LABEL}}
* {{tlx|ප්රධාන ප්රවර්ගය|CATEGORY NAME}} → {{ප්රධාන ප්රවර්ගය|CATEGORY NAME}}
* {{tlx|ප්රධාන ප්රවර්ගය}} → {{ප්රධාන ප්රවර්ගය}}
When a Wikipedia article is large, it is often written in [[Wikipedia:Summary style|summary style]] with links to subtopics presented at the start of the corresponding sections. In cases where an article section lacks a matching subtopic article but has a relevant and useful matching category, this template can be used to present a link to the category.
== අමතර අවධානයට ==
*{{tl|Cat main}} – for main article, rather than main category
*{{tl|Category see also}}
{{Category hatnote templates}}
<includeonly>{{Sandbox other||
[[ප්රවර්ගය:ප්රවර්ග පිටු සඳහා වන හැට් නෝට් සැකිලි]]
}}</includeonly>
kkkafyzwlqm2rtj9k9xeoyqoy6s90sh
සැකිල්ල:Collapsible large category TOC/ලේඛය
10
14998
37868
34278
2026-04-18T08:01:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37868
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{Lua|Module:Large category TOC}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== Usage ===
When a category has many pages, place this template near the top of the category page:
{{Tlx|{{BASEPAGENAME}}}}
There are no optional parameters.
=== See also ===
* [[:Template:Category TOC]]
* [[:Template:Category TOC ATC]]
* [[:Template:Category TOC (non-Latin)]]
* [[:Template:Large category TOC]]
* [[:Template:Large category TOC numeric]]
<includeonly>{{Sandbox other||
<!--Categories-->
[[ප්රවර්ගය:Wikibooks category table of contents templates]]
[[Category:Templates using navigation bars]]
[[ප්රවර්ගය:ප්රවර්ග නාමාවකාශයේ සැකිලි]]
<!--Other languages-->
}}</includeonly>
grppuf8slbxg8wgzed94kzui1t8zalu
සැකිල්ල:Noprint/උපදෙස්
10
15090
37869
37059
2026-04-18T08:01:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37869
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
This template simply returns the passed parameter. It can be used to exclude word or lines in print versions, be it printing of the web page or rendering as a PDF. Common uses include hiding elements that make no sense in print such as: "Click the name of a town on the map for more details".
Where possible you can also use <code>class="noprint"</code> to any block element in order to hide that content from printing.
=== උදාහරණ ===
For simple usage where the text is a simple sentence or phrase:
{| style="border:solid;border-width:1px;border-color:grey"
|<syntaxhighlight lang="wikitext>{{noprint|text to be hidden}}</syntaxhighlight>
|}
<br />
{| style="border:solid;border-width:1px;border-color:grey"
|<syntaxhighlight lang="wikitext>{{noprint|1=text to be hidden that uses an = sign}}</syntaxhighlight>
|}
For usage where the content is of a more extensive nature such as a block based element, such as a table, or list of items.
<div style="border:solid;border-width:1px;border-color:grey">
<syntaxhighlight lang="wikitext">
{{noprint/top}}
* This is a list of items that should not appear in print because:
** It is administrative content unrelated to the content of the article..
** It is interactive navigation that does not make sense in a printed document.
** It is content that would not make sense in a printed document.
{{noprint/bottom}}
</syntaxhighlight>
</div>
=== අමතර අවධානයට ===
* {{tl|Hide in print}}
* {{tl|Only in print}}
*[[Help:Collections]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[ප්රවර්ගය:මුද්රණ සැකිලි|{{PAGENAME}}]]
</includeonly>
n432yzz2cgwf1mherktv84zedey2hg7
සැකිල්ල:Printable/උපදෙස්
10
15100
37870
37105
2026-04-18T08:01:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37870
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{Lua|Module:Printable version}}
== Principle ==
This template creates an automatic printable version [[Module:Printable version|in Lua]], from the summary, by displaying its pages contents, and transforming their names into titles 1 (that's why it's recommended to use titles 2 into the pages).
== Syntax ==
* {{Para|1}} (''optional'') – the book table of content page
* {{Para|2}} (''optional'') – the book main page
* {{Para|3}} (''optional'') – ignore page existence evaluation (only in case of server overflow, and all the TOC pages should exist)
=== භාවිතය ===
* If the table of characters is the first page, the template can be called without any parameters as {{Tlx|Printable}}, the way it is on [[Microsoft SQL Server/Print version]].
* If the table of characters is not the first page, specify it as the value of the first positional parameter ({{Para|1}}), as done with {{Tlx|Printable|X Window Programming/TOC}} on [[X Window Programming/Print version]].
== අමතර අවධානයට ==
* {{Tl|Print version}}<includeonly>
[[Category:Print templates]]</includeonly>
05fis2a6e5ojwxv4iepgq15fyeey6yb
සැකිල්ල:Meta/උපදෙස්
10
15132
37871
37039
2026-04-18T08:01:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37871
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Creates a link to Meta.
=== භාවිතය ===
* {{tl|Meta}}
=== ප්රගත භාවිතය ===
* {{tlx|Meta|''page''|''link text''}}
where:
* ''page'' is the Meta page to link to. Defaults to '''PAGENAME''' (the current page's title)
* ''link text'' is the text to display with the above link. Defaults to ''page''.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[ප්රවර්ගය:අන්තර්විකි සබැඳි සැකිලි|{{PAGENAME}}]]
</includeonly>
pvkujz60okl0a2qnx97i2jwn1s9oybj
සැකිල්ල:Ingredient summary/උපදෙස්
10
15175
37872
37001
2026-04-18T08:02:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37872
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}__NOTOC__
{{template shortcut|rs}}
== භාවිතය ==
<pre>{{Ingredient summary
| category =
| image =
}}</pre>
* All parameters to the <nowiki>{{ingredient summary}}</nowiki> template are '''optional'''.
* The "Category" tries to resolve to an actual category, but does ''not'' include the recipe in that category.
== උදාහරණ ==
<pre>{{ingredient summary
| name = Honey
| category = Sweeteners
| image = [[File:Высокогорный мёд.jpg|300px]]
}}</pre>
{{ingredient summary
| name = Honey
| category = Sweeteners
| image = [[File:Высокогорный мёд.jpg|300px]]
}}
{{clear}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE -->
[[Category:Cookbook templates]]
</includeonly>
3ousn777yzxb1biq94m7wxn4399rc47
සැකිල්ල:Template link universal/උපදෙස්
10
15226
37873
37172
2026-04-18T08:02:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37873
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}{{Template shortcut|Tlu|Tu}}
{{high-use|16847}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
== භාවිතය ==
{{tlc|tlu|fullpagename}}
{|class="wikitable"
| {{tlc|tlu|User:Example/Talk message}} || {{tlu|User:Example/Talk message}}
|-
| {{tlc|tlu|Template_talk:tlu}} || {{tlu|Template_talk:tlu}}
|-
| {{tlc|tlu|Template talk:tlu|param}} || {{tlu|Template talk:tlu|param}}
|-
| {{tlc|tlu|fullpagename|1|2|3|4|5|6|7|8|9<nowiki>{{=}}</nowiki>10}} || {{tlu|fullpagename|1|2|3|4|5|6|7|8|9{{=}}10}}
|-
| {{tlc|tlu|fullpagename|1|2|3|4|5|6|7|8|9<nowiki>{{=}}</nowiki>10<nowiki>{{=}}</nowiki>more}} || {{tlu|fullpagename|1|2|3|4|5|6|7|8|9{{=}}10{{=}}more}}
|-
| {{tlc|tlu|fullpagename|param<nowiki>{{=}}</nowiki>value}} || {{tlu|fullpagename|param{{=}}value}}
|}
''Up to 10 placeholders for parameters of the specified template''
This template is nearly identical to [[Template:Tl]], except that it is intended for all [[Wikipedia:Namespace|namespace]] transclusions, and you can include parameters—as long as you use {{tlg|=}} signs or {{code|=}} in place of equal signs. For example, you can enter a subpage in your user space ({{tlu|User:Example/Talk message|param1{{=}}y|param2|etc.}}) or in a WikiProject ({{tlu|Wikipedia:WikiProject Songs/Unreferenced BLPs|param1{{=}}y|param2|etc.}}).
== අමතර අවධානයට ==
*{{tl|tl}} for full documentation
{{Tl-nav}}
<includeonly>{{Sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Internal template-link templates]]
}}</includeonly>
bden7q7yomsjtw5s8en5wv77jxqjq48
සැකිල්ල:Purge box/උපදෙස්
10
15234
37874
37109
2026-04-18T08:02:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37874
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Categories and interwikis go at the bottom of this page. -->
== භාවිතය ==
Place at the top of a page, which transcludes subpages, to provide an easy mechanism to purge the page.
Do not use this template in articles.
This template accepts no parameters.
{{Purge Pages}}<includeonly>{{Sandbox other||
<!-- Categories go here: -->
[[Category:Internal link templates]]
[[Category:Wikipedia formatting templates]]
}}</includeonly>
jkpm06kqrmnc6apy4j9eogs1zypz3js
සැකිල්ල:Purge link portals/උපදෙස්
10
15238
37875
37111
2026-04-18T08:02:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37875
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
== භාවිතය ==
<syntaxhighlight lang="wikitext" style="overflow: auto;">{{Purge link portals|''Optional'' alternate text.}}</syntaxhighlight>
* {{para|1}} - Unnamed parameter, accepts plain text or wikitext in place of the default link text.
==TemplateData==
<templatedata>
{
"params": {
"1": {
"label": "Text",
"description": "Alternate text to use for link",
"example": "Purge me, 1=Click '''here''' to purge",
"type": "unbalanced-wikitext",
"default": "(empty)"
}
},
"description": "Adds a purge link to the portal page. This ensures that the text and styling remains constant throughout all portals.",
"format": "inline"
}
</templatedata>
{{Purge Pages|state=uncollapsed}}
{{Portal templates navbox}}
<includeonly>{{sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Wikipedia Portal templates]]
}}</includeonly>
ibobi6he5v5p75els6nk8uftx51xw7e
සැකිල්ල:NoteTag/උපදෙස්
10
15251
37876
32779
2026-04-18T08:02:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37876
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{High-use}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{#section:Help:footnotes|pregroup}}
== TemplateData ==
<templatedata>
{
"description": "Inserts an explanatory footnote. Notes can be named and grouped. Will show as for example: [Note 1]",
"format": "inline",
"params": {
"1": {
"label": "Text",
"description": "Text of the note",
"aliases": [
"note",
"content",
"text"
],
"type": "content",
"required": true
},
"name": {
"label": "Name",
"description": "Reference name of the note",
"type": "line"
}
}
}
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories and interwikis go here: -->
[[ප්රවර්ගය:සවිස්තරාත්මක පාදසටහන් සැකිලි]]
[[Category:Templates that generate named references]]
}}</includeonly>
9wxeleje2lz8nz73iwaj7jckqmm4re2
සැකිල්ල:Tlsf/උපදෙස්
10
15263
37877
37187
2026-04-18T08:02:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37877
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This is the {{tlf|tlsf}} template.
This template works almost exactly like {{tlc|tlsc}}; see [[Template:Tlsc|the full documentation there]].
But here is a short example:
<syntaxhighlight lang="wikitext">
{{tlsf|template name|parameters}}
</syntaxhighlight>
Renders like this:
: {{tlsf|template name|parameters}}
=== අමතර අවධානයට ===
* {{tl|tlsc}}
* {{tl|tlsp}}
<includeonly>{{Sandbox other||
<!-- ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE -->
[[Category:Internal template-link templates]]
[[Category:Wikitext typing-aid templates]]
}}</includeonly>
rdazw3ynoywzvvsaow3xinw2bdh802x
සැකිල්ල:NoteFoot/උපදෙස්
10
15281
37878
32778
2026-04-18T08:03:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37878
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{High-use}}
<!-- Categories and interwikis go at the bottom of this page. -->
{{#section:Help:footnotes|pregroup}}
<includeonly>{{Sandbox other||
<!-- Categories and interwikis go here: -->
[[ප්රවර්ගය:සවිස්තරාත්මක පාදසටහන් සැකිලි]]
}}</includeonly>
du4forr3ovcmgrfj0ninq2xavnkcz9q
සැකිල්ල:Xtag/උපදෙස්
10
15285
37879
37213
2026-04-18T08:03:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37879
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}<!----Categories where indicated at the bottom of this page, please---->
This template adds a formatted MediaWiki parser or extension tag that links to the help or extension page. This template is similar to {{tl|tag}}, but it links the tag and defaults to open.
===Parser and extension tags===
<section begin="xtag" />{{Xtag/list}}<section end="xtag" />
=== පැරාමිති ===
* '''first parameter''' ''(mandatory)'': the name of the HTML tag
* '''second parameter''': what type of tag to display:
** <code>p</code> or <code>pair</code>: display a matched pair of open-and-close tags
*** To suppress the ellipsis which appears between the tags, add an empty {{para|content}} parameter
** <code>o</code> or <code>open</code> ''(default)'': display only the opening tag of an open-and-close pair
** <code>c</code> or <code>close</code>: display only the closing tag of an open-and-close pair
** <code>s</code> or <code>single</code>: display a single tag
* '''content=''' the text content of the tags
* '''params=''' any parameters to be included in the opening tag
==== උදාහරණ ====
{{markup
|<nowiki>{{xtag|nowiki}}</nowiki>
|{{xtag|nowiki}}
|<nowiki>{{xtag|nowiki|s}}</nowiki>}
|{{xtag|nowiki|s}}
}}
Markup → Renders as: <br />
<code><nowiki>{{xtag|syntaxhighlight|p|params=inline lang="text"}}</nowiki> </code>→<br />
{{xtag|syntaxhighlight|p|params=inline lang="text"}}
=== අමතර අවධානයට ===
* {{tl|tag}}
====Other formatting templates====
{{#lsth:Template:Template-linking_templates|Other formatting templates}}
<includeonly>{{Sandbox other||
<!----Categories below this line, please:---->
[[Category:HTML typing-aid templates]]
[[Category:Wikitext typing-aid templates]]
[[Category:Wikipedia XHTML tag-replacing templates| ]]
}}</includeonly>
88jraz25wkarg6jofroyupfu1a0htas
සැකිල්ල:Demo/උපදෙස්
10
15289
37880
36883
2026-04-18T08:03:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37880
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Template redirect|Template Pre|Doc pre}}
{{Template shortcut|tpre}}
{{Lua|Module:Demo}}
This template simply places template code (or any other code) in a {{tag|syntaxhighlight|params=lang="wikitext"}} tag and then places the rendering of that code below.
<syntaxhighlight lang="wikitext">
{{demo|<nowiki>{{your template}}</nowiki>}}
</syntaxhighlight>
'''{{red|IMPORTANT:}}''' You must wrap {{tag|nowiki}} tags around the source to be demonstrated (or use {{t|escape}}, which has a demo-escape example), like so:
<syntaxhighlight lang="wikitext" inline>{{demo|<nowiki>[template source]</nowiki>}}</syntaxhighlight>
Failure to wrap {{tag|nowiki}} tags around the source may cause the source to be executed before it reaches this template.
<syntaxhighlight lang="wikitext" inline>{{demo|{{fail}}}}</syntaxhighlight> produces:
{{demo|{{fail}}}}
=== Pre style ===
Set {{para|style}} to add any CSS text to the {{tag|pre}} tag.
For example, <syntaxhighlight lang="wikitext" inline>{{demo|style=margin-left: 1.6em;|<nowiki>{{done}}</nowiki>}}</syntaxhighlight> will produce:
{{demo|style=margin-left: 1.6em;|<nowiki>{{done}}</nowiki>}}
=== Separator ===
You can change the separator between the {{tag|syntaxhighlight|o}} and the template by setting the {{para|sep}} parameter.
<syntaxhighlight lang="wikitext">{{demo|sep=produces|<nowiki>{{done}}</nowiki>}}</syntaxhighlight>
{{demo|sep=produces|<nowiki>{{done}}</nowiki>}}
You may use {{para|sep|<td>}} can make the demonstration fit in a table:
{| border="1"
|-
|{{demo|br=<td>|{{((}}done{{))}}}}
|}
Instead of using {{para|sep}}, you can also specify the number of line breaks between the code and the template in the {{para|br}} parameter.
=== Reverse order ===
Use {{para|reverse|1}} to show the code snippet and the result in reverse order:
<syntaxhighlight lang="wikitext">{{demo|reverse=1|<nowiki>{{tl|template}}</nowiki>}}</syntaxhighlight>
will produce
{{demo|reverse=1|<nowiki>{{tl|template}}</nowiki>}}
=== Category removal ===
For templates that add categories (e.g. {{t|Asbox}}), set {{para|nocat}} (or {{para|demo_kill_categories}}) to anything to prevent them from showing up in the output:
{{demo|br=produces:|demo_kill_categories=yes
|<nowiki>{{Asbox
| image = Østfold_våpen.svg
| pix = 30
| subject = [[Østfold]] location
| name = Template:Østfold-geo-stub
| category = Østfold geography stubs
| tempsort = *
}}
</nowiki>}}
=== Module ===
If the template used is based on [[Lua (programming language)|Lua]], you can pass args directly to the demonstrated module by invoking [[Module:Demo]] like so: (this would reduce server stress)
{{demo|<nowiki>
{{#invoke:Demo|module|demo_module=RoundN|demo_module_func=N2|demo_template=Round2
|bold_winner=high
|May 1|Team A|1|Team B|2
}}</nowiki>}}
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 {{para|demo_sep}} instead of {{para|sep}} (all args you don't want being passed should be prefixed with <code>demo_</code> if not already)
== TemplateData ==
{{TemplateData header}}
<templatedata>
{
"params": {
"1": {
"label": "Content",
"description": "must be wrapped in <nowiki>"
},
"sep": {
"description": "Number of line breaks, or wikitext to fill in as the linebreak"
},
"nocat": {
"type": "boolean",
"aliases": [
"demo_kill_categories"
]
},
"result_arg": {},
"style ": {
"label": "<syntaxhighlight> style"
},
"reverse": {
"label": "Reverse order",
"description": "Show the code snippet and the result in reverse order",
"type": "boolean",
"default": "0",
"autovalue": "1"
}
}
}
</templatedata>
== අමතර අවධානයට ==
* {{tl|Demo-inline}}, for an inline version of this template
* {{tl|Escape}} - which has an example of this template without nowiki tags
* {{tl|Nowiki template demo}} which uses [[Module:Template test case]]
* {{tl|Automarkup}} which uses [[Module:Automarkup]]
===Other formatting templates===
{{#lsth:Template:Template-linking_templates|Other formatting templates}}
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Documentation assistance templates]]
[[Category:Programming typing-aid templates]]
[[Category:Template test cases| ]]
[[ප්රවර්ගය:විකිපොත් හැඩ ගැන්වීම් සැකිලි]]
[[Category:Wikitext processing templates]]
}}</includeonly>
18br922sxez6q7swye215hz9ni5hnfv
සැකිල්ල:Template link with title with subst/උපදෙස්
10
15303
37881
37176
2026-04-18T08:03:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37881
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
{{tsh|tltts}}
== භාවිතය ==
This template is like {{tl|tlxs}} except that it includes a parameter for a span title, which appears as a tooltip.
== උදාහරණ ==
{|class="wikitable"
|-
! Code !! Result
|-
| {{demo|br=<td>|<nowiki>{{Tltss|uw-spam3|Please stop spamming.}}</nowiki>}}
|}
== අමතර අවධානයට ==
{{Template-linking templates}}
<includeonly>{{Sandbox other||
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, PLEASE: -->
[[Category:Internal template-link templates]]
[[Category:Wikitext typing-aid templates]]
}}</includeonly>
ku9sdwdjf9id1gbx2vw37somgehhlsv
සැකිල්ල:Template link with linked braces/උපදෙස්
10
15305
37882
37174
2026-04-18T08:03:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37882
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{High-use}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{tsh|tn|tlw}}
{{lua|Module:Template link general}}
This template is used similarly to [[Template:Tl]] to show the name of a template with the pairs of open and close braces around it. But this variant makes the inner braces part of the link, whereas [[Template:Tl]] does not make the braces part of the link. This is to allow easier clicking of very short template names. The "Tn" name is short for '''T'''emplate '''n'''ame.
== භාවිතය ==
: {{tlc|tn|''template_name''}}
==Example with comparison==
{{Aligned table
| {{tlx|tn|!}} | produces: {{tn|!}}
| {{tlx|tl|!}} | produces: {{tl|!}}
}}
== අමතර අවධානයට ==
* {{tl|tl}}
* {{tl|lts}}
{{Template-linking templates}}
<includeonly>{{sandbox other||
<!----ADD CATEGORIES BELOW THIS LINE:---->
[[Category:Internal template-link templates]]
[[Category:Typing-aid templates]]
}}</includeonly>
2qp9nfpi2dkar78eai0ygse7irl4cge
සැකිල්ල:Template link with alternate text/උපදෙස්
10
15307
37883
37173
2026-04-18T08:03:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37883
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{High-use}}
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
== භාවිතය ==
This template works exactly like {{tl|tl}} with the addition of optionally displaying alternative label text.
* <code><nowiki>{{tla|quote|link to quote template}}</nowiki></code> → {{tla|quote|link to quote template}}
When the second parameter is omitted, the original template name is displayed (i.e. {{tlf|tla}} reverts to {{tlf|tl}}):
* <code><nowiki>{{tla|quote}}</nowiki></code> → {{tla|quote}}
== අමතර අවධානයට ==
{{Template-linking templates}}
<includeonly>{{Sandbox other||
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
[[Category:Internal template-link templates]]
}}</includeonly>
joxnzgopcl41r8shzawljj2muxw6i27
සැකිල්ල:Template link interwiki/උපදෙස්
10
15309
37884
37169
2026-04-18T08:04:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37884
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{High-use}}
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
{{nutshell|<code>-styled {{tl|tl}} that can link to sister projects.}}
{{tsh|Tliw|Tl2}}
This is the {{tl|tl2}} template.
{{tlf|tl2}} is similar to {{tl|tl}}. '''Tl''' stands for '''T'''emplate '''l'''ink. {{tlf|tl2}} is a [[w:Macro (computer science)|macro]] [[m:Help:template|template]] used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.
{{tlf|tl2}} differs from {{tlf|tl}} in that it displays with a wider, monospaced text style (like {{tlf|tlx}}) and also takes the named parameters {{para|sister}} and {{para|lang}} so that it may also be used to list and link templates on other English and non-English-language sister projects.
==Related template==
{{tl|tlx}} displays with the same enhanced presentation and can also expand several placeholder parameters to generate a sample template call.
== භාවිතය ==
: {{tlx|tl2|''template_name''}}
:: equivalent to {{tlf|tl{{!}}''template_name''}}
: {{tlx|tl2 |sister{{=}}''sister_id'' |''template_name''}}
:: to display a template from a sister project (e.g. {{tlf|tl2 {{!}}sister{{=}}V {{!}}''template_name''}} for Wikiversity)
: {{tlx|tl2 |lang{{=}}''lang_id'' |sister{{=}}''sister_id'' |''template_name''}}
:: to display a template from a sister project in another language (e.g. {{tlf|tl2 {{!}}lang{{=}}fr {{!}}sister{{=}}V {{!}}''template_name''}} for a template from the French Wikisource project)
== උදාහරණ ==
{| class=wikitable
! Code
! Result
|-
| <code><nowiki>{{tl|x0}}</nowiki></code>
| {{tl|x0}}
|-
| <code><nowiki>{{tl2|x1}}</nowiki></code>
| {{tl2|x1}}
|-
| <code><nowiki>{{tl2|sister=M|3x}}</nowiki></code>
| {{tl2|sister=M|3x}}
|-
| <code><nowiki>{{tl2|sister=wikibooks|lang=de|WP}}</nowiki></code>
| {{tl2|sister=wikibooks|lang=de|WP}}
|}
== අමතර අවධානයට ==
* {{tiw|tl2}}
* {{tiw|tl}}
* {{tiw|tlp}} to produce a [t]emplate [l]ink with single [p]arameter.
* {{tiw|tlx}} to produce a [t]emplate [l]ink with e[x]tended number of parameters.
* {{tiw|tlsp}} to produce a [t]emplate [l]ink that's [[Wikipedia:Substitution|[s]ubst:]]ituted, with a single [p]arameter.
* {{tiw|lts}}
* {{tiw|tlu}}, tl or tlp in any [[Wikipedia:Namespaces|namespace]].
* {{lcs|Internal template-link templates}}
{{Template-linking templates}}
<includeonly>{{Sandbox other||
<!----CATEGORIES BELOW THIS LINE, PLEASE:---->
[[Category:Internal template-link templates]]
[[Category:Interwiki link templates]]
[[Category:Wikitext typing-aid templates]]
}}</includeonly>
0ci0vztmv56a1idqmpzcxniryka7x7n
සැකිල්ල:Template link universal expanded/උපදෙස්
10
15311
37885
37171
2026-04-18T08:04:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37885
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
== භාවිතය ==
{{tlx|tlxu|fullpagename}}
{|class="wikitable"
| {{tlx|tlxu|User:Example/Talk message}} || {{tlxu|User:Example/Talk message}}
|-
| {{tlx|tlxu|Template_talk:tlxu}} || {{tlxu|Template_talk:tlxu}}
|-
| {{tlx|tlxu|Template talk:tlxu|param}} || {{tlxu|Template talk:tlxu|param}}
|-
| {{tlx|tlxu|fullpagename|1|2|3|4|5|6|7|8|9<nowiki>{{=}}</nowiki>10}} || {{tlxu|fullpagename|1|2|3|4|5|6|7|8|9{{=}}10}}
|-
| {{tlx|tlxu|fullpagename|1|2|3|4|5|6|7|8|9<nowiki>{{=}}</nowiki>10<nowiki>{{=}}</nowiki>more}} || {{tlxu|fullpagename|1|2|3|4|5|6|7|8|9{{=}}10{{=}}more}}
|-
| {{tlx|tlxu|fullpagename|param<nowiki>{{=}}</nowiki>value}} || {{tlxu|fullpagename|param{{=}}value}}
|}
''Up to 10 placeholders for parameters of the specified template''
This template is nearly identical to [[Template:Tlx]], except that it is intended for all [[Wikipedia:Namespace|namespace]] transclusions, and you can include parameters—as long as you use {{tlg|=}} signs or {{code|=}} in place of equal signs. For example, you can enter a subpage in your user space ({{tlxu|User:Example/Talk message|param1{{=}}y|param2|etc.}}) or in a WikiProject ({{tlxu|Wikipedia:WikiProject Songs/Unreferenced BLPs|param1{{=}}y|param2|etc.}}).
== අමතර අවධානයට ==
*{{tl|tl}} for full documentation
{{Tl-nav}}
<includeonly>{{Sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Internal template-link templates]]
}}</includeonly>
53c9z9lbzka9pfjffkyoez3p0vkvrkp
සැකිල්ල:Template link with parameters/උපදෙස්
10
15313
37886
37175
2026-04-18T08:04:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37886
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{high-use| 69435 }}
{{template shortcut|tlp}}
This is the '''template link with parameters''' (or {{tlp|tlp}}) template.
It can be used in documentation and talk page discussions to show how a template name would be used in code.
Here is how this template looks. Code to the left and actual rendering to the right:
: {{tlc|tlp|name|parameters}} = {{tlp|name|parameters}}
Features of {{tlp|tlp}}:
* It shows a template name with a link to that template.
* It shows up to eight parameters.
* It also shows empty parameters. (See examples below.)
* It prevents [[line wrap]]s in its output.
* It uses normal text style. ({{tlx|tlx}}, for instance, uses {{tag|code}} text style.)
This template belongs to a whole family of similar templates. See the [[#See also|see also]] section below for some of them. For instance, when writing documentation you might want to avoid a lot of unnecessary links, since it decreases readability – i.e. on the first occurrence of a template name, use {{tl|tl}}, {{tlp|tlp}} or {{Tlx|Tlx}} and thereafter use {{tlf|tlf}}, {{tlc|tlc}} or {{tld|tld}}.
== උදාහරණ ==
{{Aligned table |cols=3 |class=wikitable |row1header=y
| Code | Output | Comments
| {{tlc|tlp}} | {{tlp}} | Shows its own syntax.
| {{tlc|tlp|name}} | {{tlp|name}} |
| {{tlc|tlp|name|first}} | {{tlp|name|first}} |
| {{tlc|tlp|name|first|last}} | {{tlp|name|first|last}} |
| {{tlc|tlp|name|a|b|c|d|e|<nowiki>f|g|h|i|</nowiki>j}} | {{tlp|name|a|b|c|d|e|f|g|h|i|j}} | Shows up to ''eight'' parameters. The rest are dropped.
| {{tlc|tlp|name||three|four}} | {{tlp|name||three|four}} | Also shows empty parameters.
| {{tlc|tlp|name||three|}} | {{tlp|name||three|}} | Even shows empty parameters that come at the end.
|row9style=color:red;
| {{tlc|tlp|name|3=first=a|4=last=b}}
| {{tlp|name|first=a|last=b}}
| Equal signs are a problem, but there are a couple ways to fix:
| {{tlc|tlp|name|3=2=first=a|4=3=last=b}}
| {{tlp|name|2=first=a|3=last=b}}
| Use numbered parameters to fix it. Here, parameter "{{para|2}}" is assigned the string "first{{=}}a". Start with #2, since "name" is already in the "{{para|1}}" slot. Note that ''all'' subsequent parameters after a numbered parameter ''must also'' be numbered.
| {{tlc|tlp|name|3=first<nowiki>{{=}}</nowiki>a|4=last<nowiki>{{=}}</nowiki>b}}
| {{tlp|name|first{{=}}a|last{{=}}b}}
| Or, simply use, "<nowiki>{{=}}</nowiki>", the equal-sign template, to "escape" the symbol.
| {{tlc|tlp|name|3=2=1=a|4=3=2=b}}
| {{tlp|name|2=1=a|3=2=b}}
| Both techniques also work with numbered positional parameters (e.g.: "{{para|1}}", "{{para|2}}").
|row13style=color:red;
| {{tlc|tlp|name|3=2=1=a|4=last<nowiki>{{=}}</nowiki>b}}
| {{tlp|name|<!--2=1=a|-->last{{=}}b}}
| The named parameter ("{{para|last}}") clobbered the prior one ("{{para|2}}"). Again, '''all''' subsequent parameters after a numbered parameter ''must also'' be numbered...
| {{tlc|tlp|name|3=2=1=a|4=3=last=b}}
| {{tlp|name|2=1=a|3=last=b}}
| ... but that's easy to fix, by adding the position number ("{{para|3}}") to the last parameter.
}}
== අමතර අවධානයට ==
* {{tl|tl7}}
{{Template-linking templates}}
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Internal template-link templates]]
[[Category:Typing-aid templates]]
}}</includeonly>
flve52bgco1rwedkzbu96mxxia18t34
සැකිල්ල:Fullurl/උපදෙස්
10
15331
37887
36985
2026-04-18T08:04:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37887
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-------------------------------------------------------------------
Place categories where indicated at the bottom of this page,
please; interwikis to Wikidata (see [[Wikipedia:Wikidata]]).
-------------------------------------------------------------------->
== භාවිතය ==
<nowiki>{{Fullurl|1=page|protocol=protocol|action=action}}</nowiki>
This page doubles for the magic word <code>[[:W:WP:PF#Paths|fullurl:]]</code> - if it is used as a template instead of as a magic word.
===Additional usage===
To create an HTML link to the current page. User with Subst: this link will not change if the text is moved or archived.
Example: To document text previously added to an archive which is being re-factored (with Subst:).
Example: To create a link to the current page which HTML scraper-mirrors may preserve.
Example: To create a base-link which can changed or extended to indicate sub-pages, alternative protocols or equivalent pages on other wikis.
* <code><nowiki>{{fullurl}}</nowiki></code> → {{fullurl}}
* <code><nowiki>{{fullurl|Main Page}}</nowiki></code> → {{fullurl|Main Page}}
<includeonly>{{Sandbox other||
<!-------------------------------------------------------------------
Categories below here, interwikis to Wikidata.
-------------------------------------------------------------------->
[[Category:Link templates]]
}}</includeonly>
ra9lgctmn6rkverj7hb18x6vts53rup
සැකිල්ල:උදවු ප්රවර්ගය/උපදෙස්
10
15382
37888
33691
2026-04-18T08:04:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37888
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This template is intended to be used at the top of categories that belong to the Wikipedia project (for example [[:ප්රවර්ගය:විකිපොත් පරිපාලනය]], see also [[Wikipedia:Avoid self-references]]).
{{namespace category}}
<includeonly>{{Sandbox other||
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[ප්රවර්ගය:ප්රවර්ග නාමාවකාශයේ සැකිලි]]
}}</includeonly>
nw9vnq4m65qqura65oew4kqw4jheen6
සැකිල්ල:Assistant/item/උපදෙස්
10
15406
37889
36750
2026-04-18T08:04:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37889
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
This template produces one item for the bulleted list of assistants at page [[{{SITENAME}}:Assistant]]. Provide as an unnamed template parameter the name of the assistant; for a global assistant, the namespace (<code>{{SITENAME}}:</code>) may be omitted. Optional named template parameter <code>pre</code> is listed before the item; optional named template parameter <code>post</code> is listed after the item.
{| class="wikitable"
|-
! markup !! produces
|-
| <code><nowiki>{{assistant/item|Wikinews:Assistant:Widget}}</nowiki></code> ||{{assistant/item|Wikinews:Assistant:Widget}}
|-
| <code><nowiki>{{assistant/item|Wikinews:Assistant:Breadboard|pre=before|post=after}}</nowiki></code>
| {{assistant/item|Wikinews:Assistant:Breadboard|pre=before|post=after}}
|}
=== අමතර අවධානයට ===
* {{tl|Assistant/item/doc editintro}}
* {{tl|Assistant/item/doc preload}}
* {{tl|ASSTROOTLINK}}
* {{tl|ASSTDOCLINK}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interactive assistants documentation| item]]
</includeonly>
g2kr3gpnhodpdn8uirrca9qnsl97upt
සැකිල්ල:Assistant/item/doc link/උපදෙස්
10
15412
37890
36749
2026-04-18T08:05:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37890
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
This template provides a link to the documentation page of an [[{{SITENAME}}:assistant|assistant]] with given name. If the documentation page does not exist, offers to create it. Optional second and third parameters are the link label when the documentation page exists, and when it does not exist; if omitted, these parameters default to the first parameter. If the documentation page does exist, optional parameter <code><nowiki>{{{anchor}}}</nowiki></code> is an anchor to link to within the documentation page.
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
8m7yifqkfxas14emyqjg38ds1a13zre
සැකිල්ල:ASSTDOCLINK/t/උපදෙස්
10
15414
37891
36768
2026-04-18T08:05:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37891
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This subtemplate of {{tl|ASSTDOCLINK}} derives the result from parse information.
=== භාවිතය ===
Pass (the name of) this subtemplate as parameter <code>t</code> to {{tl|ASST}}.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Can be substituted as well as transcluded.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
ofi4hzwi4o9xcyhz1gyjkvus4bt73vj
සැකිල්ල:ASSTDOC/t/උපදෙස්
10
15416
37892
36766
2026-04-18T08:05:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37892
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This subtemplate of {{tl|ASSTDOC}} derives the result from parse information.
=== භාවිතය ===
Pass (the name of) this subtemplate as parameter <code>t</code> to {{tl|ASST}}.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Can be substituted as well as transcluded.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
1n4p40n51o0eperpsaa9n4aeyfriinm
සැකිල්ල:ASSTTEXT/t/උපදෙස්
10
15420
37893
36774
2026-04-18T08:05:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37893
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This subtemplate of {{tl|ASSTTEXT}} derives the result from parse information.
=== භාවිතය ===
Pass (the name of) this subtemplate as parameter <code>t</code> to {{tl|ASST}}.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Can be substituted as well as transcluded.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
3w516hokel5x1cguaq4w4tmm6ohou08
සැකිල්ල:AssistantCat/t/උපදෙස්
10
15422
37894
36753
2026-04-18T08:05:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37894
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This subtemplate of {{tl|AssistantCat}} derives the result from parse information.
=== භාවිතය ===
Pass (the name of) this subtemplate as parameter <code>t</code> to {{tl|ASST}}.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Uses {{tl|ASSTCATEGORY/t}}, {{tl|ASST/trim}}, and {{tl|ASSTCATEGORY/parent cat}}. Can be substituted as well as transcluded.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
4cxbrrrss31j7t4ipt1qhw39aadgatd
සැකිල්ල:AssistantCat/case/උපදෙස්
10
15428
37895
36751
2026-04-18T08:05:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37895
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Please add categories and interwikis to the bottom of this page, and also add interwikis to Wikidata. -->
This subtemplate of {{tl|AssistantCat}} generates a row in a table of examples. Meant to be used at option for documentation of other related templates, not only for documentation of {{tl|AssistantCat}}.
=== භාවිතය ===
Simply call this subtemplate to generate a row in a table of examples, calling the current base template (i.e., current page name truncating from the first slash). The first unnamed parameter and any named parameters are passed through to the template being tested, via [[Module:TScope#drop]].
=== අමතර අවධානයට ===
* {{tl|AssistantCat/examples}}
<includeonly>
<!-- Categories and interwikis go here, and interwikis also go on Wikidata. -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
485lrni7r8vlxjq11h6gqt120qr7w5e
සැකිල්ල:AssistantCat/උපදෙස්
10
15430
37896
36754
2026-04-18T08:06:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37896
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template categorizes a page belonging to an [[{{SITENAME}}:Assistant|interactive assistant]], assuming certain naming conventions.
__NOTOC__
=== භාවිතය ===
Simply place <code>{{(*|2}}{{PAGENAME:{{OBJECTPAGENAME}}}}{{*)|2}}</code> on a page to categorize it.
Optionally specify a page as a parameter to base categorization on a different page than the current one; or the name of a global assistant, or parent and name of a local assistant (see parameter examples at {{tl|ASST}}).
This template can be substituted (via <code>subst:</code>) as well as transcluded.
=== උදාහරණ ===
{{AssistantCat/examples}}
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Calls {{tl|ASST}} with {{tl|AssistantCat/t}}.
=== අමතර අවධානයට ===
* {{tl|AssistantCat/examples}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interactive assistants documentation| {{PAGENAME}}]]
[[Category:Magic word templates|{{PAGENAME}}]]
</includeonly>
lkqzsz26cu7n26pt5iqmxk0628gsc00
සැකිල්ල:AssistantCat/examples/උපදෙස්
10
15434
37897
36752
2026-04-18T08:06:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37897
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Please add categories and interwikis to the bottom of this page, and also add interwikis to Wikidata. -->
This subtemplate of {{tl|AssistantCat}} contains a table of examples. Meant to be used at option for documentation of other related templates, not only for documentation of {{tl|AssistantCat}}.
=== භාවිතය ===
Simply call this subtemplate to generate a table of examples, calling the template named by {{tl|OBJECTPAGENAME}}. Additional rows may be specified through optional parameter <code>more</code>.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Uses {{tl|AssistantCat/case}} to generate each row.
<includeonly>
<!-- Categories and interwikis go here, and interwikis also go on Wikidata. -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
0zfbzmgopabeigcdbopv9jcbi3vo0ov
සැකිල්ල:ASSTCATEGORY/උපදෙස්
10
15436
37898
36757
2026-04-18T08:06:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37898
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template returns the full name of the collective category for the interactive assistant to which the page it's used on belongs, assuming certain naming conventions.
=== භාවිතය ===
Simply place <code>{{(*|2}}{{PAGENAME:{{OBJECTPAGENAME}}}}{{*)|2}}</code> on a page to get the output.
Optionally specify a page as a parameter to see the output for a different page than the current one; or the name of a global assistant, or parent and name of a local assistant (see parameter examples at {{tl|ASST}}).
This template can be substituted (via <code>subst:</code>) as well as transcluded.
=== උදාහරණ ===
{{AssistantCat/examples}}
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Calls {{tl|ASST}} with [[{{OBJECTPAGENAME}}/t|{{PAGENAME:{{OBJECTPAGENAME}}}}/t]].
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interactive assistants documentation| {{PAGENAME}}]]
[[Category:Magic word templates|{{PAGENAME}}]]
</includeonly>
kbggulf00quxb2wkas1e6co1k5gewa9
සැකිල්ල:ASSTCATEGORY/parent cat/උපදෙස්
10
15440
37899
36755
2026-04-18T08:06:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37899
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This subtemplate of {{tl|ASSTCATEGORY}} names the general category, if any, associated with the parent of a local assistant. Meant to be used at option by other templates, not just by {{tl|ASSTCATEGORY}} and its subtemplates.
=== භාවිතය ===
Pass the name of the parent page as unnamed parameter. The result is blank if the parent page has no associated general category. If provided, the result omits the <code>Category:</code> prefix.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
This subtemplate is meant to be customized for different projects.
If this subtemplate returns non-blank, it has, at this writing, two effects on the local assistant category: renaming it (per {{tl|ASSTCATEGORY}}), and making it a subcategory of the parent category (per {{tl|AssistantCat}}).
For example, as of this writing, on English Wikibooks all the pages associated with a book {{nowrap|<code>Transdimensional Engineering</code>}} would be arranged under {{nowrap|<code>Category:Book:Transdimensional Engineering</code>}}. So an assistant {{nowrap|<code>Transdimensional Engineering/Assistant:Console</code>}} would have associated {{nowrap|<code>Category:Book:Transdimensional Engineering/Assistant:Console</code>}} (rather than the same without the <code>Book:</code> prefix), and the assistant category would itself belong to the book category (as well as to [[:Category:Interactive assistants]]).
Customizations should prefix any template calls or magic words with <code><nowiki>safesubst:<noinclude/></nowiki></code>, so the subtemplate can be substituted as well as transcluded.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}]]
[[Category:Templates for project-specific customization]]
</includeonly>
rsv1yu80anshbxb8psknpds7456vq9c
සැකිල්ල:ASSTCATEGORY/t/උපදෙස්
10
15444
37900
36756
2026-04-18T08:06:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37900
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This subtemplate of {{tl|ASSTCATEGORY}} derives the result from parse information.
=== භාවිතය ===
Pass (the name of) this subtemplate as parameter <code>t</code> to {{tl|ASST}}.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
For local assistants, this subtemplate consults {{tl|ASSTCATEGORY/parent cat}}. Can be substituted as well as transcluded.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
q33lqd78qsb00pdnw61i0wzqeji8t0r
සැකිල්ල:ASSTROOTLINK/උපදෙස්
10
15446
37901
36771
2026-04-18T08:06:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37901
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template returns a link to the main page of the interactive assistant to which the page it's used on belongs, assuming certain naming conventions.
=== භාවිතය ===
Simply place <code>{{(*|2}}{{PAGENAME:{{OBJECTPAGENAME}}}}{{*)|2}}</code> on a page to get the output.
Optional parameters:
* ''unnamed'' — page name to use instead of the name of the transcluding page. Alternatively, name of a global assistant, or parent and name of a local assistant (cf. {{tl|ASST}}).
* <code>anchor</code> — anchor when linking to the main page for the assistant.
* <code>editintro</code> — used for page-creation link if the main page for the assistant does not exist.
* <code>preload</code> — used for page-creation link if the main page for the assistant does not exist.
* <code>label</code> — label for the link instead of the name of the assistant (''name'' being the field after <code>Assistant:</code>).
If <code>label</code> is non-blank, the <code>parent</code> (as provided by {{tl|ASST}}) is omitted.
If <code>editintro</code> or <code>preload</code> is non-blank, and the target doesn't exist, the label has <code>create </code> pefixed to it.
This template can be substituted (via <code>subst:</code>) as well as transcluded.
=== උදාහරණ ===
{{AssistantCat/examples|more=
{{AssistantCat/case|{{SITENAME}}:Assistant:Context|anchor=whitelist}}
{{AssistantCat/case|{{SITENAME}}:Reference desk/Assistant:Request|label=assistant}}
{{AssistantCat/case|Garthok/Assistant:Narful|preload=Template:Garthok/Assistant:Narful/preload|editintro=Template:Garthok/Assistant/Narful/editintro}}
}}
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Calls {{tl|ASST}} with [[{{OBJECTPAGENAME}}/t|{{PAGENAME:{{OBJECTPAGENAME}}}}/t]].
== අමතර අවධානයට ==
* {{tl|ASSTDOCLINK}}
* {{tl|ASSTTEXT}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interactive assistants documentation| {{PAGENAME}}]]
[[Category:Magic word templates|{{PAGENAME}}]]
</includeonly>
lh85ymxm7yq6j1960qdx6kzr9jseyzc
සැකිල්ල:ASSTROOTLINK/t/උපදෙස්
10
15448
37902
36770
2026-04-18T08:07:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37902
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This subtemplate of {{tl|ASSTROOTLINK}} derives the result from parse information.
=== භාවිතය ===
Pass (the name of) this subtemplate as parameter <code>t</code> to {{tl|ASST}}.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Can be substituted as well as transcluded.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
094g55izqohti11pjbn3qhdue3jnsfh
සැකිල්ල:ASSTDOC/උපදෙස්
10
15450
37903
36767
2026-04-18T08:07:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37903
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template returns the name of the main documentation page for the interactive assistant to which the page it's used on belongs, assuming certain naming conventions.
=== භාවිතය ===
Simply place <code>{{(*|2}}{{PAGENAME:{{OBJECTPAGENAME}}}}{{*)|2}}</code> on a page to get the output.
Optionally specify an anchor within documentation page, as parameter <code>anchor</code>.
Optionally specify a page as unnamed parameter to see the output for a different page than the current one; or the name of a global assistant, or parent and name of a local assistant (see parameter examples at {{tl|ASST}}).
This template can be substituted (via <code>subst:</code>) as well as transcluded.
=== උදාහරණ ===
{{AssistantCat/examples}}
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Calls {{tl|ASST}} with [[{{OBJECTPAGENAME}}/t|{{PAGENAME:{{OBJECTPAGENAME}}}}/t]]. Given an <code>anchor</code>, <code>anchorencode</code>s it.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interactive assistants documentation| {{PAGENAME}}]]
[[Category:Magic word templates|{{PAGENAME}}]]
</includeonly>
2hyvgmvu5i5g2ng7xt53nnl8tmluoo6
සැකිල්ල:ASSTDOCLINK/උපදෙස්
10
15452
37904
36769
2026-04-18T08:07:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37904
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template returns a link to the main documentation page of the [[{{SITENAME}}:Assistant|interactive assistant]] to which the page it's used on belongs, assuming certain naming conventions.
=== භාවිතය ===
Simply place <code>{{(*|2}}{{PAGENAME:{{OBJECTPAGENAME}}}}{{*)|2}}</code> on a page to get the output. By default, when called from any subsidiary page of the assistant, the link is to the section about that subsidiary page on the main documentation page, while when called from the main page of the assistant the link is to the main documentation page as a whole.
Optional parameters:
* ''unnamed'' — page name to use instead of the name of the transcluding page. Alternatively, name of a global assistant, or parent and name of a local assistant (cf. {{tl|ASST}}).
* <code>bold</code> — if non-blank, puts the assistant name (but not the parent) in boldface.
* <code>anchor</code> — anchor when linking to the main documentation page for the assistant, overriding the default behavior. See {{tl|ASSTDOCHEADING}}.
* <code>label</code> — label for the link instead of the name of the assistant (''name'' being the field after <code>Assistant:</code>).
* <code>editintro</code> — used for page-creation list if the main documentation page for the assistant does not exist.
* <code>preload</code> — used for page-creation list if the main documentation page for the assistant does not exist.
* <code>sec</code> — if non-blank, and no <code>label</code> is specified, the part of the page name after the assistant name is used for the label; see {{tl|ASSTSUB}}.
If <code>label</code> is non-blank, the <code>parent</code> (as provided by {{tl|ASST}}) is omitted.
If <code>editintro</code> or <code>preload</code> is non-blank, and the target doesn't exist, the label has <code>create </code> pefixed to it.
This template can be substituted (via <code>subst:</code>) as well as transcluded.
=== උදාහරණ ===
{{AssistantCat/examples|more=
{{AssistantCat/case|{{SITENAME}}:Assistant:Context|anchor=whitelist|bold=x}}
{{AssistantCat/case|{{SITENAME}}:Reference desk/Assistant:Request|label=assistant}}
{{AssistantCat/case|{{SITENAME}}:Reference desk/Assistant:Request/start|sec=commit|bold=x}}
{{AssistantCat/case|Garthok/Assistant:Narful|preload=Template:Garthok/Assistant:Narful/preload|editintro=Template:Garthok/Assistant/Narful/editintro|bold=x}}
}}
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Calls {{tl|ASST}} with [[{{OBJECTPAGENAME}}/t|{{PAGENAME:{{OBJECTPAGENAME}}}}/t]].
== අමතර අවධානයට ==
* {{tl|ASSTROOTLINK}}
* {{tl|ASSTTEXT}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interactive assistants documentation| {{PAGENAME}}]]
[[Category:Magic word templates|{{PAGENAME}}]]
</includeonly>
lsztcwgc16hossqzvwhmh1lqw98cf05
සැකිල්ල:ASSTTEXT/උපදෙස්
10
15454
37905
36775
2026-04-18T08:07:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37905
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template identifies the interactive assistant to which the page it's used on belongs, assuming certain naming conventions.
=== භාවිතය ===
Simply place <code>{{(*|2}}{{PAGENAME:{{OBJECTPAGENAME}}}}{{*)|2}}</code> on a page to get the output.
Optional parameters:
* ''unnamed'' — page name to use instead of the name of the transcluding page. Alternatively, name of a global assistant, or parent and name of a local assistant (cf. {{tl|ASST}}).
* <code>bold</code> — if non-blank, puts the assistant name (but not the parent) in boldface.
* <code>nolink</code> — if non-blank, don't link the assistant name to the main documentation page for the assistant.
* <code>anchor</code> — anchor when linking to the main documentation page for the assistant.
* <code>editintro</code> — used for page-creation list if the main documentation page for the assistant does not exist.
* <code>preload</code> — used for page-creation list if the main documentation page for the assistant does not exist.
This template can be substituted (via <code>subst:</code>) as well as transcluded.
=== උදාහරණ ===
{{AssistantCat/examples|more=
{{AssistantCat/case|{{SITENAME}}:Assistant:Context|anchor=whitelist|bold=x}}
{{AssistantCat/case|{{SITENAME}}:Assistant:Context|nolink=x|bold=x}}
{{AssistantCat/case|{{SITENAME}}:Reference desk/Assistant:Request|label=assistant|bold=x}}
{{AssistantCat/case|Garthok/Assistant:Narful|preload=Template:Garthok/Assistant:Narful/preload|editintro=Template:Garthok/Assistant/Narful/editintro}}
}}
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Calls {{tl|ASST}} with [[{{OBJECTPAGENAME}}/t|{{PAGENAME:{{OBJECTPAGENAME}}}}/t]].
== අමතර අවධානයට ==
* {{tl|ASSTROOTLINK}}
* {{tl|ASSTDOCLINK}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interactive assistants documentation| {{PAGENAME}}]]
[[Category:Magic word templates|{{PAGENAME}}]]
</includeonly>
rdiaag2cs3gd291dhc2ym7omzgts3w5
සැකිල්ල:Assistant category header/උපදෙස්
10
15564
37906
36732
2026-04-18T08:07:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37906
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Use this template on either an ''assistant category'', containing the non-template pages of an assistant, or on a subcategory thereof.
Specialized subcategories should generally use customized text rather than this template (see, for example, [[:{{ASSTCATEGORY|Context}}/Request pages]]).
=== අමතර අවධානයට ===
* [[:Category:Interactive assistants]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interactive assistants documentation| {{PAGENAME}}]]
</includeonly>
ouqwghllszdwad2o3phd3eim1zsvhvt
සැකිල්ල:ASSTTEMPLATE/උපදෙස්
10
15579
37907
36773
2026-04-18T08:07:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37907
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template returns the basic name for templates of the interactive assistant to which the page it's used on belongs, assuming certain naming conventions.
=== භාවිතය ===
Simply place <code>{{(*|2}}{{PAGENAME:{{OBJECTPAGENAME}}}}{{*)|2}}</code> on a page to get the output.
Optionally specify a page as a parameter to see the output for a different page than the current one; or the name of a global assistant, or parent and name of a local assistant (see parameter examples at {{tl|ASST}}).
This template can be substituted (via <code>subst:</code>) as well as transcluded.
=== උදාහරණ ===
{{AssistantCat/examples}}
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Calls {{tl|ASST}} with [[{{OBJECTPAGENAME}}/t|{{PAGENAME:{{OBJECTPAGENAME}}}}/t]].
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interactive assistants documentation| {{PAGENAME}}]]
[[Category:Magic word templates|{{PAGENAME}}]]
</includeonly>
p5af30yl2m2e0imz27dqxs37ngygpro
සැකිල්ල:ASSTTEMPLATE/t/උපදෙස්
10
15583
37908
36772
2026-04-18T08:08:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37908
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{possible-risk}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This subtemplate of {{tl|ASSTTEMPLATE}} derives the result from parse information.
=== භාවිතය ===
Pass (the name of) this subtemplate as parameter <code>t</code> to {{tl|ASST}}.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Can be substituted as well as transcluded.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}]]
</includeonly>
b9sp73fouh7hec0hg8txu42pncg602p
සැකිල්ල:Dialog/action page/උපදෙස්
10
15587
37909
36890
2026-04-18T08:08:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37909
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
This template is used both on a [[:Category:Dialog actions|dialog action]] page, and on the documentation page of a dialog action page.
* <p>On a dialog action page, place this template within an element that is removed by the action when invoked. In case the action is invoked the template invites the user to be patient while the action loads. In case the action page is being viewed rather than invoked, the template provides a link to the action page's documentation page or, if the action does not yet have a documentation page, offers to create a documentation page using an appropriate template.</p><p> Optionally, an unnamed parameter may specify a notice to be displayed below the standard 'please wait' message.</p>
* On the documentation page of a dialog action page —whose name suffixes <code>/doc</code> to the name of the action page— place this template at the top of the page.
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referencing, this template]]
* {{tl|dialog/action page/doc preload}}
* {{tl|dialog/action page/test preload}}
* {{tl|dialog/formatting template}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog action documentation|{{#titleparts:{{FULLPAGENAME}}||2}}]]
</includeonly>
etrwdfesrtcjpzeqp4b2ox8k5ud6ko9
සැකිල්ල:Dialog/action page/test doclink/උපදෙස්
10
15597
37910
36886
2026-04-18T08:08:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37910
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Call this template in the ''See also'' section of a [[:Category:Dialog action documentation|dialog action documentation page]] to generate a link to the action's testing page or, if the action doesn't have a testing page, a link to create one.
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referencing, this page]]
* [[Template:Dialog/action page/test preload]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog action documentation|{{#titleparts:{{FULLPAGENAME}}||2}}]]
</includeonly>
gqe2yfxy2lfgx4vbk6kikebx5fp7f70
සැකිල්ල:Dialog/action page/test entry/උපදෙස්
10
15601
37911
36889
2026-04-18T08:08:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37911
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Generates one row in a standard-format table of tests of a dialog action.
First unnamed parameter is the name of the start page of the test. Second unnamed parameter, which may be omitted but omission is not recommended, describes the test, in the second column of the table. Optional parameter <code>test</code> names am experimental version of the action to use in the test.
If the start page of the test exists, a button is provided to start the test. If the start page of the test does not exist, instead a button is provided to create it.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
It's important the button to start a test is '''''not delegable''''', to avoid imposing spurious state on the test from previous dialog; and when the [[{{SITENAME}}:Dialog/do/doc|do]] action itself is being tested, the button uses parameter <code>rescript</code> to purge cached old versions of functions.
=== අමතර අවධානයට ===
* {{tl|dialog/action page/test entry/editintro}}
* {{tl|dialog/action page/test entry/preload}}
* {{tl|dialog/action page/test preload}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog action documentation|{{#titleparts:{{FULLPAGENAME}}||2}}]]
</includeonly>
t9sb4lrb1dx17hh77hkl1rteb22o3gr
සැකිල්ල:Dialog/action page/test entry/footer/core/උපදෙස්
10
15609
37912
36887
2026-04-18T08:08:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37912
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
This is a [[:{{dialog/subtemplates cat}}|subtemplate]] of {{tl|dialog/action page/test entry/footer}}. Required parameter <code>action</code> should be the page name of the [[:Category:Dialog actions|action]] (such as <code>{{SITENAME}}:Dialog/do</code>, <code>{{SITENAME}}:Dialog</code>, etc.)
=== අමතර අවධානයට ===
* {{tl|dialog/action page/test entry/footer}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}|{{#titleparts:{{FULLPAGENAME}}||2}}]]
</includeonly>
rwdd14rh9wkz20okagazsrqzawi8bwa
සැකිල්ල:Dialog/action page/test entry/footer/උපදෙස්
10
15611
37913
36888
2026-04-18T08:08:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37913
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Place this template at the bottom of any page used to test a [[:Category:Dialog actions|dialog action]]. Pass parameter <code>test</code> through to the template, using markup {{nowrap|<code><nowiki>|test={{{test|}}}</nowiki></code>}}.
Optional parameter <code>action</code> names the test action, either the full name of the action page or to be prefixed by <code>{{SITENAME}}:Dialog/</code>. If <code>action</code> is unspecified (or blank), and the page is a subpage of an action page, that action is construed to be the action tested.
=== උදාහරණ ===
{{ {{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|{{#titleparts:{{PAGENAME}}|-1}}|{{PAGENAME}}}}|action=do|nocat=1}}
{{ {{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|{{#titleparts:{{PAGENAME}}|-1}}|{{PAGENAME}}}}|action=do|test=Wikinews:Dialog/do|nocat=1}}
=== අභ්යන්තර ක්රියාකාරීත්වය ===
The template itself handles only the logic of determining what action is tested; what to display is handled by a [[:Category:Subtemplates|subtemplate]].
=== අමතර අවධානයට ===
* {{tl|dialog/action page/test entry/footer/core}}
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referencing, this template]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog action documentation|{{#titleparts:{{FULLPAGENAME}}||2}}]]
</includeonly>
bw8whnkwby053y0ybjt1f5uoulkax5d
සැකිල්ල:Dialog/button/1-hid/උපදෙස්
10
15621
37914
36891
2026-04-18T08:09:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37914
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
{{high-risk|over 1000}}
This is a subtemplate of {{tl|dialog/button}}. Given the name and provided literal value of a single dialog parameter for the button, produces the hidden infrastructure for that parameter. Uses {{tl|evalx}}.
<!--
=== අමතර අවධානයට ===
-->
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}|{{#titleparts:{{PAGENAME}}||2}}]]
</includeonly>
dubdwswrlvray1tidgnqxojns2ngnr8
සැකිල්ල:Dialog/button/1-nam/උපදෙස්
10
15625
37915
36897
2026-04-18T08:09:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37915
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
{{high-risk|over 1000}}
This is a subtemplate of {{tl|dialog/button}}. Given the specification of a single dialog parameter for the button, it determines whether a literal value is provided for the parameter (that is, whether the spec contains a double-colon), and if so, extracts the name of the parameter for subsequent use. If no literal value is provided, the template returns the empty string. Uses {{tl|evalx}}.
<!--
=== අමතර අවධානයට ===
-->
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}|{{#titleparts:{{PAGENAME}}||2}}]]
</includeonly>
qe1fot0y9youa8amgym98frzx8kad6w
සැකිල්ල:Dialog/button/1-val/උපදෙස්
10
15629
37916
36892
2026-04-18T08:09:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37916
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
{{possible-risk}}
This is a subtemplate of {{tl|dialog/button}}. Given the specification of a single dialog parameter for the button, it extracts the literal value provided for the parameter, if any. Uses {{tl|evalx}}.
== අභ්යන්තර ක්රියාකාරීත්වය ==
When a template returns a string starting with colon, as this subtemplate is sometimes ordinarily expected to do, the wiki platform prefixes a linebreak to it. Functions within a [[Module:Wikilisp|Wikilisp]] expression are not subject to this limitation since the entire Wikilisp expression is within a single template call; the result from this template can therefore be renormalized by Wikilisp function <code>trim</code>, stripping off the prefixed linebreak, but must then be further processed within the Wikilisp expression to avoid re-prefixing by the wiki platform.
<!--
=== අමතර අවධානයට ===
-->
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}|{{#titleparts:{{PAGENAME}}||2}}]]
</includeonly>
mf53eft9xpmjdcaao2j2w98sfuvqn7g
සැකිල්ල:Dialog/button/1-vis/උපදෙස්
10
15633
37917
36893
2026-04-18T08:09:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37917
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
{{high-risk|over 800}}
This is a subtemplate of {{tl|dialog/button}}. Given the specification of a single dialog parameter for the button, and the output of {{tl|dialog/button/1-nam}} on that spec, produces the internal spec of that parameter for integration by {{tl|dialog/button/visible}}. Uses {{tl|evalx}}.
<!--
=== අමතර අවධානයට ===
-->
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}|{{#titleparts:{{PAGENAME}}||2}}]]
</includeonly>
72jjjlfze75qs67qhud6y33kvs5rfvl
සැකිල්ල:Dialog/button/core/උපදෙස්
10
15637
37918
36894
2026-04-18T08:09:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37918
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
{{high-risk|over 1000}}
This is a subtemplate of {{tl|dialog/button}}. It processes template parameter <code>echo</code>, and delegates all further operations of the template to {{tl|dialog/button/visible}} for a visible button and {{tl|dialog/button/hidden}} for the hidden infrastructure that accompanies the button if any of its parameters are specified with literal values.
<!--
=== අමතර අවධානයට ===
-->
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}|{{#titleparts:{{PAGENAME}}||2}}]]
</includeonly>
87o1l5jrndwhfrusmzhbz2it4cyta2b
සැකිල්ල:Dialog/button/hidden/උපදෙස්
10
15641
37919
36898
2026-04-18T08:09:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37919
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
{{high-risk|over 1000}}
This is a subtemplate of {{tl|dialog/button}}. It invokes {{tl|dialog/button/1-val}} to extract each provided dialog-parameter literal value, and passes the extracted value on to {{tl|dialog/button/1-hid}} to generate the hidden infrastructure for that dialog parameter.
<!--
=== අමතර අවධානයට ===
-->
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}|{{#titleparts:{{PAGENAME}}||2}}]]
</includeonly>
jbklji52btjctfgn0ogdxfe35nbu8ul
සැකිල්ල:Dialog/button/visible/උපදෙස්
10
15645
37920
36899
2026-04-18T08:10:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37920
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
{{high-risk|over 1000}}
This is a subtemplate of {{tl|dialog/button}}. It produces a visible button, setting up the overall framework of the html code, and invoking {{tl|dialog/button/1-vis}} to produce the internal specification for each dialog parameter. Associated hidden infrastructure is generated separately by {{tl|dialog/button/hidden}}.
<!--
=== අමතර අවධානයට ===
-->
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[{{dialog/subtemplates cat}}|{{#titleparts:{{PAGENAME}}||2}}]]
</includeonly>
tqeuf5gw93odnyf18d2yctbu739uba8
සැකිල්ල:Dialog/confirm edit/උපදෙස්
10
15649
37921
36902
2026-04-18T08:10:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37921
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{dialog/formatting template}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Placing this template on an [[:Category:Dialog edit forms|dialog edit form]] indicates, when the form mediates dialog action [[{{SITENAME}}:Dialog/do/doc|do]] verb [[{{SITENAME}}:Dialog/do/doc#Verb: edit|edit]], that the user should be asked for confirmation before proceeding with the action. The question to ask for confirmation is provided as an unnamed templated parameter; if not provided, a default question is asked; as of this writing, {{nowrap|<code>Edit page?</code>}}. If the user cancels rather than confirming, dialog attempts to {{nowrap|[[Mediawiki talk:Dialog/receive#Rollback|roll back]]}} to the dialog state from which the action request was made; if that can't be done, an error panel is displayed explaining the user's options for what to do next.
The {{tl|dialog/confirm edit}} template call must appear on the form page itself, and must also still be present on the page after noinclude template-expansion of the form. Thus, confirmation may be conditional on logic on the form, determined at expansion time, but arbitrary templates used on the form cannot impose confirmation if it was not provided for by the form itself.
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* {{tl|dialog/confirm view}}
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog behavior templates|confirm edit]]
</includeonly>
s20xj709fkf3j5brs078d27ya4npp82
සැකිල්ල:Dialog/confirm view/උපදෙස්
10
15653
37922
36903
2026-04-18T08:10:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37922
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{dialog/formatting template}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Placing this template on a [[Help:dialog|dialog]] page indicates, when attempting to view the dialog page via dialog action [[{{SITENAME}}:Dialog/do/doc|do]] verb [[{{SITENAME}}:Dialog/do/doc#Verb: view|view]], that the user should be asked for confirmation before proceeding with the action. The question to ask for confirmation is provided as an unnamed templated parameter; if not provided, a default question is asked; as of this writing, {{nowrap|<code>View page?</code>}}. If the user cancels rather than confirming, dialog attempts to {{nowrap|[[Mediawiki talk:Dialog/receive#Rollback|roll back]]}} to the dialog state from which the action request was made; if that can't be done, an error panel is displayed explaining the user's options for what to do next.
The {{tl|dialog/confirm view}} template call must appear on the accessed page itself, and must also still be present on the page after template-expansion of the page. Thus, confirmation may be conditional on logic on the page, determined at expansion time, but arbitrary templates used on the dialog page cannot impose confirmation if it was not provided for by the dialog page itself.
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* {{tl|dialog/confirm edit}}
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog behavior templates|confirm view]]
</includeonly>
2a1l8uv1b0x1djko31xlyb0y9b58t0p
සැකිල්ල:Dialog/documentation/උපදෙස්
10
15657
37923
36904
2026-04-18T08:10:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37923
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
If a page contains interactive dialog that should be documented, and it isn't part of an [[WN:assistant|assistant]], place this template at the '''bottom''' of the dialog page, and at the '''top''' of the documenting page.
The template determines which sort of page it's on by checking to see if the current page name ends with <code>/doc</code>. To override this determination, specify a non-blank parameter <code>dialog</code>; if <code>dialog=no</code>, the page is treated as documentation; if <code>dialog</code> has any other non-blank value, the page is treated as dialog.
Ordinarily, the template assumes the name of the documentation page suffixes <code>/doc</code> to the name of the dialog page. To override this assumption on the dialog page, provide an unnamed parameter naming the documentation page. To override this assumption on the documentation page, provide one or two unnamed parameters: one named parameter names the dialog page; two ''non-blank'' parameters are the dialog page name and a label for the link; and a blank first parameter followed by a non-blank second parameter produce an unlinked description of the dialog.
=== උදාහරණ ===
==== On a dialog page ====
: <code><nowiki>{{dialog/documentation|foo}}</nowiki></code>
{{dialog/documentation|foo|nocat=1|dialog=yes}}
: <code><nowiki>{{dialog/documentation|foo|bar}}</nowiki></code>
{{dialog/documentation|foo|bar|nocat=1|dialog=yes}}
: <code><nowiki>{{dialog/documentation||bar}}</nowiki></code>
{{dialog/documentation||bar|nocat=1|dialog=yes}}
==== On a documentation page ====
: <code><nowiki>{{dialog/documentation|foo}}</nowiki></code>
{{dialog/documentation|foo|nocat=1|dialog=no}}
: <code><nowiki>{{dialog/documentation|foo|bar}}</nowiki></code>
{{dialog/documentation|foo|bar|nocat=1|dialog=no}}
: <code><nowiki>{{dialog/documentation||bar}}</nowiki></code>
{{dialog/documentation||bar|nocat=1|dialog=no}}
==== Default on the current page ====
By default the template would treat this page as a {{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|documentation|dialog}}}} page.
: <code><nowiki>{{dialog/documentation|foo}}</nowiki></code>
{{dialog/documentation|foo|nocat=1}}
: <code><nowiki>{{dialog/documentation|foo|bar}}</nowiki></code>
{{dialog/documentation|foo|bar|nocat=1}}
: <code><nowiki>{{dialog/documentation||bar}}</nowiki></code>
{{dialog/documentation||bar|nocat=1}}
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referencing, this template]]
* [[Template:Dialog/documentation/preload]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog documentation| documentation]]
</includeonly>
1mqhun0vxipwncncl9ckn1bli1s9ybv
සැකිල්ල:Dialog/edit/උපදෙස්
10
15663
37924
36906
2026-04-18T08:10:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37924
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
This template sets up a [[Template:Dialog/button|button]] to perform an [[{{SITENAME}}:Dialog/do/doc#Verb: edit|edit]] mediated by a given [[:Category:Dialog edit forms|form]], via action <code>[[{{SITENAME}}:Dialog/do|do]]</code>.
=== භාවිතය ===
Parameters:
* <code>form</code> — required — the name of the mediating form page for the edit, used as the <code>form</code> dialog parameter to the <code>edit</code> verb of the <code>do</code> action.
* <code>label</code> — optional — the text label on the button. If omitted, defaults to <code>edit</code>.
* unnamed parameters — mostly optional — dialog parameters passed to the do action when the button is clicked; as with the unnamed template parameters to {{tl|dialog/button}}, but currently only up to thirty (two fewer than supported by the other template). The <code>edit</code> verb requires a dialog parameter <tt>subject</tt>.
A second, [[{{SITENAME}}:Dialog/echo/doc|echo]] button can be provided, by specifying non-blank template parameter <code>echo</code>; the same dialog parameters are passed to the <code>echo</code> action as to the <code>do</code> action, which may aid dialog debugging.
Non-blank template parameter <code>delegable</code> indicates the action of the button may be delegated; delegation is not always possible, and even when possible, the parameter permits it rather than requiring it.
Template parameter <code>test</code> may name an action page in userspace to use instead of <code>do</code>. Action pages in userspace are restricted to use by sysops.
Non-blank template parameter <code>rescript</code> causes the button to remove all cached wikidialog javascript functions before performing the action; no effect when delegating; may be used when testing new versions of wikidialog javascript to avoid accidentally mixing new versions of some functions with old versions of others.
Non-blank template parameter <code>sequence</code> marks the button as part of an [[{{SITENAME}}:Dialog/do/doc#Action sequences|action-sequence]].
Non-blank template parameter <code>live</code> prevents the button from being disabled when it occurs in a non-live [[Template:Dialog/preview|preview]].
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog element templates|edit]]
</includeonly>
5lzmzssssq740ijywod8w1uo11q8eww
සැකිල්ල:Dialog/edit/form/උපදෙස්
10
15667
37925
36905
2026-04-18T08:10:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37925
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Call this template directly, <code>noinclude</code>d, on an [[:Category:Dialog edit forms|edit form]] to designate the page as a valid mediator of the [[WN:Dialog/do/doc#Verb: edit|edit]] verb of the [[WN:Dialog/do/doc|do]] dialog action. The template call must be on the form page itself; the edit verb looks for it ''before'' template expansion (hence, the edit-form designation cannot be forged by a transcluded template).
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog behavior templates|edit/form]]
</includeonly>
ci6zs13c95cpzs0unobekddbif2t4a3
සැකිල්ල:Dialog/init/උපදෙස්
10
15671
37926
36909
2026-04-18T08:11:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37926
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
=== භාවිතය ===
Use this template on a page to be accessed via dialog action [[WN:Dialog/do/doc|do]] to specify an initial value for a [[WN:dialog|dialog field]], thus:
: {{tl|dialog/init|''name''|''value''}}
This causes ''value'' to be processed through template-expansion, and the resulting value to be associated with dialog field ''name'', as if it had been provided as an incoming dialog parameter, and overriding any dialog parameter ''name'' provided. This bypasses the ordinary processing by which the wiki software converts the output of template-expansion into html for viewing; the ordinary processing rearranges whitespace, linebreaks, and markup for list items, indentation, italics, wikilinks, and so on. Some, but not all, of the ordinary processing can be avoided by means of {{tl|dialog/safe}}.
Ordinarily, the template call itself expands to the empty string. However, a non-blank third parameter causes the template call to expand to ''value''.
The template call must appear on the accessed page itself, as it is processed by the do action ''before'' template-expansion of the page as a whole. This enhances security since arbitrary templates used on the dialog page cannot indirectly override dialog parameter values.
The ''value'' may contain template parameters processed by the do action (such as <code>SUBJECT-CONTENT</code>, or incoming dialog parameters), as the action replaces those before processing calls to {{tl|dialog/init}}. Because those template parameters are processed before {{tl|dialog/init}} calls, they depend on incoming dialog parameters only, regardless of ''value'' or of any other call to {{tl|dialog/init}}. The specified ''value'' will, however, override any incoming dialog parameter to determine the initial content of a dialog field called ''name''.
Reserved parameter names — anything that starts with an upper-case letter and does not contain any lower-case letters — cannot be overridden using {{tl|dialog/init}}; any attempt to do so is ignored.
Use this template sparingly, as each call processed may entail a separate call across the internet to the wiki server (though the dialog software will save itself the trouble if it notices ''value'' doesn't contain any template calls). As of this writing, only up to eight calls to this template are processed by action do; any additional calls do not affect dialog fields.
If a parameter provided through {{tl|dialog/init}} is meant to be explicitly passed by a [[Template:Dialog/button|button]] (rather than implicitly passed by delegation), there has to be a dialog field on the page with the name of that parameter (typically declared using {{tl|dialog/textarea|2=hidden=1}}); explicit button parameters are always taken from dialog fields, not from incoming dialog parameters.
== තාක්ෂණික සීමා ==
The ''value'' must not contain any unmatched braces (<code>{</code> or <code>}</code>) and must not have braces nested more than 32 deep (as of this writing). The unbalanced-braces problem can be avoided by using {{tl|(*}} and {{tl|*)}}. If these limtations are exceeded, the template call does not affect dialog fields (because the dialog software fails to recognize it in the raw wiki markup).
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog behavior templates|init]]
</includeonly>
2czrz3a10yig6ck6kg4fag5ybroa4px
සැකිල්ල:Dialog/notes/උපදෙස්
10
15675
37927
36910
2026-04-18T08:11:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37927
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{dialog/formatting template}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Placing this template on a [[Help:dialog|dialog]] page indicates — when viewing the dialog page via dialog action [[Wikinews:Dialog/do/doc|do]] verb [[Wikinews:Dialog/do/doc#Verb: view|view]] — that any internal notes about the current page view should be placed on the page at the position of each call to this template. Internal dialog notes are generated as low-profile diagnostic information explaining complex rejection-decisions that don't warrant an obtrusive error message, such as why a page does not provide outgoing authentication, or why it doesn't qualify for continuation of an action-sequence. Under ordinary circumstances the user doesn't want to know these things, but when debugging a dialog it can be extremely useful to have an explanation of why the software isn't doing something.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
The [[{{SITENAME}}:Dialog/do/doc#Verb: view|view]] verb of action [[{{SITENAME}}:Dialog/do/doc|do]] processes calls to this template after all other processing has been completed; so the notes are not available as template parameters or even as dialog field values. This timing is warranted because some — probably most — notes are generated ''after'' both template parameters and dialog field values have been processed.
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog behavior templates|notes]]
</includeonly>
p6gmausodkzsx2e9n98cii78c3m1jvt
සැකිල්ල:Dialog/null requirement/උපදෙස්
10
15679
37928
36911
2026-04-18T08:11:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37928
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
=== භාවිතය ===
Placing this template on a dialog page enables authentication of outgoing [[Help:Dialog|action requests]] from the page, without imposing any requirements on incoming action requests. It does not obviate any other authentication requirement placed via {{nowrap|{{tl|dialog/require origin}}}}.
This template does not require incoming action requests to be authenticated. However, even without this template, actions do not begin processing unless there ''is'' an incoming request; thus, an action page can be viewed passively without triggering its behavior.
=== අමතර අවධානයට ===
* {{tl|dialog/require origin}}
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog authentication templates|null requirement]]
</includeonly>
l6vb5u38ks9yiab0x7ijyovlmeocnp8
සැකිල්ල:Dialog/page/උපදෙස්
10
15683
37929
36912
2026-04-18T08:11:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37929
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
{{high-risk|over 700}}
This template guarantees a page name has a colon somewhere in it, by adding one at the front if necessary.
=== භාවිතය ===
Apply this template to a parameter literal value for {{tl|dialog/button}} if the literal value is meant to be a page name, but might not contain a colon. ({{tl|dialog/button}} uses the presence of a colon to identify whether a parameter literal value is a page name that ought to be linked via {{nowrap|{{tl|hidden use}}}}.)
{|
|-
| <code><nowiki>{{dialog/page|foo:bar}}</nowiki></code>
| would produce
| {{dialog/page|foo:bar}}
|-
| <code><nowiki>{{dialog/page|foobar}}</nowiki></code>
| would produce
| {{dialog/safe|{{dialog/page|foobar}}}}
|}
<!--
=== අමතර අවධානයට ===
-->
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog required support templates|page]]<!-- e.g. Template:Dialog/view, Template:Dialog/edit -->
</includeonly>
13sj2zuc3f5puo6gqelc703mh5lkmic
සැකිල්ල:Dialog/pipetrick/උපදෙස්
10
15687
37930
36915
2026-04-18T08:11:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37930
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
This template does [[w:Help:Pipe trick|pipe trick]] processing on a raw wiki markup string. (See also: [[Help:Editing#Piped_links]])
=== භාවිතය ===
Specify the raw wiki markup through the unnamed parameter.
=== උදාහරණ ===
{| class="wikitable"
|-
! input
! output
|-
| <code>{{(-|2}}foo{{!}}{{-)|2}}</code>
| <code><nowiki>[[foo|foo]]</nowiki></code>
| {{#ifeq:{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(-|2}}foo{{!}}{{-)|2}} }}
| {{(-|2}}foo{{!}}foo{{-)|2}} |{{color|green|OK}}|{{color|red|MISMATCH}}}}
|-
| <code>{{(-|2}}w:foo (bar){{!}}{{-)|2}}</code>
| <code><nowiki>[[w:foo (bar)|foo]]</nowiki></code>
| {{#ifeq:{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(-|2}}w:foo (bar){{!}}{{-)|2}} }}
| {{(-|2}}w:foo (bar){{!}}foo{{-)|2}} |{{color|green|OK}}|{{color|red|MISMATCH}}}}
|-
| <code>{{(-|2}}:en:b:foo, bar, quux{{!}}{{-)|2}}</code>
| <code><nowiki>[[:en:b:foo, bar, quux|b:foo]]</nowiki></code>
| {{#ifeq:{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(-|2}}:en:b:foo, bar, quux{{!}}{{-)|2}} }}
| {{(-|2}}:en:b:foo, bar, quux{{!}}b:foo{{-)|2}} |{{color|green|OK}}|{{color|red|MISMATCH}}}}
|-
| <code>{{(-|2}}foo, bar (quux){{!}}{{-)|2}}</code>
| <code><nowiki>[[foo, bar (quux)|foo, bar]]</nowiki></code>
| {{#ifeq:{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(-|2}}foo, bar (quux){{!}}{{-)|2}} }}
| {{(-|2}}foo, bar (quux){{!}}foo, bar{{-)|2}} |{{color|green|OK}}|{{color|red|MISMATCH}}}}
|-
| <code>{{(-|2}}w:foo#bar (quux){{!}}{{-)|2}}</code>
| <code><nowiki>[[w:foo#bar (quux)|]]</nowiki></code>
| {{#ifeq:{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(-|2}}w:foo#bar (quux){{!}}{{-)|2}} }}
| {{(-|2}}w:foo#bar (quux){{!}}{{-)|2}} |{{color|green|OK}}|{{color|red|MISMATCH}}}}
|}
=== සීමා ===
For precise simulation of the pipe trick, it shouldn't work in "ref" tags or "gallery" tags, nor with links to sections. As of this writing, the template duplicates the section-link exclusion (see example above), but not the tag exceptions.
=== සටහන් ===
This is considered a [[Help:Dialog|dialog]] tool simply because dialog seems the only situation where one would manipulate raw wiki markup text.
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* {{tl|dialog/psub}}
__NOTOC__
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog optional support templates|pipetrick]]
</includeonly>
0xi1vcom0sbocexo75vwwx3q1e4ttjd
සැකිල්ල:Dialog/preview/උපදෙස්
10
15689
37931
36916
2026-04-18T08:11:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37931
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{dialog/formatting template}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Placing this template on a [[Help:dialog|dialog]] page indicates — when viewing the dialog page via dialog action [[Wikinews:Dialog/do/doc|do]] verb [[Wikinews:Dialog/do/doc#Verb: view|view]] — that incoming dialog parameter <code>preview</code> should be parsed as wiki markup, and the result displayed in place of each call to this template. The parsed text is template-expanded as if the text were on the page named by dialog parameter <code>subject</code> if provided, otherwise as if the text were on the dialog page (affecting magic words such as <code><nowiki>{{PAGENAME}}</nowiki></code>).
Ordinarily, buttons within the preview are disabled. Non-blank optional template parameter <code>live</code> overrides this default for all buttons in this preview. The default can also be overridden for an individual button using an optional template parameter to {{tl|dialog/button}}.
Ordinarily, template parameters in the <code>preview</code> text are not substituted for by incoming dialog parameters. Non-blank dialog parameter {{nowrap|<code>local-preview-parameters</code>}} — which must be specified via {{tl|dialog/init}} since it is local — is taken to be a list of dialog parameters that if present should be substituted into the <code>preview</code> text.
The <code>preview</code> text cannot set up an operational {{tl|dialog/preview}} or {{tl|dialog/init}}; those templates if called would not have their dialog effects. Dialog fields are initialized with values of incoming dialog parameters ''regardless'' of whether the fields occur within a preview.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
The dialog facilities ''deliberately'' do not, at this writing, provide a fully general way to access a dialog parameter whose name is computed dynamically; as a general design principle, the facilities seek to foster a style of dialog markup where things are succinctly specified using a few broad strokes, and therefore seek to avoid the sort of massively-empowering, fine-scale primitive computational operations that would be desirable in a traditional general-purpose programming language. Although the substitution of dialog parameters for template parameters in the <code>preview</code> text can be ''simulated'' via {{tl|dialog/psub}}, computing both the names of the template parameters to be substituted for and the values to be substituted in, there would still be no way to access arbitrary dialog parameters whose names are not hardcoded into the stored dialog page. The use of dialog parameter {{nowrap|<code>local-preview-parameters</code>}} enables the preview to access arbitrary dialog parameters determined at view time, while bringing the dependency out in the open by requiring an explicit declaration via {{tl|dialog/init}}, avoiding gratuitous access by substituting only parameters explicitly whitelisted, and avoiding obfuscated nesting by limiting dependencies to a single level per page applied to an entire text (rather than to some particular parameter buried somewhere in the markup).
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog behavior templates|preview]]
</includeonly>
gu93izl1qkxv8phqt1m6ne01w6fxe3i
සැකිල්ල:Dialog/psub/උපදෙස්
10
15693
37932
36917
2026-04-18T08:12:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37932
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
This template simulates substitution of incoming [[Help:Dialog|dialog]] parameters for template parameters in a wiki text.
=== භාවිතය ===
Specify the wiki text through template parameter <code>text</code>. Specify the name and value of an incoming dialog parameter through template parameters <code>n''k''</code> and <code>v''k''</code> for integer ''k'' in the range from 1 to 20 (as of this writing).
: <code><nowiki>{{</nowiki>{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|{{#titleparts:{{PAGENAME}}|-1}}|{{PAGENAME}}}}<nowiki>|text=foo{{{bar}}}quux|n1=bar|v1=baz}}</nowiki></code>
would expand to
: <code>{{ {{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|{{#titleparts:{{PAGENAME}}|-1}}|{{PAGENAME}}}} |text=foo{{{bar}}}quux|n1=bar|v1=baz}}</code>
Template parameters are only substituted for if their default value in <code>text</code> does not contain any nested curly braces; thus, given markup <code><nowiki>{{{foo|{{{bar|quux}}}}}}</nowiki></code>, incoming dialog parameter <code>bar</code> would be substituted for, but not incoming dialog parameter <code>foo</code>. (This faithfully reproduces a limitation of dialog substitution for incoming dialog parameters.)
Reserved dialog parameters are not automatically handled.
If the value substituted for a parameter contains certain characters with format meaning in wiki markup, those characters are not naively substituted in, but instead are replaced by wiki markup for calls to suitable [[:Category:{{SITENAME}} character-substitution templates|character-substitution templates]], just as dialog substitution does to preserve parse structure.
: <code><nowiki>{{</nowiki>{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|{{#titleparts:{{PAGENAME}}|-1}}|{{PAGENAME}}}}<nowiki>|text=foo{{{bar}}}quux|n1=bar|v1=<>}}</nowiki></code>
would expand to
: <code>{{ {{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|{{#titleparts:{{PAGENAME}}|-1}}|{{PAGENAME}}}} |text=foo{{{bar}}}quux|n1=bar|v1=<>}}</code>
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog optional support templates|psub]]
</includeonly>
6668ivi3l1r0kyyl8bonmu2zatjapgs
සැකිල්ල:Dialog/require origin/උපදෙස්
10
15697
37933
36918
2026-04-18T08:12:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37933
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Categories and interwikis go at the bottom of this page. -->
{{dialog/formatting template}}
=== භාවිතය ===
Putting this template on a dialog page indicates outgoing [[Help:Dialog|action requests]] from the page can only be authenticated if the page was reached by an authenticated incoming action request matching the provided template parameters.
* Unnamed parameters specify possible names for the ''origin page'' of the incoming request. The origin page must be one of those named. Up to eight unnamed parameters may be specified.
* Optional named parameter <tt>proxy</tt> specifies the name of a ''proxy page'' through which the origin page was accessed. If this parameter is specified, the origin must have been accessed through the named proxy; if it is not specified, the origin must not have been accessed through a proxy.
Some actions refuse to begin processing unless these conditions are met; others may choose to proceed despite inability to authenticate.
If this template occurs multiple times on a page, all of the conditions set by all of the occurrences must be met; this prevents the conditions on a dialog from being weakened by surreptitious inclusions on the page. A call to this template with no unnamed parameters is unsatisfiable, and thus prohibits authentication regardless of what else might occur on the page.
=== අමතර අවධානයට ===
* {{tl|dialog/null requirement}}
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
<includeonly>
<!-- Categories and interwikis go here: -->
[[Category:Dialog authentication templates|require origin]]
</includeonly>
han3s1p96m80cg3ch6i8leaqrmw5mhk
සැකිල්ල:Dialog/rm subst/උපදෙස්
10
15701
37934
36920
2026-04-18T08:12:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37934
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
This template removes <code>subst:</code> and <code>safesubst:</code> prefixes from template calls in a raw wiki markup string.
=== භාවිතය ===
Specify the raw wiki markup through the unnamed parameter.
=== උදාහරණ ===
{| class="wikitable"
|-
! input
! output
|-
|
<code>{{(*|2}}foo{{!}}bar{{*)|2}}</code>
|
<code>{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(*|2}}foo{{!}}bar{{*)|2}} }}</code>
|
{{#ifeq:{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(*|2}}foo{{!}}bar{{*)|2}} }}
| {{(*|2}}foo{{!}}bar{{*)|2}} |{{color|green|OK}}|{{color|red|MISMATCH}}}}
|-
|
<code>{{(*|2}} subst:foo {{!}} bar {{*)|2}}</code>
|
<code>{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(*|2}} subst:foo {{!}} bar {{*)|2}} }}</code>
|
{{#ifeq:{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(*|2}} subst:foo {{!}} bar {{*)|2}} }}
| {{(*|2}} foo {{!}} bar {{*)|2}} |{{color|green|OK}}|{{color|red|MISMATCH}}}}
|-
|
<code>{{(*|2}}safesubst:foo{{!}}bar{{*)|2}}</code>
|
<code>{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(*|2}}safesubst:foo{{!}}bar{{*)|2}} }}</code>
|
{{#ifeq:{{ {{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1}}|doc|{{#titleparts:{{FULLPAGENAME}}|-1}}|{{FULLPAGENAME}}}}
| {{(*|2}}safesubst:foo{{!}}bar{{*)|2}} }}
| {{(*|2}} foo{{!}}bar{{*)|2}} |{{color|green|OK}}|{{color|red|MISMATCH}}}}
|}
=== සටහන් ===
This is considered a [[Help:Dialog|dialog]] tool simply because dialog seems the only situation where one would manipulate raw wiki markup text.
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* {{tl|dialog/pipetrick}}
* {{tl|dialog/psub}}
__NOTOC__
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog optional support templates|rm subst]]
</includeonly>
b55rtsvquv3ac11f8mohvk28gpcobcx
සැකිල්ල:Dialog/test/+1/උපදෙස්
10
15705
37935
36924
2026-04-18T08:12:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37935
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
This template adds one to its one unnamed parameter, or returns {{ {{#titleparts:{{FULLPAGENAME}}|{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|doc|-1}}}} }} if the parameter isn't a number.
It's provided as a convenience for use in diagnostic tests.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog action tests|{{#titleparts:{{PAGENAME}}||2}}]]
</includeonly>
pwpvyzrd1uwjekhvyqxvk1gl4mqyhl2
සැකිල්ල:Dialog/text/උපදෙස්
10
15707
37936
36944
2026-04-18T08:12:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37936
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
This template sets up a text [[Help:Dialog|dialog]] box.
=== භාවිතය ===
Parameters:
* id — required — A unique name for the field; stick to letters and hyphens.
* size — optional — The intended width of the text box, in characters.
* unnamed parameter — optional — The initial content of the text box.
=== අභ්යන්තර ක්රියාකාරීත්වය ===
Behind the (hopefully) seamless interface this template presents to users, there is a good deal of esoteric working around quirks of the wiki software.
The template tries to set up an html span element with class <code>wikidialog-text</code>, id <code>wikidialog-</code>''id'', and content the specified initial value. Ideally, the [[MediaWiki:Gadget-wikidialog.js|dialog gadget]] looks for span elements with this class, and replaces each with a text box with the given initial content. However, when the specified content has multiple paragraphs in wiki markup, the wiki software generates multiple consecutive span elements, one for each paragraph, all with the same id. This multiplicity of elements could be avoided by using a div element instead of a span element, but as of this writing, the wiki software doesn't support embedding a div element on a single line, which we may want to do with small text boxes; hence the use of span elements. The show module compensates by checking for multiple consecutive span elements with class <code>wikidialog-text</code> and the same id, and if it finds them, it concatenates their contents into the first, and removes the later ones. To keep the show module from mistakenly merging elements from separate specifications with the same id (which can happen since the wiki software does not support {{w|hygienic macro|gensyms}}), the template also sets up a trailing hidden element of the same class and different id, so that multiple elements from separate specifications always alternate with elements with different ids.
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
* {{tl|dialog/safe}}
<includeonly>
{{hidden use|Template:Dialog/safe}}
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog element templates|text]]
</includeonly>
02ri4uyc93ro7a5r6lmp3j67jv3wwmt
සැකිල්ල:Dialog/view/උපදෙස්
10
15711
37937
36946
2026-04-18T08:12:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37937
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{dialog/formatting template}}
{{possible-risk}}
This template sets up a [[Template:Dialog/button|button]] to [[{{SITENAME}}:Dialog/do/doc#Verb: view|view]] a given page via action <code>[[{{SITENAME}}:Dialog/do|do]]</code>.
=== භාවිතය ===
Parameters:
* page — required — the name of the page to be viewed, used as the <code>page</code> dialog parameter to the do action.
* label — optional — the text label on the button. If omitted, defaults to <code>view</code>.
* unnamed parameters — optional — dialog parameters passed to the do action when the button is clicked; as with the unnamed parameters to {{tl|dialog/button}}, but currently only up to thirty (two fewer than supported by the other template).
A second, [[{{SITENAME}}:Dialog/echo|echo]] button can be provided by this template, by specifying non-blank template parameter <code>echo</code>; the same dialog parameters are passed to the echo action as to the do action, which may aid dialog debugging.
Non-blank template parameter <code>delegable</code> indicates the action of the button may be delegated; delegation is not always possible, and even when possible, the parameter permits it but only requires it if the current page is being viewed via a do action.
Template parameter <code>test</code> may name an action page in userspace to use instead of <code>do</code>. Action pages in userspace are restricted to use by sysops.
Non-blank template parameter <code>rescript</code> causes the button to remove all cached wikidialog javascript functions before performing the action; no effect when delegating; may be used when testing new versions of wikidialog javascript to avoid accidentally mixing new versions of some functions with old versions of others.
Non-blank template parameter <code>sequence</code> marks the button as part of an [[{{SITENAME}}:Dialog/do/doc#Action sequences|action-sequence]].
Non-blank template parameter <code>live</code> prevents the button from being disabled when it occurs in a non-live [[Template:Dialog/preview|preview]].
=== අමතර අවධානයට ===
* [[Special:WhatLinksHere/{{FULLPAGENAME}}|pages using, or referring to, this template]]
* [[Help:Dialog]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Dialog element templates|view]]
</includeonly>
nxrvopinl0vh7kqq56f8twln30jmhzb
සැකිල්ල:==/උපදෙස්
10
15720
37938
34506
2026-04-18T08:13:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37938
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
=== භාවිතය ===
Without parameters, generates a single equal-sign (<code>{{==}}</code>); specify an integer no larger than {{#invoke:Rptchars|bound}} to produce more than one equal-sign.
{| class="wikitable"
|-
! markup !! produces
|-
| <code><nowiki>{{==}}</nowiki></code> || <code>{{==}}</code>
|-
| <code><nowiki>{{==|1}}</nowiki></code> || <code>{{==|1}}</code>
|-
| <code><nowiki>{{==|16}}</nowiki></code> || <code>{{==|16}}</code>
|}
=== අමතර අවධානයට ===
* [[Module:Rptchars]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:{{SITENAME}} character-substitution templates]]
[[Category:Dialog required support templates]]
</includeonly>
d5jeuwdtms122423ifb10iovb7nzllg
සැකිල්ල:Draft/උපදෙස්
10
15769
37939
36958
2026-04-18T08:13:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37939
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
''මෙම සැකිල්ල, පිටු [[:Category:Wikibooks draft policies and guidelines]] තුළ ලැයිස්තු ගත කරයි.''
=== අමතර අවධානයට ===
{{policies and guidelines see also}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikibooks header templates|{{PAGENAME}}]]
[[ko:틀:제안]]
</includeonly>
itrm2vgo2yz8cjvr1i4m4z0255zar5m
සැකිල්ල:Template link expanded with italic/උපදෙස්
10
15807
37940
37167
2026-04-18T08:13:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37940
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
__NOTOC__
== භාවිතය ==
This template is a {{tlx|tl}}-style ''template-link'' tag that accepts and italicizes parameters. It's the same as {{tlx|tlx}} except that the template parameters are shown in italics. Its main use is in template documentation, to give example input where the parameters are unnamed sequential ones and we're showing variable, sample input. It really should mark up the parameter with {{tag|var}}, not just typographic italics, but the underlying [[Template:Tlg]] doesn't have an option to execute that markup (yet).
=== උදාහරණ ===
: {{Tlx|Tlxi|Template|first parameter|second|third|...|eleventh}} → {{Tlxi|Template|first parameter|second|third|...|eleventh}}
: {{Tlx|Tlxi|Template|2{{=}}first parameter|3{{=}}second|4{{=}}third|...|12{{=}}eleventh}} → {{Tlxi|Template|2=first parameter|3=second|4=third|5=...|12=eleventh}} if they might contain "=" signs (note the off-by-one notation – parameter 1 remains the name of the template)
: {{Tlx|Tlxi|Template|<nowiki>first|second|...|999th</nowiki>}} → {{Tlxi|Template|<nowiki>first|second|...|999th</nowiki>}} (for more than 10 parameters)
If {{var|Template}} is to be passed more than nine parameters (using up to the tenth of {{tnull|Tlxi}}'s own parameters), the remaining parameters have to be baked into the actual eleventh parameter of {{tnull|Tlxi}}:
: {{Tlx|Tlxi|Template|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|<nowiki>ninth|<nowiki>tenth|eleventh|twelfth|thirteenth|...</nowiki></nowiki>}}
:or
: {{Tlx|Tlxi|Template|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|ninth{{!}}<nowiki>tenth{{!}}eleventh{{!}}twelfth{{!}}thirteenth{{!}}</nowiki>...}}
:or
: {{Tlx|Tlxi|Template|2{{=}}first parameter|3{{=}}second|4{{=}}third|5{{=}}fourth|6{{=}}fifth|7{{=}}sixth|8{{=}}seventh|9{{=}}eighth|<nowiki>10=ninth|11=<nowiki>tenth|eleventh|twelfth|thirteenth|...</nowiki></nowiki>}}
: →
: {{Tlxi|Template|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|ninth|<nowiki>tenth|eleventh|twelfth|thirteenth|...</nowiki>}}
If a twelfth parameter is passed to {{tnull|Tlxi}} (i.e., an 11th to the {{var|Template}} it calls in parameter 1), that parameter's value will be output as "…" and subsequent parameters ignored.
The rest of the documentation is for {{tl|tlx}}, which works the same way.
----
{{Tlx/doc}}
<includeonly>{{Sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Internal template-link templates]]
}}</includeonly>
tqcjfc71blszjwpw353k8mofef4tqgs
සැකිල්ල:Redirect category shell/උපදෙස්
10
15809
37941
37119
2026-04-18T08:13:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37941
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{hatnote|This template supplements the redirect categorization done by adding rcats individually to redirects and by past usage of the now deprecated {{tl|This is a redirect}} template. Its creation and usage is the direct result of [[Template talk:This is a redirect|discussion]]s about the benefits and the shortcomings of the ''This is a redirect'' template.}}
{{High-use}}
{{mbox|image=none|text=[[File:Ambox warning pn.svg|20px|alt=red-outlined triangle containing exclamation point]] {{red|'''Important – please read! {{maroon|This template should ''not'' be used by a bot nor by any automated or semi-automated process without the use of parameters. It should ''not'' be used without parameters ''unless the redirect is manually categorized''. This template may be used as a ''learning tool'' to assist editors who wish to learn how to categorize redirects. ''Only'' those editors who intend to return to the redirect to learn which rcats to use should apply this template without parameters, or with an empty first parameter.}}'''}} <small>([[#When used alone|more below]])</small>}}
{{Substitution|not|nor should this template and most redirect category (rcat) templates be used to tag [[Wikipedia:Soft redirects|soft redirects]]. Two exceptions are ''{{tl|Soft redirect with Wikidata item}}'', which can be used on all soft redirects, and ''{{tl|R category with possibilities}}'', which can only be used on soft redirects in the category namespace}}
{{#ifeq:{{SUBPAGENAME}}|sandbox|{{Template redirect|Rcat shell/sandbox}}|{{template redirect|Redirect shell|R cat shell|Rcat shell|RCAT shell}}{{Template shortcut|redr|rcatsh}}}}
This template is similar to {{tl|WikiProject banner shell}} in that it may be used to add one or more appropriate redirect category ([[WP:RCAT|rcat]]) templates, along with their parameters, to redirects. Additionally, this template ''automatically'' senses, describes, categorizes and changes [[WP:PP|protection levels]] when appropriate. A third important function is to help editors learn more about redirect categorization by use of the {{c|Miscellaneous redirects|manifold sort}}. For more information see the page below and the [[WP:TMR|main rcat '''index''']].
__TOC__
==Purpose==
As with the ''This is a redirect'' template, this template is based on a [[Wikipedia talk:WikiProject Redirect/Archive 1#New meta-template(s) idea|proposal]] to standardize [[wp:redirect templates|redirect templates]] (rcats). Its basic purpose is to simplify the process of tagging and categorizing redirects.
Like the ''This is a redirect'' template, this shell template is also able to help newer contributors learn the redirect category system. Details of this part of the purpose of this shell template may be found in the [[#When used alone|When used alone]] section below.
Protection levels are automatically detected by this template by use of {{tl|pp-protected}} and {{tl|pp-move}}. When edit protection or move protection (or both) is applied to a redirect that has been tagged with this template, the protection level is automatically detected, and the redirect will be tagged with a protection rcat and sorted to the appropriate protection-related category(ies). When protection is altered or removed, then the protection-related rcats and category(ies) will also be (automatically) changed or removed from the redirect.
This template can categorize and display the text (with parameters) of any number of rcats that are needed (usually from one to seven).<br />
<ref name="mbox" group="Mbox note">When the wiki markup of this template is opened, it is seen that this is an "mbox-based" template. "Mbox" stands for "multi namespace message box", which is a meta-[[Help:A quick guide to templates|template]] that works in all namespaces. There can be a problem with this mbox unless editors are careful to place ''Redirect category shell'' '''on its own line at the ''very beginning of the line'''''. If this is done then all is well; if this is not done, then [[HTML Tidy]] may interfere with the mbox and cause this template to appear in an abnormal and unexpected manner when saved. So be careful where you leave this template placed in a redirect's Edit screen, take another look at the above [[#goodread|readability guide]], and be sure to preview your edits – all your edits.
: '''{{green|Correct:}}'''
<syntaxhighlight lang="wikitext">
#REDIRECT [[(target page)]]
{{Redirect category shell||
{{R unprintworthy}}
}}
</syntaxhighlight>
: '''{{red|''Not'' correct:}}'''
<syntaxhighlight lang="wikitext">
#REDIRECT [[(target page)]] {{Redirect category shell||{{R unprintworthy}}}}
</syntaxhighlight>
: ''A blank line is usually placed between the redirect target and this template to make the "Edit" screen easier to read.''</ref>
<ref name="printworthiness" group="Printworthiness note">Where the [[WP:printworthiness|printworthiness]] of a [[WP:mainspace|mainspace]] redirect is concerned, there are three kinds of [[WP:RCAT|rcat]]s:
# those that populate the {{c|Printworthy redirects}} category by default,
# those that populate the {{c|Unprintworthy redirects}} category by default, and
# those that do not default to either of the above, and which leave it to the editor to decide based upon best knowledge whether or not a mainspace redirect is suitable for a printed or DVD version of ''Wikipedia''.
At present, those that are types 1 and 2 will populate the appropriate printworthiness category, however the notice will not appear within the mbox of this template unless either {{tl|R printworthy}} or {{tl|R unprintworthy}} is listed as an rcat within this template. For example, if a redirect is tagged with:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|
{{R from ambiguous term}}
}}
</syntaxhighlight>
...then the hidden categories populated will be {{c|Redirects from ambiguous pages}}, {{c|Unprintworthy redirects}} and any appropriate protection categories. These will appear at the bottom of the redirect page only to registered users who are logged in and who have set their preferences to see hidden categories. The mbox that will appear to all readers would look like:
{{Redirect category shell|
{{R from ambiguous term/demo|embed=yes}}
}}
To show the printability or printworthiness information in the mbox, then the redirect must be tagged with either the printworthy or unprintworthy rcat as in the following example:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|
{{R from ambiguous term}}
{{R unprintworthy}}
}}
</syntaxhighlight>
...which produces:
{{Redirect category shell|
{{R from ambiguous term/demo|embed=yes}}
{{R unprintworthy|embed=yes}}
}}
'''''Only then''' will the printability, ''printworthy'' or ''unprintworthy'', be described within this template's mbox on the redirect page.''</ref>
== භාවිතය ==
Used by itself with no parameters, for example, {{tlc|Redirect category shell}} (and its alias {{tlc|Rcat shell}}), the template will appear as it does at the top of this page, and the redirect will populate {{Cat|Miscellaneous redirects}}. That category will also be populated if the first parameter is left empty while rcats occupy the second parameter. This is useful when an editor adds rcats and yet feels unsure that there may be at least one other rcat with category that may be used to tag the redirect. Monitors of the ''Miscellaneous redirects'' category will then help decide if another rcat(s) is needed. Then the empty first parameter may be excluded by removing either the first or second pipe. That will remove the redirect from ''Category:Miscellaneous redirects''. [[#When used alone|See below]] for more information.
This template may hold any number of different redirect category ([[WP:RCAT|rcat]]) templates, usually from one to seven. The choices for editors are listed at [[Wikipedia:Template index/Redirect pages]] both alphabetically and by function. Any of those rcats may be used either with their full template name, e.g., '''R from alternative language''', or with an alias (shortcut redirect), which may be found in each rcat's [[WP:TDOC|documentation]].
An unnamed parameter, {{para|1}}, has been introduced in this template and works as follows:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|1=
{{rcat 1}}
{{rcat 2}}
{{rcat 3}}
{{rcat N}}
}}
</syntaxhighlight>
: ''or'' the {{code|1{{=}}}} may be omitted:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|
{{rcat 1}}
{{rcat 2}}
{{rcat 3}}
{{rcat N}}
}}
</syntaxhighlight>
As with all templates that have unnamed (numbered) parameters, the numbers and equal signs may be omitted.
"N" represents the highest number of rcats that can be used in this template, and at this point the only limit would be any wiki markup ceiling that may exist. Usually, from one to seven rcats suffice; however, more rcats can be used if required.
The actual sequence of rcats is left to editors – there is no priority as to which rcat should be "first" and which rcats should "follow" in any particular order.
A second unnamed parameter, {{para|2}}, has also been introduced. This gives this template the same "help" functionality that is used in the ''This is a redirect'' template. If the first parameter is left "empty", then {{cat|Miscellaneous redirects}} will be populated:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|1=|2=
{{rcat 1}}
{{rcat 2}}
{{rcat N}}
}}
</syntaxhighlight>
:''or'' if a second pipe is placed directly after the first pipe, then that will accomplish the same manifold sort:
<syntaxhighlight lang="wikitext">
{{Redirect category shell||
{{rcat 1}}
{{rcat 2}}
{{rcat N}}
}}
</syntaxhighlight>
Note the double pipe after the word "shell" above, which indicates an empty first parameter. Editors who monitor the ''Miscellaneous redirects'' category will come to the redirect and check, add or remove rcats as needed.
Also, when used by itself this template will appear as it does at the top of this page and populate the ''Miscellaneous redirects'' category:
<syntaxhighlight lang="wikitext">
{{Redirect category shell}}
</syntaxhighlight>
{{anchor|goodread}}
This template may be added to a redirect page in the following manner:
<syntaxhighlight lang="wikitext">
#REDIRECT [[(target page name)]]
{{Redirect category shell||
{{R from short name}}
{{R unprintworthy}}
}}
</syntaxhighlight>
: It can be noted here that the rcats can also go on the same line as the ''Redirect category shell'' template:
<syntaxhighlight lang="wikitext">
#REDIRECT [[(target page name)]]
{{Redirect category shell||{{R from short name}}{{R unprintworthy}}}}
</syntaxhighlight>
: Again, note the double pipe after "shell" above, which indicates an empty first parameter. Leave the first parameter empty to sort a redirect to {{cat|Miscellaneous redirects}} ''in addition to'' the categories of the rcats that are used. In this case the {{c|Redirects from short names}} and {{c|Unprintworthy redirects}} categories will also be populated. Monitors of the "Miscellaneous redirects" category will help editors when needed.
Generally for good readability on the edit screen, this template is placed beginning on the third line of that screen as follows:
<syntaxhighlight lang="wikitext">
Line 1: #REDIRECT [[(target page name)]]
</syntaxhighlight>
Line 2: {{red|<small>(please leave this line blank for emphasis and ease of reading by editors)</small>}}
<syntaxhighlight lang="wikitext">
Line 3: {{Redirect category shell|{{R from move}}{{R to section}}{{R printworthy}}}}
</syntaxhighlight>
: ''See also: section titled '''[[#Mbox-based|Mbox note]]''' below.''
=== පැරාමිති ===
In addition to the unnamed {{para|1}} and {{para|2}} parameters, there is a "hatnote" parameter, {{para|h}}, which provides an italicized TOP note when needed. For example:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|h=This code has not been confirmed as an [[International Air Transport Association airport code|IATA]] airport code.|
{{R from airport code}}
}}
</syntaxhighlight>
...uses the rcat {{tl|R from airport code}} and produces:<!-- Note: An Mbox is used below rather than the template to illustrate the error box, which only appears on redirect pages. -->
{{Mbox
| name = This is a redirect/rcat
| type = move
| image = none
| style = margin-top: 1.1em; border: solid 1px darkblue; border-left-width: 0.5em;
| textstyle = padding-top: 0.9em; padding-bottom: 0.9em;
| text = [[File:Symbol redirect arrow with gradient.svg|25px|link=]] '''This page is a [[Wikipedia:Redirect|redirect]]. <small>The following [[Wikipedia:Categorizing redirects|categories]] are used to track and monitor this redirect:</small>'''
:: ''This code has not been confirmed as an [[International Air Transport Association airport code|IATA]] airport code.''
* {{R from airport code|embed=yes}}
{{Ombox|type=content|image=[[File:Stop hand orange.svg|50px]]|text={{Error|The above [[WP:RCAT|rcat]] should only be used to categorize redirects that are in the ''[[WP:main|main]]'' namespace.}}}}
''<small>When appropriate, [[WP:PP|protection levels]] are automatically sensed, described and categorized.</small>''
}}
:''An error box appears that illustrates what happens if an editor uses an rcat in the wrong namespace. Correct namespaces are found on individual rcat documentation pages. In addition to the error box, the redirect '''''will not''''' be sorted to the rcat's category; instead it will populate '''''{{cat|Pages with templates in the wrong namespace}}!''' ''If an error box appears when an edit is '''previewed''', then appropriate changes can be made ''before'' the redirect page is actually '''saved'''.''
:''Also, note the pipe symbol ''(|)'' that follows the text in the {{para|h}} parameter. If this pipe is omitted, very unusual results will be seen when your edit is previewed or saved. Be sure to include that pipe at the very end of the text if the {{para|h}} parameter is used to form a hatnote.''
==== Rcat parameters ====
In addition to this template's ability to act as a shell template for rcats, it accepts all of the parameters that rcats accept. Rcat parameters, when needed, will work in this template as follows:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|
{{R from plural|printworthy}}
}}
</syntaxhighlight>
This subdues the {{c|Unprintworthy redirects}} category to which {{tl|R from plural}} defaults and populates the {{c|Printworthy redirects}} category instead. The position an rcat holds will have no effect on the parameters of other rcats that are used to tag a redirect:
<syntaxhighlight lang="wikitext" style="font-size:95%;overflow:auto;">
{{Redirect category shell|
{{R from move}}
{{R from modification}}
{{R from alternative name}}
{{R from alternative language|en|es}}
{{R for convenience}}
{{R from plural|printworthy}}
{{R printworthy}}
}}
</syntaxhighlight>
In the above example, {{tl|R from plural}} is the sixth rcat, and its first parameter is used to change from "unprintworthy" to "printworthy". {{tl|R from alternative language}}) holds the 4th position, and its first parameter is used to house the [[Wikipedia:Template messages/Redirect language codes|ISO 639 language code]] of the source language, in this case '''<code>{{nbsp}}en{{nbsp}}</code>''' for [[English language|English]]. Its second parameter houses the language code for the targeted page, in this case '''<code>{{nbsp}}es{{nbsp}}</code>''' for the [[Spanish language]]. It does not matter if the relative position of these rcats changes for any reason, their individual parameters will continue to be effective.
If more rcat parameters are used, then they work the same way. For example, if a redirect exists that is a misspelling of a title, it can be tagged with {{tl|R from misspelling}} in the following manner:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|
{{R from misspelling|(correct spelling if needed)|printworthy}}
{{R printworthy}}
}}
</syntaxhighlight>
In this case, the rcat's ''{{para|1}}'' parameter is the correct spelling (used only if the target of the redirect is '''not''' the correct spelling). The rcat's ''{{para|2}}'' parameter can be used to change from the default "unprintworthy" categorization. Some misspellings may be helpful in a printed version of ''Wikipedia'', so the second parameter in ''R from misspelling'' above is used to subdue its default "unprintworthy" category sort, and the redirect will populate {{cat|Printworthy redirects}} instead. In this shell template, the order of the rcats will not affect the rcats' parameters. If an editor checks the page history and finds that the above redirect is also the result of a page move and inserts {{tl|R from move}} at the top of the order:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|
{{R from move}}
{{R from misspelling|(correct spelling)|printworthy}}
{{R printworthy}}
}}
</syntaxhighlight>
...the parameters of the ''R from misspelling'' rcat template will not be affected, as they may be when used in the ''This is a redirect'' template.
An example of a "printworthy misspelling" can be found at template {{tl|R from misspelling}}.
'''Another example:'''
<syntaxhighlight lang="wikitext">
{{Redirect category shell|
{{R from alternative language|ja|es}}
{{R unprintworthy}}
}}
</syntaxhighlight>
The above code will sort the redirect into three categories:
* {{c|Redirects from Japanese-language terms}} ({{para|1|ja}}),
* {{c|Redirects to Spanish-language terms}} ({{para|2|es}}) and
* {{c|Unprintworthy redirects}}
''See the lists of [[List of ISO 639-1 codes|ISO 639-1]] and [[List of ISO 639-2 codes|ISO 639-2]] codes for two- and three-letter language codes that can be used this way. See also [[Wikipedia:Template messages/Redirect language codes]] for common codes that are already used on redirects.''
=== When used alone ===
This template is designed to help contributors who are unfamiliar with categorizing redirects by enabling them to sort redirects into the monitored {{c|Miscellaneous redirects}} category. Do not hesitate to use this important function to help with sorting redirects to correct and appropriate categories.
There are two ways to sort a redirect into the ''Miscellaneous redirects category''. When this template is used without any rcats, it will perform the miscellaneous sort:
{{tlx|Redirect category shell}}...
{{Redirect category shell|nocat=true}}
Also, if one or more rcats are known, but an editor is unsure that there might be one or more ''other'' rcats that are needed, then leave the first parameter blank (type two pipes together → <code>||</code>):
<syntaxhighlight lang="wikitext">
{{Redirect category shell||
{{R from subtopic}}
{{R printworthy}}
}}
</syntaxhighlight>
{{Redirect category shell|nocat=true||
{{R from subtopic|embed=yes}}
{{R printworthy|embed=yes}}
}}
Monitors of the ''Miscellaneous redirects'' category will check the redirect, add other rcats if needed and then remove the empty first parameter.
==Comparison==
[[Template:Redirect category shell/Comparison]] shows the difference in the appearance of text between when individual rcats are used and when this template is used.
==Other templates==
This template may also carry and hold other templates within it. Even the {{tl|DEFAULTSORT}} magic word and a [[WP:sort key|sort key]] may be used either inside this template or below it. Another template commonly used within the ''Redirect category shell'' template is {{tl|Italic title}} and its shortcut to format titles in italics. Some rcats such as {{tl|R from book}} and {{tl|R from film}} automatically format the redirect names in italics. Any appropriate template may be used within this shell template in the following manner:
<syntaxhighlight lang="wikitext">
{{Redirect category shell|
{{R from move}}
{{R from alternative name}}
{{Italic title}}
{{DEFAULTSORT:Hobbit, The}}
}}
</syntaxhighlight>
==Notes==
{{anchor|Mbox-based}}
'''Mbox note'''
{{Reflist|group="Mbox note"}}
'''Printworthiness note'''
{{See also|Wikipedia:Printability}}
{{Reflist|group="Printworthiness note"}}
== අමතර අවධානයට ==
* {{tl|Talk page of a redirect}}, to "[[WP:SRD|soft]]" redirect a [[WP:subject page|subject page]]'s talk page that has already been created '''''and given content''''' (project banners, deletion/merge notices, discussions)
* [[Wikipedia:Protection policy]], for questions related to this template's ability to detect protection levels
* [[Wikipedia:Template index/Redirect pages]], a functional and an alphabetical index of rcats
* [[Wikipedia:WikiProject Redirect/Style guide|WikiProject Redirect/Style guide]]
==Tracking categories==
* {{clc|Redirect category shell without parameters}}
==TemplateData==
{{TemplateData header}}
<templatedata>
{
"params": {
"1": {
"label": "Redirect categories",
"description": "1 or more redirect category templates.",
"example": "{{R from alternative name}}",
"type": "content",
"suggested": true
},
"2": {
"label": "Redirect categories (more needed)",
"description": "Same as Redirect categories, except that the redirect is also added to Category:Miscellaneous redirects.",
"type": "content"
},
"h": {
"label": "Hatnote",
"description": "A hatnote to display above the redirect categories.",
"type": "line"
},
"nocat": {
"label": "No category",
"description": "Don't add this redirect to Category:Miscellaneous redirects, even if Redirect categories has been left empty.",
"type": "boolean"
},
"category": {
"label": "Category",
"description": "The category to add this redirect to if the Redirect categories parameter is empty. Defaults to Category:Miscellaneous redirects.",
"example": "[[Category:Miscellaneous redirects]]",
"type": "line"
}
},
"description": "This template may be used to add one or more appropriate redirect category (rcat) templates, along with their parameters, to redirects. Additionally, this template automatically senses, describes, categorizes and changes protection levels when appropriate.",
"paramOrder": [
"1",
"2",
"h",
"nocat",
"category"
]
}
</templatedata>
{{R template index}}
<includeonly>{{sandbox other||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! -->
[[Category:WikiProject Redirect templates|Redirect category shell]]
[[Category:Redirect templates| ]]
[[Category:Template shell templates]]
}}</includeonly>
eye59ei1jlf0ezo89nojbkdh2c2f1ld
සැකිල්ල:Test case/උපදෙස්
10
15811
37942
37183
2026-04-18T08:13:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37942
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}<!-- Please place categories at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Module:Template test case}}
{{Possible-risk}}
__NOTOC__
This template generates a test case for two or more templates. Each template is called with the same parameters, and the test case can be displayed in various different formats.
All parameters passed to this template are passed through to the test-case templates, with the exception of parameters starting with an underscore character (<code>_</code>), which are reserved for internal use.
== භාවිතය ==
=== Basic syntax ===
If no templates are explicitly specified, the module uses the root page of the current page as the first template, and its /sandbox subpage as the second template.
<pre style="margin-left: 2.5em; max-width: 20em;">{{Test case
| [parameter1] = [value1]
| [parameter2] = [value2]
| [parameter3] = [value3]
…
}}</pre>
If only one template is explicitly specified, its /sandbox subpage is used as the second template.
=== Common syntax ===
The following options will work with all different test case formats.
<pre style="margin-left: 2.5em; max-width: 56em; white-space: pre;">{{Test case
<!-- Output formatting and style -->
| _format =
| _output =
| _collapsible =
| _resetRefs =
| _code =
| _showcode =
<!-- Template selection and display name choices -->
| _template =
| _template1 =
| _heading1 =
| _template2 =
| _heading2 =
| _template3 =
| _heading3 =
…
<!-- Remaining unprefixed parameters are passed through to called templates -->
| [parameter1] = [value1]
| [parameter2] = [value2]
| [parameter3] = [value3]
…
}}</pre>
Some test case formats accept additional parameters as well. See their sections for documentation.
== Common parameters ==
{| class="wikitable"
! scope="col" | Parameter
! scope="col" | Description
|-
| {{Para|_format}} || The display format used for the output of the test cases. This can be '[[#Columns|<kbd>columns</kbd>]]', '[[#Rows and tablerows|<kbd>rows</kbd>]]', '[[#Rows and tablerows|<kbd>tablerows</kbd>]]', '[[#Inline|<kbd>inline</kbd>]]' or '[[#Default|<kbd>default</kbd>]]'.
|-
| {{Para|_output}} || Allows changes in how the template's output is displayed. The default output is displayed when the {{Para|_output}} parameter is not specified, or when it is set to any unsupported value. A [[wikipedia:Help:Wikitext#Nowiki|nowiki]] version of the template's output is displayed when {{Para|_output|nowiki}}; this is helpful when there are differences in the underlying [[wikipedia:Help:Wikitext|wikitext]] which are not visible in the default output. Both the default output and nowiki version are displayed when {{Para|_output|nowiki+}}.
|-
| {{Para|_collapsible}} || If set to <code>yes</code> or <code>y</code>, the test case is made collapsible. In fact, if after parsing it determines that the template outputs are functionally identical, the output is automatically collapsed and the visible header background turns green. However, if any of the template outputs differ, the test case is left expanded and the header has a yellow background. See the [[#Collapsible test cases|§ Collapsible test cases]] section below for other parameters which only work in concert with {{Para|_collapsible}}.
|-
| {{Para|_template1}},<br />{{Para|_template2}},<br />{{Para|_template3}}… || The names of the templates to be tested. {{Para|_template1}}'s default is the root page of the current page. If {{Para|_template1}} is explicitly specified, {{Para|_template2}}'s default becomes its /sandbox subpage; otherwise, the default for {{Para|_template2}} is the /sandbox subpage of the current page's root page. Template names should be entered as you would use them in a normal template invocation, i.e. <kbd>3x</kbd>, not <kbd>Template:3x</kbd>. If you need to test a page in the main namespace, simply use a bare colon prefix, i.e. <kbd>:''article name''</kbd>.
|-
| {{Para|_template}} || An alias for {{Para|_template1}}. If both {{Para|_template}} and {{Para|_template1}} are specified, the former takes precedence and the latter is ignored.
|-
| {{Para|_showtemplate1}},<br />{{Para|_showtemplate2}},<br />{{Para|_showtemplate3}}… || If this is set to <code>no</code> or <code>n</code>, then no output is shown for that template. This is useful if you only want to show either the main template or the sandbox template.
|-
| {{Para|_heading1}},<br />{{Para|_heading2}},<br />{{Para|_heading3}}… || Custom headings for each of the template outputs.
|-
| {{Para|_showheader}} || If this is set to <code>no</code> or <code>n</code>, then no headers are shown.
|-
| {{Para|_resetRefs}} || If set to <code>yes</code> or <code>y</code>, any references generated by the templates tested are reset after each template is expanded.
|-
| {{Para|_showcode}} || Show the template code used to make the test case in addition to the parsed output. If an invocation is specified with the {{Para|_code}} parameter (see below), then that is used. Otherwise, an approximation is generated from the arguments. This approximation is not perfect―white space in named arguments is lost and duplicate arguments are ignored—but it should be fine for template code that is input all on one line without spaces between parameters.
|-
| {{Para|_code}} || Used to specify template code inside {{Tag|nowiki}} tags in concert with the {{Para|_showcode}} parameter (see above) to display the template invocation while preserving white space. You must use the magic word <kbd>__TEMPLATENAME__</kbd> instead of the template name. For example: <code><nowiki>| _code = <nowiki>{{__TEMPLATENAME__|first|second|foo=bar}}</nowiki></nowiki></code>.
:'''''Note''''': Due to the way'' {{Tag|nowiki}} ''tags work, the template treats the [[wikipedia:HTML entities|HTML entities]] ''<kbd>&lt;</kbd>'', ''<kbd>&gt;</kbd>'' and ''<kbd>&quot;</kbd>'' as if they were the literal characters ''<code><</code>'', ''<code>></code>'' and ''<code>"</code>'' when used with this parameter.
|}
== Test case formats ==
{{Anchor|Default}}
=== Default format ===
This format is used when '''{{Para|_format}}''' is not specified, or when it's set to '''{{Para|_format|default}}'''. It is not impacted by any extra parameters.
==== උදාහරණ ====
{{Test case|_template1=Ombox|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
{{Anchor|Columns}}
=== Columnar format ===
Set '''{{Para|_format|columns}}''' to arrange the test cases side-by-side in a table. This is especially useful for comparing long and thin templates, such as infoboxes. It is impacted by the following extra parameters:
{| class="wikitable"
! scope="col" | Parameter
! scope="col" | Description
|-
| {{Para|_class}} || Extra CSS classes to declare for the table itself. For instance, {{Para|_class|wikitable}} formats it as a standard wikitable.
|-
| {{Para|_style}} || Custom inline CSS style declarations for the table itself.
|-
| {{Para|_caption}} || Custom caption for the table, replacing the default 'Side-by-side comparison'.
|-
| {{Para|_rowheader}} || An extra heading for the row containing the templates.
|-
| {{Para|_heading0}} || If {{Para|_rowheader}} is supplied, this is an optional heading above it in the template row.
|-
| {{Para|_before}} || This text is displayed before the output of each template.
|-
| {{Para|_after}} || This text is displayed after the output of each template.
|}
==== උදාහරණ ====
{{Test case|_template1=Ombox|_format=columns|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
{{Anchor|Rows and tablerows}}
=== Rows and tablerows formats ===
Setting '''{{Para|_format|rows}}''' or '''{{Para|_format|tablerows}}''' arranges the test case outputs in a vertical line, one above another, in a table. These two formats differ primarily in the placement of the headings: '''{{Para|_format|rows}}''' puts them above the table, whereas '''{{Para|_format|tablerows}}''' has them to the left of the table. They are impacted by the following extra parameters:
{| class="wikitable"
! scope="col" | Parameter
! scope="col" | Description
|-
| {{Para|_class}} || Extra CSS classes to declare for the table itself. For instance, {{Para|_class|wikitable}} formats it as a standard wikitable.
|-
| {{Para|_style}} || Custom inline CSS style declarations for the table itself.
|-
| {{Para|_caption}} || Custom caption for the table.
|}
==== Rows example ====
{{Test case|_template1=Ombox|_format=rows|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
==== Tablerows example ====
{{Test case|_template1=Ombox|_format=tablerows|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
{{Anchor|Inline}}
=== Inline format ===
Set '''{{Para|_format|inline}}''' for test cases that can be displayed entirely on a single line. If used with templates that display over multiple lines, it may produce unexpected results. This format creates a [[wikipedia:Help:Wikitext#Unordered lists|bulleted list]] by placing <code>*</code> before each line of output. It is impacted by the following extra parameters:
{| class="wikitable"
! scope="col" | Parameter
! scope="col" | Description
|-
| {{Para|_addline}} || Text to be added as the last entry in the list, after the template outputs.
|-
| {{Para|_prefix}} || Character to replace <code>*</code> with at the start of each line of output. Using {{Para|_prefix|#}} would display an [[wikipedia:Help:Wikitext#Ordered lists|ordered list]] instead.
|}
{{Ombox|type=notice|text=As this format starts with a bullet, a new line will always be inserted at the start of the template output due to [[phab:T14974|MediaWiki Bug #14974]].}}
==== උදාහරණ ====
:''Using'' {{Template link general|Smallcaps}}
Default:
{{Test case|_format=inline|_template1=Smallcaps|Lorem ipsum}}
With '''{{Para|_showcode|yes}}''':
{{Test case|_format=inline|_showcode=yes|_template1=Smallcaps|Lorem ipsum}}
:''Using'' {{Template link general|Rndfrac}}
With '''{{para|_prefix|#}}''' and '''{{para|_addline}}''':
{{Test case|_format=inline|_prefix=#|_showcode=yes|_template=Rndfrac|0.1234|8|_addline=<code><nowiki>{{Dec to frac|0.125|8}}</nowiki></code> → {{Dec to frac|0.125|8}}}}
== Output ==
The '''{{Para|_output}}''' parameter allows changes in how the template's output is displayed. It should work with any of the [[#Test case formats|test case formats]]; the following examples use '''{{Para|format|tablerows}}'''.
=== Default output ===
The default output is displayed when the '''{{Para|_output}}''' parameter is not specified, or when it is set to any unsupported value; this example uses '''{{Para|_output|default}}'''.
{{Test case|_format=tablerows|_output=XXX|_template1=URL|https://www.example.com|example.com}}
=== Nowiki output ===
A [[wikipedia:Help:Wikitext#Nowiki|nowiki]] version of the template's output is displayed when '''{{Para|_output|nowiki}}'''. This is helpful if there are differences in the underlying [[wikipedia:Help:Wikitext|wikitext]] which are not visible in the default output.
{{Test case|_format=tablerows|_output=nowiki|_template1=URL|https://www.example.com|example.com}}
=== Nowiki+ output ===
Both the default output and nowiki version are displayed when '''{{Para|_output|nowiki+}}'''.
{{Test case|_format=tablerows|_output=nowiki+|_template1=URL|https://www.example.com|example.com}}
== Collapsible test cases ==
If {{Para|_collapsible|y}} or {{Para|_collapsible|yes}}, the test case is made collapsible. The test case is collapsed and given a green heading if all the template outputs are the same. If any of the template outputs differ, the test case is expanded and given a yellow heading. It has the following extra parameters:
{| class="wikitable"
! scope="col" | Parameter
! scope="col" | Description
|-
! scope="row" | {{Para|_title}}
| Use {{Para|_title}} to display a custom title for collapsible test cases.
|-
! scope="row" | {{Para|_titlecode}}
| Use {{Para|_titlecode|yes}} to display the template's code as the title of a collapsible test case.
|-
! scope="row" | {{Para|_notcollapsed}}
| If {{Para|_notcollapsed|yes}} or {{Para|_notcollapsed|y}}, the test case will always be expanded upon loading the page. If set to <code>no</code> or <code>n</code>, it will always be collapsed upon loading the page. This setting overrides the default functionality in which the test case is collapsed unless two or more outputs do not match.
|}
=== උදාහරණ ===
==== Default title ====
{{Test case|_template1=Ombox|_collapsible=yes|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
==== With {{Para|_title}} ====
{{Test case|_template1=Ombox|_collapsible=yes|_format=columns|_title=Using the columns format|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
{{Test case|_template1=Ombox|_collapsible=yes|_format=rows|_title=Using the rows format|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
{{Test case|_template1=Ombox|_template2=Tmbox|_collapsible=yes|_title=Example of differing output|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
==== With {{Para|_titlecode|yes}} ====
This is useful for templates with a small number of parameters. It displays the template code in the title, eliminating the need for both '''{{Para|_title}}''' and '''{{Para|_showcode|yes}}'''. For actual tests implemented with '''{{Para|_titlecode|yes}}''', see [[Template:URL/testcases]].
{{Test case|_collapsible=yes|_titlecode=yes|_format=tablerows|_output=nowiki+|_template1=URL|www.example.com}}
==== With {{Para|_notcollapsed|yes}} ====
If '''{{Para|_notcollapsed|yes}}''', the test case will always be expanded upon loading the page. This setting overrides the default functionality in which the test case is collapsed unless two or more outputs do not match. The following example would normally be collapsed, as indicated by green background of title:
{{Test case|_template1=Ombox|_template2=Ombox|_collapsible=yes|_notcollapsed=yes|_title=Example of same output|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
==== With {{Para|_notcollapsed|no}} ====
If '''{{Para|_notcollapsed|no}}''', the test case will always be collapsed upon loading the page. This setting overrides the default functionality in which the test case is collapsed unless two or more outputs do not match. The following would normally be expanded, as indicated by yellow background of title:
{{Test case|_template1=Ombox|_template2=Tmbox|_collapsible=yes|_notcollapsed=no|_title=Example of differing output|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
== Additional examples ==
=== With {{Para|_showcode}} ===
==== භාවිතය ====
<pre style="background-color: #eee; overflow: auto;">
{{Test case|_template1=Ombox|_showcode=yes|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
</pre>
==== Output ====
{{Test case|_template1=Ombox|_showcode=yes|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
=== With {{Para|_showcode}}, using a nowiki invocation via {{Para|_code}} ===
==== භාවිතය ====
<pre style="background-color: #eee; overflow: auto;">
{{Test case|_template1=Ombox|_showcode=yes
|_code =
<nowiki>{{__TEMPLATENAME__
| text = Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
}}</nowiki>
|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
}}
</pre>
==== Output ====
{{Test case|_template1=Ombox|_showcode=yes
|_code =
<nowiki>{{__TEMPLATENAME__
| text = Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
}}</nowiki>
|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
}}
=== With {{Para|_showcode}} and {{Para|_collapsible}} ===
==== භාවිතය ====
<pre style="background-color: #eee; overflow: auto;">
{{Test case|_template1=Ombox|_showcode=yes|_collapsible=yes|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
</pre>
==== Output ====
{{Test case|_template1=Ombox|_showcode=yes|_collapsible=yes|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
== Technical limitations ==
The template has the following known technical limitations:
* An error will be generated if processing the entire page takes more than 10 seconds. This is an intentional limit in the [[mw:Extension:Scribunto|Scribunto]] extension that runs [[Module:Template test case]], on which this template is based. If a test cases page takes more than 10 seconds to load, you may need to split it up into different pages.
* When generating the template code used with {{Para|_showcode}}, whitespace in named parameters is ignored, numbered parameters like {{Para|1}} may be incorrectly displayed as positional parameters, and duplicate parameters are ignored. This is due to how template parameters are processed before they are passed to [[Module:Template test case]].
* When using a template invocation inside nowiki tags with the {{Para|_code}} parameter, the [[wikipedia:HTML entities|HTML entities]] &lt;, &gt; and &quot; are converted to the literal characters <, > and ". This is due to the way nowiki tags work.
* For collapsible test cases, all text inside each extension tag (e.g. {{Tag|ref|o}}, {{Tag|references|o}}, {{Tag|gallery|o}} or {{Tag|nowiki|o}}) is treated as equal. These tags are converted to [[wikipedia:Help:Strip markers|strip markers]] before they are passed to the template, and all strip markers include a unique hexadecimal string. Even if strip markers were unstripped before being compared, the same wikitext would not be guaranteed to result in exactly the same unstripped code. So this module ignores the content of strip markers for the purposes of testing equality. This has the unwanted side effect that e.g. all {{Tag|ref}} tags are treated as though they are equal, but should be adequate for most uses.<includeonly>
{{Sandbox other||<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Template test cases| ]]
[[Category:Template namespace templates]]
}}</includeonly>
igjrywy2rfc05oi45etel59u76x5tkw
සැකිල්ල:Strongbad/උපදෙස්
10
15813
37943
37142
2026-04-18T08:13:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37943
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
== භාවිතය ==
This template is used to insert a quick and easy warning or negative notice with high visibility (because it is red) on project and discussion pages (like the following sentence). {{strongbad|1=This template cannot be used in mainspace pages.}} In situations where color is not relevant (color blindness, screen readers, etc.), it renders exactly the same as {{tlx|strong}} (to which it is a CSS-styled call). This template is only for use in template documentation, guidelines, and other Wikibooks-internal purposes. It is the opposite of the {{tlx|stronggood}} template.
:{{tlnull|strongbad|<var>important text</var>}}
or, if the important text contains an equals sign:
:{{tlnull|strongbad|'''1{{=}}'''<var>important text</var>}}
These both render as:
:{{strongbad|important text}}
It is safest to always use the {{para|1}} syntax.
This template puts intentional and explicit {{tag|strong}} (importance, seriousness, or urgency) HTML markup around the text provided as the first parameter.
Because some people are color blind, and some use screen readers, this template should not be used in a manner in which only the color indicates the difference between the content being marked up and other content; it's simply a visual aid for those who can use it.
=== පැරාමිති ===
''See [[Template:Strong#Optional parameters]].''
== අමතර අවධානයට ==
* {{tlx|strong}} – same but not red (same color as surrounding text, usually black)
* {{tlx|stronggood}} – same but green
* {{tlx|em}} – for italic rather than bold semantic emphasis<br />
{{Xt/see also|sb=no}}
{{Semantic markup templates|show}}
<includeonly>{{Sandbox other||{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Semantic markup templates]]
[[Category:Notice and warning templates]]
[[Category:Text color templates]]
}}}}</includeonly>
29ihswnta1t871txwuhnxb8u0cxqwx8
සැකිල්ල:Box-shadow/උපදෙස්
10
15815
37944
36810
2026-04-18T08:14:08Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37944
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- Please add categories and interwikis to the bottom of this page, and also add interwikis to Wikidata. -->
=== භාවිතය ===
=== අමතර අවධානයට ===
<includeonly>
<!-- Categories and interwikis go here, and interwikis also go on Wikidata. -->
[[Category:Box templates]]
</includeonly>
dirgfuzkw9dhc88vlrmkafse9vmp0h4
සැකිල්ල:Test case nowiki/උපදෙස්
10
15833
37945
37182
2026-04-18T08:14:18Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37945
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{lua|Module:Template test case}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
This template generates a test case for two or more templates. Each template is called with the same parameters, and the test case can be displayed in various different formats.
The template output and the template invocations are generated from template code passed inside {{tag|nowiki}} tags passed to the {{para|code}} or {{para|1}} parameters. In this template code, you must use the magic word <code>__TEMPLATENAME__</code> instead of the normal template name.
Template names are specified parameters like {{para|template1}} and {{para|template2}}, etc. If no templates are specified explicitly, the module uses the base page of the current page as the first template, and its /sandbox subpage as the second template. If only one template is specified explicitly, its /sandbox subpage is used as the second template.
== භාවිතය ==
'''Basic syntax'''
<pre>
{{test case nowiki|<nowiki>{{__TEMPLATENAME__
| [param1] = [value1]
| [param2] = [value2]
| [param3] = [value3]
...
}}</nowiki>}}
</pre>
'''Common syntax'''
The following options will work with all different test case formats.
<pre>
{{test case nowiki
| format =
| collapsible =
| resetRefs =
| showcode =
| showheader =
| template =
| template1 =
| showtemplate1 =
| heading1 =
| template2 =
| showtemplate2 =
| heading2 =
| template3 =
| showtemplate3 =
| heading3 =
...
| code = <nowiki>{{__TEMPLATENAME__
| [param1] = [value1]
| [param2] = [value2]
| [param3] = [value3]
...
}}</nowiki>
}}
</pre>
Some test case formats accept additional parameters as well. See their sections for documentation.
== පැරාමිති ==
{| class="wikitable"
|+ Common parameters
|-
! Parameter !! Description
|-
| <code>code</code> or <code>1</code> || The template code, inside {{tag|nowiki}} tags. You must use the magic word "__TEMPLATENAME__" instead of the template name. For example: <code><nowiki>| code = <nowiki>{{__TEMPLATENAME__|first|second|foo=bar}}</nowiki></nowiki></code>. <p>Note: due to the way nowiki tags work, the template treats the [[HTML entities]] &lt;, &gt; and &quot; as if they were the literal characters <, > and " when used with this parameter.</p>
|-
| <code>format</code> || The format to display the test cases in. This can be "columns", "rows", "inline" or "default".
|-
| <code>template1</code>, <code>template2</code>, <code>template3</code>... || The names of the templates to be processed. The default of template1 is the base page of the current page. If template1 is specified, the default for template2 is its /sandbox subpage; if not, the default for template2 is the /sandbox subpage of the base page of the current page. Template names should be entered as you would use them in a normal template invocation, i.e. "3x", not "Template:3x". If you need to test a page in the main namespace you can use a colon prefix, i.e. ":''article name''".
|-
| <code>template</code> || An alias for template1. If both template and template1 are specified, template will take precedence.
|-
| <code>showtemplate1</code>, <code>showtemplate2</code>, <code>showtemplate3</code>... || If this is set to "no", then no output is shown for that template. This is useful if you only want to show the main template, or if you only want to show the sandbox template.
|-
| <code>heading1</code>, <code>heading2</code>, <code>heading3</code>... || Custom headings for each of the templates.
|-
| <code>showheader</code> || If this is set to "no", then no headers are shown.
|-
| <code>collapsible</code> || If set to "yes", the test case is made collapsible. The test case is collapsed and given a green heading if all the template outputs are the same. If any of the template outputs differ, the test case is expanded and given a yellow heading.
|-
| <code>resetRefs</code> || If set to "yes", any references generated by the templates tested are reset after each template is expanded.
|-
| <code>showcode</code> || Set this to "no" to disable showing the template code used to make the test case.
|}
The default test case format doesn't have any extra parameters.
The inline format is for test cases that can be displayed entirely on one line. If used with templates that display on multiple lines it may produce unexpected results. It doesn't have any extra parameters.
The columns format arranges the test cases side by side in a table. This is useful for comparing long and thin templates such as infoboxes. It has the following extra parameters:
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>class</code> || HTML classes for the table. Use {{para|class|wikitable}} to format the table as a wikitable.
|-
| <code>style</code> || Custom inline CSS for the table.
|-
| <code>caption</code> || Custom caption for the table. The default is "Side by side comparison".
|-
| <code>rowheader</code> || An extra heading for the row containing the templates.
|-
| <code>heading0</code> || If rowheader is supplied, this is an optional heading above it in the template row.
|-
| <code>after</code> || This text is displayed after the output of each template.
|}
The rows format arranges the test cases in rows in a table. It has the following extra parameters:
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>class</code> || HTML classes for the table. Use {{para|class|wikitable}} to format the table as a wikitable.
|-
| <code>style</code> || Custom inline CSS for the table.
|-
| <code>caption</code> || Custom caption for the table.
|}
You can use {{para|collapsible|yes}} with any format to turn it into a collapsible test case. If all the template outputs are the same the test case is collapsed and given a green heading. If any of the template outputs differ, the test case is expanded and given a yellow heading. You can set a custom title for collapsible test cases with the {{para|title}} parameter.
== උදාහරණ ==
=== Default ===
;Usage
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{test case nowiki|template1=ombox|code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
</pre>
;Output
{{test case nowiki|template1=ombox|code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
=== Default, collapsible ===
;Usage
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{test case nowiki|template1=ombox|collapsible=yes|<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
</pre>
;Output
{{test case nowiki|template1=ombox|collapsible=yes|<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
=== Default, collapsible, different output ===
;Usage
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{test case nowiki|template1=ombox|template2=tmbox|collapsible=yes|title=Example of differing output|<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
</pre>
;Output
{{test case nowiki|template1=ombox|template2=tmbox|collapsible=yes|title=Example of differing output|<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
=== Inline ===
using [[Template:3x]]
;Usage
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{test case nowiki|template1=3x|collapsible=yes|format=inline|code=<nowiki>{{__TEMPLATENAME__|Lorem ipsum}}</nowiki>}}
</pre>
;Output
{{test case nowiki|template1=3x|format=inline|code=<nowiki>{{__TEMPLATENAME__|Lorem ipsum}}</nowiki>}}
Note: As this format starts with a bullet, a newline will always be inserted at the start of the template output due to [[phab:T14974|bug 14974]].
=== Inline, collapsible ===
;Usage
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{test case nowiki|template1=3x|format=inline|code=<nowiki>{{__TEMPLATENAME__|Lorem ipsum}}</nowiki>}}
</pre>
;Output
{{test case nowiki|template1=3x|collapsible=yes|format=inline|code=<nowiki>{{__TEMPLATENAME__|Lorem ipsum}}</nowiki>}}
=== Columns ===
;Usage
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{test case nowiki|template1=ombox|format=columns|code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
</pre>
;Output
{{test case nowiki|template1=ombox|format=columns|code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
=== Columns, collapsible ===
;Usage
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{test case nowiki|template1=ombox|collapsible=yes|format=columns|title=Using the columns format|<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
</pre>
;Output
{{test case nowiki|template1=ombox|collapsible=yes|format=columns|title=Using the columns format|<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
=== Rows ===
;Usage
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{test case nowiki|template1=ombox|format=rows|code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
</pre>
;Output
{{test case nowiki|template1=ombox|format=rows|code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
=== Rows, collapsible ===
;Usage
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{test case nowiki|template1=ombox|collapsible=yes|format=rows|title=Using the rows format|<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
</pre>
;Output
{{test case nowiki|template1=ombox|collapsible=yes|format=rows|title=Using the rows format|<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
== Technical limitations ==
The template has the following known technical limitations:
* An error will be generated if processing the entire page takes more than 10 seconds. This is an intentional limit in the [[mw:Extension:Scribunto|Scribunto]] extension that runs [[Module:Template test case]], on which this template is based. If a test cases page takes more than 10 seconds to load, you may need to split it up into different pages.
* The template converts the [[HTML entities]] &lt;, &gt; and &quot; inside template invocations to the literal characters <, > and ". This is due to the way nowiki tags work.
* For collapsible test cases, all text inside extension tags (e.g. {{tag|ref|o}}, {{tag|references|o}}, {{tag|gallery|o}} and {{tag|nowiki|o}}) is treated as equal. These tags are converted to [[Help:Strip markers|strip markers]] before they are passed to the template, and all strip markers include a random string as they have to be unique. Even if strip markers were unstripped before being compared, the same wikitext would not be guaranteed to result in exactly the same unstripped code. So this module ignores the content of strip markers for the purposes of testing equality. This has the unwanted side effect that, e.g. <code><nowiki>Some text<ref>foo</ref></nowiki></code> is treated as equal to <code><nowiki>Some text<gallery>bar</gallery></nowiki></code>, but should be adequate for most uses.
== අමතර අවධානයට ==
Templates invoking [[Module:Template test case]]:
* [[Template:Test case]] – a generalised test case template
* [[Template:Testcase rows]] – for a table of test cases arranged in rows
* [[Template:Testcase table]] – for a table of test cases arranged in columns
* [[Template:Inline test case]] – for test cases with small invocations and small output
* [[Template:Collapsible test case]] – for test cases collapsed by default if the results are the same
* [[Template:Nowiki template demo]] – for use in template documentation
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Template test cases| ]]
[[Category:Template namespace templates]]
[[Category:Wikitext processing templates]]
[[Category:Nowiki templates]]
}}</includeonly>
fpcvt58tr5vbwsbb3hk3qeuqpvmd9ob
සැකිල්ල:Nowiki template demo/උපදෙස්
10
15837
37946
37064
2026-04-18T08:14:28Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37946
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{lua|Module:Template test case}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
This template shows a template invocation together with a demonstration of that template's output. The template arguments are passed in once, inside {{tag|nowiki}} tags, and are used to generate both the template invocation and the template output. The demonstration can be displayed in various different formats.
This template is identical to {{tl|test case nowiki}} with the {{para|showtemplate2}} and {{para|showheader}} parameters both set to "no". To see the full range of options available, please see the [[Template:Test case nowiki/උපදෙස්|test case nowiki documentation]].
== භාවිතය ==
===Basic syntax===
<syntaxhighlight lang="wikitext" style="overflow:auto;">
{{nowiki template demo|<nowiki>{{[template name]
| [param1] = [value1]
| [param2] = [value2]
| [param3] = [value3]
...
}}</nowiki>}}
<!-- Or -->
{{nowiki template demo|<nowiki>{{<!-- template name with parameters -->}}</nowiki>}}
</syntaxhighlight>
===Common syntax===
The following options will work with all different test case formats.
<syntaxhighlight lang="wikitext" style="overflow:auto;">
{{nowiki template demo
| format =
| collapsible =
| resetRefs =
| showcode =
| showheader =
| code = <nowiki>{{[template name]
| [param1] = [value1]
| [param2] = [value2]
| [param3] = [value3]
...
}}</nowiki>
}}
</syntaxhighlight>
Some test case formats accept additional parameters as well. See their sections for documentation.
== පැරාමිති ==
{| class="wikitable"
|+ Common parameters
|-
! Parameter !! Description
|-
| <code>code</code> or <code>1</code> || The template code, inside {{tag|nowiki}} tags. You must use the magic word "__TEMPLATENAME__" instead of the template name. For example: <code><nowiki>| code = <nowiki>{{__TEMPLATENAME__|first|second|foo=bar}}</nowiki></nowiki></code>. <p>Note: due to the way nowiki tags work, the template treats the [[HTML entities]] &lt;, &gt; and &quot; as if they were the literal characters <, > and " when used with this parameter.</p>
|-
| <code>format</code> || The format to display the test cases in. This can be "default", "inline", "columns" or "rows". The inline format is for templates that can be displayed entirely on one line. If used with templates that display on multiple lines it may produce unexpected results. The "columns" and "rows" formats are intended for displaying multiple templates in a table, so they are not of much use here. See the [[Template:Test case nowiki/උපදෙස්|test case nowiki documentation]] for more information about them.
|-
| <code>heading1</code> || A custom heading for the template.
|-
| <code>showheader</code> || If this is set to "no", then no headers are shown.
|-
| <code>collapsible</code> || If set to "yes", the demonstration is made collapsible. It is collapsed by default.
|-
| <code>resetRefs</code> || If set to "yes", any references generated by the templates tested are reset after each template is expanded.
|-
| <code>showcode</code> || Set this to "no" to disable display of the template invocation.
|}
You can use {{para|collapsible|yes}} with any format to collapse it. You can set a custom title for collapsible test cases with the {{para|title}} parameter.
== උදාහරණ ==
=== Default ===
==== භාවිතය ====
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{nowiki template demo|code=<nowiki>{{ombox|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
</pre>
====Output====
{{nowiki template demo|code=<nowiki>{{ombox|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
=== Default, collapsible ===
==== භාවිතය ====
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{nowiki template demo|collapsible=yes|<nowiki>{{ombox|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
</pre>
====Output====
{{nowiki template demo|collapsible=yes|<nowiki>{{ombox|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
=== Inline ===
using [[Template:3x]]
==== භාවිතය ====
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{nowiki template demo|format=inline|code=<nowiki>{{3x|Lorem ipsum}}</nowiki>}}
</pre>
====Output====
{{nowiki template demo|format=inline|code=<nowiki>{{3x|Lorem ipsum}}</nowiki>}}
Note: As this format starts with a bullet, a newline will always be inserted at the start of the template output due to [[phab:T14974|bug 14974]].
=== Inline with nowiki output ===
using [[Template:URL]]
==== භාවිතය ====
<pre style="white-space:pre-wrap; overflow:auto; background-color:#eee;">
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | 1= http://www.example.com/path?section=17 }}</nowiki>}}
</pre>
====Output====
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | 1= http://www.example.com/path?section=17 }}</nowiki>}}
== Technical limitations ==
The template has the following known technical limitations:
* An error will be generated if processing the entire page takes more than 10 seconds. This is an intentional limit in the [[mw:Extension:Scribunto|Scribunto]] extension that runs [[Module:Template test case]], on which this template is based. If a test cases page takes more than 10 seconds to load, you may need to split it up into different pages.
* The template converts the [[HTML entities]] &lt;, &gt; and &quot; inside template invocations to the literal characters <, > and ". This is due to the way nowiki tags work.
== අමතර අවධානයට ==
Similar templates:
* [[Template:Demo]] and [[Template:Demo-inline]] which use [[Module:Demo]]
* [[Template:Automarkup]] which uses [[Module:Automarkup]]
Templates invoking [[Module:Template test case]]:
* [[Template:Test case]] – a generalised test case template
* [[Template:Testcase rows]] – for a table of test cases arranged in rows
* [[Template:Testcase table]] – for a table of test cases arranged in columns
* [[Template:Inline test case]] – for test cases with small invocations and small output
* [[Template:Collapsible test case]] – for test cases collapsed by default if the results are the same
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Documentation assistance templates]]
[[Category:Programming typing-aid templates]]
[[Category:Template test cases| ]]
[[Category:Nowiki templates]]
[[Category:Wikitext processing templates]]
}}</includeonly>
qhqr6f9ejgl1xsgpgmq9zeo47fukyaw
සැකිල්ල:Dark mode invert/උපදෙස්
10
15847
37947
36878
2026-04-18T08:14:38Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37947
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
{{tl|Dark mode invert}} inverts the color of the contents its given when dark mode is enabled. It uses <code>skin-invert</code> and <code>skin-invert-image</code>.
== භාවිතය ==
<code>{{((}}Dark mode invert|<'''''content'''''>{{))}}</code>
== පැරාමිති ==
* {{para|1}} - The content to invert when dark mode is enabled.
* {{para|block}} - Set to yes to wrap the output with {{Tag|div}} instead of a {{Tag|span}}.
* {{para|image}} - Set to yes to only invert images.
== උදාහරණ ==
=== Text ===
{{nowiki template demo|<nowiki><span style="color:black;">{{Dark mode invert|I invert}} I do not</span></nowiki>}}
=== Icon ===
{{nowiki template demo|<nowiki>{{Dark mode invert|[[File:Rating-Christgau-dud.svg|20px]]}}</nowiki>}}
=== Image with caption ===
{{nowiki template demo|<nowiki>{{Dark mode invert|[[File:Rating-Christgau-dud.svg|frame|Boom]]}}</nowiki>}}
{{Clear}}
{{nowiki template demo|<nowiki>{{Dark mode invert|image=y|[[File:Rating-Christgau-dud.svg|frame|Boom]]}}</nowiki>}}
{{Clear}}
=== Block ===
{{nowiki template demo|<nowiki>{{Dark mode invert|block=y|1=<div style="background:darkred;color:white;padding:4px;">I am block</div>}}</nowiki>}}
<includeonly>{{Sandbox other||
<!-- Categories below this line -->
[[Category:Text color templates]]
[[Category:Color templates]]
[[Category:Graphics templates]]
}}</includeonly>
n0ae6nq59w5pjb9yxp6l5s85zoizbl0
සැකිල්ල:Programming language/උපදෙස්
10
15891
37948
37107
2026-04-18T08:14:48Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37948
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Placing the {{tlx|programming language}} userbox template on your user page automatically lists you in the category system under the corresponding category so that other users may find you based on your skills. See below for details on the template's use as well as a list of the languages supported.
You can place a box around all your userboxes by putting {{tlx|userboxtop}} above them and {{tlx|userboxbottom}} below them, though the programming userboxes will automatically float to the right side of the page by default and need no box to enclose them.
{{clear}}
=== භාවිතය ===
<pre>
{{programming language|c|1}}
</pre>
Copy and paste the example code above, and replace "c" with the desired language's code and "4" with one of the following characters representing your proficiency level:<br />
{| class="wikitable"
|-
! Level
! Description
|- style="vertical-align: top;"
! 1
| This user is a beginning coder in this language.
|- style="vertical-align: top;"
! 2
| This user is an intermediate coder in this language.
|- style="vertical-align: top;"
! 3
| This user is an advanced coder in this language.
|- style="vertical-align: top;"
! 4
| This user is an expert coder in this language.
|}
===Customizing the format===
It is possible to customize the behavior and appearance of the template with the following override parameters (for example, <tt><nowiki>{{programming language|c|1|align=left}}</nowiki></tt>).
{| class="wikitable"
|-
! align
| Set the alignment on the page. Possible values are left, center, and right (default). This also sets appropriate clearing, so that the boxes will stack automatically in that position (you can override this with the "css-box" override below).
|-
! css-box
| Apply arbitrary [[w:CSS|CSS]] to the box.
|-
! css-left
| Apply arbitrary [[w:CSS|CSS]] to the left cell.
|-
! css-right
| Apply arbitrary [[w:CSS|CSS]] to the right (main) cell.
|-
! category
| Setting this parameter to empty (<code>category=</code>) displays the language box without categorizing the page. For the opposite effect—categorizing the page without displaying the box, see the {{nowrap|{{tlx|Programming language/category}}}} template.
|}
===Languages supported===
See [[Wikibooks:Userboxes/Programming]] for a list of programming languages supported.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Language user templates|{{PAGENAME}}]]
</includeonly>
0a9hkdclk0ovjwypq2kua7wvjzde185
සැකිල්ල:Pp-protected/උපදෙස්
10
16044
37949
37099
2026-04-18T08:14:58Z
Pinthura
3028
Bot: Changing template: Documentation subpage
37949
wikitext
text/x-wiki
{{උපදෙස් උප පිටුව}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This template will not be visible on pages that are not protected. Only [[Wikibooks:Administrators|administrators]] can protect pages.
=== භාවිතය ===
* Use {{tlx|{{lc:{{PAGENAME}}}}}} for the normal template
* Use {{tlx|{{lc:{{PAGENAME}}}}|reason=text}} for applying a specific reason
* Use {{tlx|{{lc:{{PAGENAME}}}}|expiry={{#time:F j, Y|+1 month}}}} for a specific expiration date
* Use {{tlx|{{lc:{{PAGENAME}}}}|small=yes}} for just an icon at the top
* Use {{tlx|{{lc:{{PAGENAME}}}}|expiry=<nowiki>{{subst:#time:F j, Y|+7 days}}</nowiki>}} for a specific expiration time period
Note that ''(UTC)'' will be added automatically.
This template will categorize depending on the namespace in a subcategory of [[:Category:Protected pages]].
=== අමතර අවධානයට ===
{{protection templates}}
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[ප්රවර්ගය:ආරක්ෂණ සැකිලි|Protected]]
</includeonly>
1le2vvr6f61sydj8z7zgy46i9zmd5ro