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

From blackwiki
Jump to navigation Jump to search
test>Sardanaphalus
m (→‎top: missing bracket)
m (24 revisions imported)
 
(12 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)===
{{Aligned table |style=line-height:1.35em; |col1style=line-height:1.3em;white-space:nowrap;padding-right:1.0em;
+
{{Aligned table |style=line-height:1.35em; |col1style=line-height:1.3em;white-space:nowrap;padding-right:1.5em;
  | <code>{{((}}Portal category{{))}}</code>
+
  | {{para|description|''a description''}}
| Default use, producing only the first (blue-backgrounded) of the two message boxes shown above and only the first two sentences within it.
+
  | Adds ''a description'' of the category and/or its associated portal to the first message box.
| <code>{{((}}Portal category {{!}}''optional description''{{))}}</code>
+
  | {{para||nolinkinfo}}
  | Adds ''optional description'' (a description of the category and/or its associated portal) to the message box.
+
  | Suppresses the appearance of the second message box (describing how {{tl|portal}} may be used to present a link to a portal).
  | <code>{{((}}Portal category {{!}}linkinfo{{))}}</code>
+
  | {{para|topic|''topic''}}
  | Adds the second message box describing how {{tl|portal}} may be used to present a link to a portal in an article.
+
  | Sets the ''topic'' used to demonstrate the portal link in the second message box (if the link there is incorrect or an alternative required).
  | <code>{{((}}Portal category {{!}}linkinfo{{=}}''name''{{))}}</code>
 
  | Sets the portal ''name'' used in the second message box if the name and/or link provided is incorrect or a different one is desired.
 
 
}}
 
}}
  
Line 18: Line 17:
 
{{Other category-header templates}}
 
{{Other category-header templates}}
  
<includeonly>
+
# Numbered list item
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
 
 +
<includeonly>{{Sandbox other||
 +
<!----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