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

From blackwiki
Jump to navigation Jump to search
test>Sardanaphalus
(→‎Usage: {{para}} etc)
test>Sardanaphalus
(→‎Usage: reformatted)
Line 4: Line 4:
  
 
== Usage ==
 
== Usage ==
 +
 +
{{code|{{braces|Portal category}}}}{{thinsp}} produces the first (blue-backgrounded) of the two message boxes above and the first two sentences within it.
 +
 +
===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.0em;
  | {{code|{{braces|Portal category}}}}
+
  | {{para||''optional 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 ''optional description'' (a description of the category and/or its associated portal) to the (first) message box.
| ... {{para||''optional description''}} ...
+
  | {{para||linkinfo}}
  | Adds ''optional description'' (a description of the category and/or its associated portal) to the message box.
 
  | ... {{para||linkinfo}} ...
 
 
  | Adds the second message box (describing how {{tl|portal}} may be used to present a link to a portal in an article).
 
  | Adds the second message box (describing how {{tl|portal}} may be used to present a link to a portal in an article).
  | ... {{para|linkinfo|''name''}} ...
+
  | {{para|linkinfo|''name''}}
  | 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.
+
  | Sets the portal ''name'' used in the second message box (if the name/link there is incorrect or undesired).
 
}}
 
}}
  

Revision as of 11:56, 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.

Usage

{{Portal category}}Template:Thinsp produces the first (blue-backgrounded) of the two message boxes above and the first two sentences within it.

Parameters (optional)

Script error: No such module "aligned table".

See also

Other category-header templates