Template:Related portals2/doc
此頁面是Template:Related portals2的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
目标
Easy-to-use template for creating icon tables of related portals for portal pages. Friendly to wide and narrow screens alike, including mobile, and does not require hardcoding icons, etc.
用法
Similar to the Template:Portal inline box; simply provide a list of related portals to show, up to 99 different ones, such as:
{{Related portals2|农业|医学|教育|西班牙}}
宽屏和窄屏
This system uses floats to fit within the browser's window, which allows it to scale to wide screens and narrow ones, like on mobile:
图片
主题的图片在Module:Portal中定义。请查阅Module:Portal、Module:Portal/images中有关增加、更新、移除图片的相关指令。
参见
- {{Portal}}
- {{Related portals}}
- {{Related portal item}} – subitem of this template
主題内容模板
- {{Box portal skeleton}}—用於創建專題頁面的主頁面。
- 在主题首页展示“精选内容”
- {{Transclude list item excerpts as random slideshow}}—transcludes excerpts from recognized content lists, which are populated by a bot.
- {{Transclude random subpage}}—transcludes random portal subpage.
- {{Random portal component}}—transcludes random portal subpage.
- {{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}}—transcludes random portal subpages.
- {{Portal pictures}}—transcludes a slideshow of pictures, utilizing a single-page gallery.
- To organize "selected content" on subpages
- {{Subpage}}—Used to output a box containing a link to subpage.
- {{Numbered subpages}}—outputs an automatic index, transcluding numbered subpages.
- {{Portal subpage}}—outputs a box linking to and transcluding a single subpage.
- {{Portal subpage inline}}—outputs an unordered list item linking to and transcluding a single subpage.
主題頁面格式模板
- {{Box-header}}
- {{Box-header-plain}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Box-footer}}
設置連結的模板
- {{Portal}}
- {{Portal bar}}
- {{Portal-inline}}
- {{Portals}}
- {{Portal-image}}
- {{Portals browsebar}}
- {{Related portals}}
- {{Related portals2}}
- {{Wikimedia for portals}}
所選頁面模板,用於較舊門戶的子頁面
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected quote}}
- {{Selected recipe}}
- {{Selected X}}
相關模板
- {{Project template list}}
- {{Random box-header subpage}}—randomized selection from {{Box-header/1}} to {{Box-header/42}}.