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

From blackwiki
Jump to navigation Jump to search
test>Sardanaphalus
(replaced table with examples)
m (24 revisions imported)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!----EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE---->
 
<!----EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE---->
 +
{{nosubst}}
 
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 ==
+
===Parameters (optional)===
{{Unbulleted list |item_style=padding-bottom:1.5em;
+
{{Aligned table |style=line-height:1.35em; |col1style=line-height:1.3em;white-space:nowrap;padding-right:1.5em;
  | <code><nowiki>{{Portal category}}</nowiki></code> produces:
+
  | {{para|description|''a description''}}
{{Portal category}}
+
  | Adds ''a description'' of the category and/or its associated portal to the first message box.
 
+
  | {{para||nolinkinfo}}
  | 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:
+
| Suppresses the appearance of the second message box (describing how {{tl|portal}} may be used to present a link to a portal).
{{Portal category |description=This would be a description.}}
+
  | {{para|topic|''topic''}}
 
+
| Sets the ''topic'' used to demonstrate the portal link in the second message box (if the link there is incorrect or an alternative required).
  | 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:
 
{{Portal category |linkinfo=Topic}}
 
 
}}
 
}}
  
Line 21: Line 17:
 
{{Other category-header templates}}
 
{{Other category-header templates}}
  
<includeonly>
+
# Numbered list item
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
 
 +
<includeonly>{{Sandbox other||
 
<!----PLEASE ADD CATEGORIES BELOW THIS LINE:---->
 
<!----PLEASE ADD CATEGORIES BELOW THIS LINE:---->
 
[[Category:Category namespace templates]]
 
[[Category:Category namespace templates]]
 
[[Category:Wikipedia Portal templates]]
 
[[Category:Wikipedia Portal templates]]
}}
+
 
</includeonly>
+
}}</includeonly>

Latest revision as of 16:38, 8 September 2020

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

  1. Numbered list item