Difference between revisions of "Template:Portal category/doc"
Jump to navigation
Jump to search
test>Sardanaphalus m (→Parameters (optional): simplification) |
test>Sardanaphalus (replaced table with examples) |
||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
| + | {{Unbulleted list |item_style=padding-bottom:1.5em; | ||
| + | | <code><nowiki>{{Portal category}}</nowiki></code> produces: | ||
| + | {{Portal category}} | ||
| − | {{code | + | | Use {{para|description}} to add a description of the category and/or its associated portal to the message box.<br/>For instance, <code><nowiki>{{Portal category |description=This would be a description.}}</nowiki></code> produces: |
| + | {{Portal category |description=This would be a description.}} | ||
| − | + | | Include {{para||linkinfo}} to add a second message box describing how {{tl|portal}} may be used to present a link to a portal in an article.<br/>For example, <code><nowiki>{{Portal category |linkinfo |description=This would be a description.}}</nowiki></code> produces: | |
| − | + | {{Portal category |linkinfo |description=This would be a description.}} | |
| − | | {{para| | + | |
| − | + | | Use {{para|linkinfo|''topic''}} to specify the ''topic'' used to demonstrate portal linking in the second message box (if it is otherwise incorrect or an alternative is required).<br/>For instance, <code><nowiki>{{Portal category |linkinfo=Topic}}</nowiki></code> produces: | |
| − | + | {{Portal category |linkinfo=Topic}} | |
| − | |||
| − | | {{para|linkinfo|''topic''}} | ||
| − | |||
}} | }} | ||
Revision as of 23:05, 9 July 2014
| This is a documentation subpage for Template:Portal category. It contains usage information, categories and other content that is not part of the original template page. |
This template is meant to be placed at the top of pages for categories whose contents are related to portals (i.e. in Wikipedia's portal namespace). Their parent category is Category:Portals. See also Wikipedia:Avoid self-references.
Usage
{{Portal category}}produces:
This category (including subcategories) is meant to contain pages in Wikipedia's portal namespace. It should not be used to categorize articles or pages in other namespaces. - Use
|description=to add a description of the category and/or its associated portal to the message box.
For instance,{{Portal category |description=This would be a description.}}produces:
This would be a description.This category (including subcategories) is meant to contain pages in Wikipedia's portal namespace. It should not be used to categorize articles or pages in other namespaces. - Include
|linkinfoto add a second message box describing how {{portal}} may be used to present a link to a portal in an article.
For example,{{Portal category |linkinfo |description=This would be a description.}}produces:
This would be a description.This category (including subcategories) is meant to contain pages in Wikipedia's portal namespace. It should not be used to categorize articles or pages in other namespaces. - Use
|linkinfo=topicto specify the topic used to demonstrate portal linking in the second message box (if it is otherwise incorrect or an alternative is required).
For instance,{{Portal category |linkinfo=Topic}}produces:
This category (including subcategories) is meant to contain pages in Wikipedia's portal namespace. It should not be used to categorize articles or pages in other namespaces.
See also
Other category-header templates