সাঁচ:Random box-header subpage
এই সাঁচটো সাঁচ বিন্যাসৰ জটিল বৈশিষ্টৰে পৰিপূৰ্ণ।
এই সাঁচটো সম্পাদনা কৰাৰ আগতে আপুনি ইয়াৰ ব্যৱস্থাপনা আৰু পাৰ্চাৰ ফাংচন সম্পৰ্কে ভালকৈ জনাতো বাঞ্চনীয়। যদি আপোনাৰ সম্পাদনাই অবাঞ্চিত সমস্যাৰ সৃষ্টি কৰিছে, অনুগ্ৰহ কৰি অতি সোনকালে ইয়াক পূৰ্বৱত কৰক কিয়নো এই সাঁচটো অসংখ্য পৃষ্ঠাত ব্যৱহৃত হৈ থাকিবও পাৰে। মনত ৰাখিব যে, এই সাঁচটোত পৰিবৰ্তন ঘটোৱাৰ আগত আপুনি যিকোনো ধৰণৰ পৰীক্ষা, আৰু সাঁচটো উন্নীতকৰণৰ পৰীক্ষামূলক কাৰ্য সাধাৰণ সাঁচ পৰীক্ষাগাৰ অথবা আপোনাৰ সদস্য স্থানত কৰিব পাৰে। |
The template functions similarly to {{random portal component}}, but is instead made part of the box header template for the portal. Thus all sections of the portal will be configured to randomly display content from the various Portal:Foo/Selected bar sub-pages. The negative side of this is that all sub-pages will be configured to use the same parameters, thus if there are more images than articles, it will not display the whole image set or it will show redlinks in place of content.
Usage
[সম্পাদনা কৰক]This template can be placed at a portal's ..box-header/ subpage in order to transclude a numbered subpage, e.g., of Portal:Box-header, that is randomly selected between the "start"-numbered subpage and the "end"-numbered subpage as follows:
{{<..box-header>/<randomly selected number between "start" and "end">}}
The required set of parameters is as follows:
{{Random box-header subpage|1={{{1}}}|2={{{2}}}}}
This allows the box title and edit link to be passed on to the applicable box-header templates.
Optional parameters include the following:
{{Random box-header subpage|1={{{1}}}|2={{{2}}} |page=<page name> |start=<number> |end=<number> |seed=<number> |watch=<Y> }}
Parameters
[সম্পাদনা কৰক]- 1: (required as is) The box name as specified on the portal page.
- 2: (required as is) The edit link as specified on the portal page.
- page: (optional) The name of the page to be displayed (without the subpage number, e.g., Portal:Foo/box-header/). The default is Portal:Box-header/.
- start: (optional) The starting subpage number. Must be a positive integer. The default is 1.
- end: (optional) The ending subpage number. Must be a positive integer. The default is 42.
- seed: (optional) The default seed is 2 and can be set to any other integer value (used to generate distinct values on the same page). Prime numbers work best, such as 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, and 113.
- watch: (optional) Any value will call the use of Portal:Box-header-watch. The default is Portal:Box-header. Note. The called subpage must include the associated parameter, such as at Portal:Box-header/1 and its related subpages.
Application examples
[সম্পাদনা কৰক]{{Random box-header subpage|1={{{1}}}|2={{{2}}}}} {{Random box-header subpage|1={{{1}}}|2={{{2}}} |page=Portal:Foo/box-header/ |start=1 |end=3 |seed=2 |watch=Y }}
See also
[সম্পাদনা কৰক]- Main portal creation templates -
- {{Box portal skeleton}} - used to create portal main pages
- {{Random portal component}} - used on the portal main page to randomly display articles from the portal sub-pages
- {{Random portal component with nominate}} - used on the portal main page to randomly display articles from the portal sub-pages, adding the option to nominate other Featured foo articles.
- {{Random subpage}} - used on the portal main page to randomly display articles from the portal sub-pages. This template is best used for creating randomly populated Did you know... sections on the portal main page that are intended to include multiple Did you know... facts.
- {{Subpage}}
- {{Numbered subpages}} - used to create article links on portal sub-pages with 50 links.
- {{25 Numbered subpages}} - As above, but with 25 links.
- {{75 Numbered subpages}} - As above, but with 75 links.
- {{Random box-header subpage}}
- Main portal page formatting templates -
- {{Boxheader}}
- {{Box-header}}
- {{Box-header1}}
- {{Box-header2}}
- {{Boxfooter}}
- {{Box-footer}}
- {{Box-footer2}}
- {{Box-Header II}}
- {{Box-header-blank}}
- {{Box-header-groovy}}
- {{Box-header-health}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Box-header-plain}}
- Templates that configure links -
- {{Browsebar}}
- {{Portals}}
- {{Related portals}}
- {{Wikimedia for portals}}
- These templates are used to format the articles on the sub-pages -
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected quote}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected recipe}}
- Related templates
The above documentation is transcluded from সাঁচ:Random box-header subpage/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |