Difference between revisions of "Template:Portal category/doc"

From blackwiki
Jump to navigation Jump to search
test>Sardanaphalus
(replaced table with examples)
test>Sardanaphalus
(Undid revision 616294647 by Sardanaphalus (talk))
Line 2: Line 2:
 
<!----EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE---->
 
<!----EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE---->
 
This template is meant to be placed at the top of pages for categories whose contents are related to [[Wikipedia:Portal|portal]]s (i.e. in Wikipedia's [[Wikipedia:Namespace|portal namespace]]). Their [[Help:Category#Parent category|parent category]] is {{cl|Portals}}. See also [[Wikipedia:Avoid self-references]].
 
This template is meant to be placed at the top of pages for categories whose contents are related to [[Wikipedia:Portal|portal]]s (i.e. in Wikipedia's [[Wikipedia:Namespace|portal namespace]]). Their [[Help:Category#Parent category|parent category]] is {{cl|Portals}}. See also [[Wikipedia:Avoid self-references]].
 
+
<!----
 
== Usage ==
 
== Usage ==
{{Unbulleted list |item_style=padding-bottom:1.5em;
 
| <code><nowiki>{{Portal category}}</nowiki></code> produces:
 
{{Portal category}}
 
 
| Use {{para|description}}&nbsp; 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}}&nbsp; 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.}}
 
  
  | Use {{para|linkinfo|''topic''}}&nbsp; 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:
+
{{code|{{braces|Portal category}}}}{{thinsp}} produces the blue-backgrounded message box above and the first two sentences within it.
{{Portal category |linkinfo=Topic}}
+
----->
 +
===Parameters (optional)===
 +
{{Aligned table |style=line-height:1.35em; |col1style=line-height:1.3em;white-space:nowrap;padding-right:1.5em;
 +
| {{para|description|''a description''}}
 +
| Adds ''a description'' of the category and/or its associated portal to the (first) message box.
 +
| {{para||linkinfo}}
 +
| Adds a second message box describing how {{tl|portal}} may be used to present a link to a portal in an article.
 +
  | {{para|linkinfo|''topic''}}
 +
| Sets the portal ''topic'' used to demonstrate the portal link in the second message box (if the link there is incorrect or an alternative required).
 
}}
 
}}
  

Revision as of 23:24, 9 July 2014

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.

Parameters (optional)

Script error: No such module "aligned table".

See also

Other category-header templates