微信公众号 CCBible/Bible101/DBible 微博@基督徒百科@Bible101@歌珊地圣经引擎@如鹰展翼而上 QQ群 4619600/226112909/226112998 同步推送#今日真道圣言#
模板:Portal/doc
跳至導覽
跳至搜尋
本文件是Template:Portal的文件子頁面 (見template:subjectspace zh頁自身)。 本頁包含用法資訊、分類和其他非原template:subjectspace zh頁面的內容。 |
[[Category:Template:SUBJECTSPACE ZH說明文件]]
This template is used on 3,500,000 pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
This template is used to produce a link in a box to a portal or portals.
Parameters
{{Portal|Name 1|Name 2|Name 3...|size=Size|boxsize=Boxsize|margin=Margin}}
Name
- The name of the portal. If multiple portal names are used the other parameters will be ignored.
The following additional parameters are available. They are all optional, the default values are chosen to give a good look and feel across the encylopedia and should not be overridden without good reason.
|size=Size
- The width of the icon, as an integer. This is in units of pixels. The default is 28 times the image aspect ratio, which produces an image 28 pixels high.
|boxsize=Boxsize
- The width of the box, as an integer. This is in units of pixels. The default is to use a box wide enough to hold the text, if possible.
|margin=Margin
- The margin around the box. By default, the box is surrounded by a margin of width 0.5em, but this can be customized using
|margin=top right bottom left
(e.g.,|margin=0.25em 0 0.25em 0.25em
) or removed using|margin=0
(zero).
|break=Break
- If set to "Yes", adds a line break before the word "portal".
Images
The portal image defaults to one that is specified in Template:Portal/Images/PortalName for the portal, or a generic image. There is a list of all such images.
Location
Within articles, this template is meant to be placed at the bottom of the article in the See also section.
Examples
Code |
Result |
---|---|
{{Portal|Science}} |
|
{{Portal|Science|size=15}} |
|
{{Portal|Science|boxsize=50}} |
See also
- {{Portal box}}
- {{Portal bar}}
- {{Portal-inline}}