Şablon:Related portals 2/doc
Asayış
Purpose
[çımeyi bıvurne]This is a helper template used to simplify the coding of the {{Related portals}} template. It is unlikely to be of any use elsewhere.
Because the unnamed parameters of {{Related portals}} are passed down here as named parameters, any leading and trailing white space is automatically stripped.
Usage
[çımeyi bıvurne]- first - Pass "1" when creating the first (leftmost) portal link, blank otherwise
- call - Pass "1" to output the portal image, "2" to output the text label underneath
- portalcount - The number of portals in the line of links; used to set the cell width
- image - The name of an image file; if blank then a default image will be used instead
- size - The image size; defaults to 60x60px which seems about right
- portalname - The name of the portal page to be linked to. Do not pass the "Portal:" prefix
See also
[çımeyi bıvurne]- 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