模板:Project information/doc
![]() | 此页面是Template:Project information的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
![]() | 本模板含有复杂而精密的扩展语法。 编辑本模板前,建议您先熟悉解析器函数与本模板的设计思路、运作原理等。若您的编辑引发了意外的问题,请尽快撤销编辑,因为本模板可能被大量页面使用。 您所作的编辑可先在模板沙盒或您的个人页面中进行测试。 |
Usage
Syntax
{{Project information | project = <!--- Sets the project name, required ---> | width = <!--- The [[CSS]] width of the object. Defaults to 275px ---> | task_force = <!--- Set to "yes" if not a project ---> | portal = <!--- Parent portal for the project ---> | portal_img = <!--- Sets the image for the portal link. Defaults to [[image:portal.svg]] ---> | portal2 = <!--- Related portal for the project ---> | portal2_img = <!--- Sets the image for the related portal link. Defaults to [[image:portal.svg]] ---> | border = <!--- Sets the border color on the box ---> | bgcolor = <!--- Sets the background color on the box ---> | shortcut = <!--- Shortcut to project ---> | shortcut2 = | shortcut3 = | banner = <!--- Project banner to be used on talk pages ---> | navbox = <!--- Navigational boxes ---> | navbox2 = | navbox3 = | infobox = <!--- Info boxes ---> | infobox2 = | infobox3 = | userbox = <!--- User boxes ---> | userbox2 = | userbox3 = | userboxnote = <!--- Free-form comment, such as a link to more boxes or instructions ---> | stub_cat = <!--- Sets link to the stub category page. Required if setting out stubs ---> | stub = <!--- Project stub templates ---> | stub2 = | stub3 = | cat = <!--- project categories ---> | cat2 = | cat3 = | core = <!--- Top assessed articles that form the core of the project ---> | core2 = | core3 = | tasks = <!--- location of tasks sub page ---> | articles = <!--- List of all articles within the project ---> }}
Add the template to the side panel. The colors of the heading box can be set via hex (#RRGGBB) or by name (Red, etc). If left undefined, they will default to gray for the border and light blue for the background.
General usage
{{Project information | project = Beer | portal = Beer | portal_img = Beer mug.svg | portal2 = Drink | portal2_img = File:Goblet Glass (Banquet).svg | shortcut = WP:BEER | shortcut2 = WP:WPB | banner = beer | userbox = User WikiProject Beer | userbox2 = User:UBX/beer | userbox3 = User:UBX/homebrewer | stub_cat = Beer and brewery | stub = Beer-stub | navbox = Beers of the world | navbox2 = Beer Styles | cat = Beer | cat2 = Breweries | tasks = Wikipedia:WikiProject Beer/tasks | core = Beer }}
Will yield this:
Project Information | ||||||||||||||||||||||||||||||||||||||||||
Colors
{{Project information |project=Beer |border=#CC9000 |bgcolor=#F3DE94 }} Will yield this:
|