الگو:Selected picture
[[File:{{{image}}}|center|250px|]] |
{{{text}}}
این الگو از ویژگی و دستورهای پیچیده استفاده میکند.
توصیه میشود پیش از ویرایش الگو با دستورهای الگو و توابع تجزیهکننده آشنا شوید. اگر ویرایشتان باعث بروز مشکلات غیرمنتظره شد، خواهشمند است آن را بهسرعت برگردانید، زیرا ممکن است این الگو در شمار زیادی صفحه ظاهر شود. بهیاد داشته باشید که شما میتوانید آزمایش انجام دهید، اما باید همهٔ بهسازیها را پیش از آنکه در اینجا اعمال کنید، در صفحهٔ تمرین عمومی الگو یا فضای کاربریتان بیازمایید. |
حافظهٔ نهان سرور را پاکسازی کنید
This template is used to configure the articles found in the Selected picture section found on most Wikipedia Portal main pages. Used it on the article pages that are linked to the Selected picture sub-page, e.g. Portal:Foo/Selected picture/1. For the quickest and easiest way to create the Portal:Foo/Selected bar sub-page and related article links, use one of the {{Numbered subpages}} templates.
الگو
[ویرایش]{{Selected picture | image = | size = | caption = | gallery = | location = | text = | credit = | link = | page = | archive = | framecolor = }}
استفاده
[ویرایش]It is unnecessary to include braces, quotation marks or other wiki-markup in the template. The |text= and |source= fields do allow the use of wiki-markup at the contributor's discretion.
- image - Places an image relating to the subject of the article on the left side of the section.
- size - Sets the image size, if left out or left blank it will default to 250px.
- caption - Sets the Alt text ( ویکیپدیا:متن جایگزین برای تصاویر), which briefly describes the image, and is spoken or braille-printed by screenreader software.
- gallery - A "yes" will activate the gallery option
- location- Location of gallery on Wikipedia
- credit - Use this to credit the source or photographer that created the image
- text - A brief summary of the subject, positioned below the image.
- link - Sets the link in the Read more... that points to the full article.
- page - Set an auxiliary page for the More selected foo if the sub page is at another location such as Selected image.
- archive - Using this field with a value of no will remove the More selected pictures... link in the lower left corner. Use this field if you are using the |footer= parameter in the {{random box-header subpage}} template on the main portal page.
- framestyle - The style of the frame (border). Choose from
dotted
,dashed
,solid
,double
,groove
,ridge
,inset
, andoutset
. Default value is ridge. - framecolor - Color of the image frame; defaults to #177245 (dark spring green).
نمونهها
[ویرایش]{{Selected picture | image = Orange juice 1 edit1.jpg | size = 250px | caption = لیوانی در حال لبریز شدن از آب پرتقال | text = یک لیوان آب پرتقال | credit = [[وزارت کشاورزی ایالات متحده آمریکا]] | link = Orange juice }}
تولید خواهد شد:
یک لیوان آب پرتقال
نگارخانه (گالری)
[ویرایش]{{Selected picture | image = Panthera tigris sumatran subspecies.jpg | size = | caption = A sunlit Sumatran tiger lying in short grass ... | text = The '''[[ببر سوماترایی]]''' (''Panthera tigris''... | gallery = yes | location = Wikipedia:WikiProject_Cats/Gallery | credit = [[User:Dixi|Monika Betley]]. [[commons:Template:Potd/2004-12#5|A Featured picture of the day.]] | link = Sumatran tiger }}
تولید خواهد شد:
The ببر سوماترایی (Panthera tigris sumatrae) is found only on the اندونزیn island of سوماترا.
جستارهای وابسته
[ویرایش]- 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 hereinbefore, but with 25 links.
- {{75 numbered subpages}} - As hereinbefore, but with 75 links.
- {{100 numbered subpages}} - As hereinbefore, but with 100 links.
- {{Random box-header subpage}}.
- Main portal page formatting templates
- Templates that configure links
- These templates are used to format the articles on the sub-pages
{{Selected X}} - Generic template for situations not listed below.
- Related templates