Template:Wn/si/Query button/උපදෙස්
මෙය Template:Wn/si/Query button සඳහා වන උපදෙස් උප පිටුවක් වේ. මෙහි අදාළ සැකිලි පිටුව තුළ අඩංගු නොවන භාව්ත තොරතුරු, ප්රවර්ග, සහ වෙනත් තොරතුරු අන්තර්ගත වේ. |
This template generates a button for performing a wiki action on a page.
භාවිතය
[edit source]There are three required parameters.
page
— The name of the page to be acted upon.query
— The query string for what is do be done to the page. Avoid spaces in this (use underscore instead).text
— The text for the button.
For example, a button labeled "create foobar" to create a page foobar
, using editintro page Template:Foobar/editintro
and initial content Template:Foobar/preload
, could be created by call
- {{Wn/si/Query button/උපදෙස්|page=foobar|query=action=edit&editintro=Template:Foobar/editintro&preload=Template:Foobar/preload|text=create foobar}}
and would appear as
මෙය Template:Wn/si/Query button සඳහා වන උපදෙස් උප පිටුවක් වේ.
මෙහි අදාළ සැකිලි පිටුව තුළ අඩංගු නොවන භාව්ත තොරතුරු, ප්රවර්ග, සහ වෙනත් තොරතුරු අන්තර්ගත වේ.
This template generates a button for performing a wiki action on a page.
භාවිතය
[edit source]There are three required parameters.
page
— The name of the page to be acted upon.query
— The query string for what is do be done to the page. Avoid spaces in this (use underscore instead).text
— The text for the button.
For example, a button labeled "create foobar" to create a page foobar
, using editintro page Template:Foobar/editintro
and initial content Template:Foobar/preload
, could be created by call
- {{Wn/si/Query button/උපදෙස්|page=foobar|query=action=edit&editintro=Template:Foobar/editintro&preload=Template:Foobar/preload|text=create foobar}}
and would appear as
- Template loop detected: Template:Wn/si/Query button/උපදෙස්
There are also two optional parameters.
background
— The color for the background of the button. The default iswhite
.border
— The color for the border of the button. The default isblack
.
For example,
- {{Wn/si/Query button/උපදෙස්|page=foobar|query=action=edit|text=edit foobar|background=yellow|border=red}}
would appear as
- Template loop detected: Template:Wn/si/Query button/උපදෙස්
There are also two optional parameters.
background
— The color for the background of the button. The default iswhite
.border
— The color for the border of the button. The default isblack
.
For example,
- {{Wn/si/Query button/උපදෙස්|page=foobar|query=action=edit|text=edit foobar|background=yellow|border=red}}
would appear as
මෙය Template:Wn/si/Query button සඳහා වන උපදෙස් උප පිටුවක් වේ.
මෙහි අදාළ සැකිලි පිටුව තුළ අඩංගු නොවන භාව්ත තොරතුරු, ප්රවර්ග, සහ වෙනත් තොරතුරු අන්තර්ගත වේ.
This template generates a button for performing a wiki action on a page.
භාවිතය
[edit source]There are three required parameters.
page
— The name of the page to be acted upon.query
— The query string for what is do be done to the page. Avoid spaces in this (use underscore instead).text
— The text for the button.
For example, a button labeled "create foobar" to create a page foobar
, using editintro page Template:Foobar/editintro
and initial content Template:Foobar/preload
, could be created by call
- {{Wn/si/Query button/උපදෙස්|page=foobar|query=action=edit&editintro=Template:Foobar/editintro&preload=Template:Foobar/preload|text=create foobar}}
and would appear as
- Template loop detected: Template:Wn/si/Query button/උපදෙස්
There are also two optional parameters.
background
— The color for the background of the button. The default iswhite
.border
— The color for the border of the button. The default isblack
.
For example,
- {{Wn/si/Query button/උපදෙස්|page=foobar|query=action=edit|text=edit foobar|background=yellow|border=red}}
would appear as
- Template loop detected: Template:Wn/si/Query button/උපදෙස්