Difference between revisions of "Template:Portal category"

From blackwiki
Jump to navigation Jump to search
test>Sardanaphalus
(Transferred {{Portal category note}} as "linkinfo" option)
m (30 revisions imported)
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{Cmbox
 
{{Cmbox
 
| image = [[File:Portal-puzzle.svg|40px|link=|alt=]]
 
| image = [[File:Portal-puzzle.svg|40px|link=|alt=]]
| text = This category contains pages which are in the [[Wikipedia:Portal|portal namespace]]; it should not be used to categorize [[Wikipedia:What is an article?|articles]] or pages in other [[Wikipedia:Namespace|namespaces]].
+
| text = {{#if:{{{description|}}} |<div style="padding:0.25em 0;line-height:1.35em;">{{{description}}}</div>}}
{{#if:{{{1|}}}
+
This category (including subcategories) is meant to contain pages in Wikipedia's [[Wikipedia:Portal|portal]] [[Wikipedia:Namespace|namespace]]. It should not be used to categorize [[Wikipedia:What is an article?|articles]] or pages in other namespaces.
  | <div style="padding-top:0.25em;line-height:1.35em;padding-bottom:0.25em;">'''Description'''<br/>{{{1}}}</div>
+
}}
}}
+
<noinclude>{{Documentation}}</noinclude>
{{#if:{{{linkinfo|}}}
 
  | <div style="padding-top:0.25em;line-height:1.35em;padding-bottom:0.25em;">'''Portal link'''
 
    <table style="margin:0;padding:0;" cellspacing="0" cellpadding="0">
 
      <tr>
 
      <td colspan="2"> A common way to link this portal to an article is to add <code style="background:transparent;">{{((}}portal{{!}}<includeonly>{{{link|{{str crop|{{BASEPAGENAME}}|7}}}}}</includeonly><!---(i.e. if supplied, use {{{link}}} as the portal name, otherwise assume this template is transcluded on a page whose {{BASEPAGENAME}} matches "[name] portal" and derive name by cropping its last seven characters (i.e. by cropping "[space]portal")---><noinclude>''(Name)''</noinclude>{{))}}</code> to the start of the article's [[WP:ALSO|"See also" section]]. </td></tr>
 
      <tr>
 
      <td style="width:50%;padding-right:0.5em;"> This will display the following on the righthand side of the page: </td>
 
      <td style="padding-top:0.5em;"> {{portal|<includeonly>{{{link|{{str crop|{{BASEPAGENAME}}|7}}}}}</includeonly><noinclude>''(Name)''</noinclude> |left=true |margin=0}} </td></tr>
 
    </table>
 
    </div>
 
}}
 
}}<noinclude>{{Documentation}}</noinclude>
 

Latest revision as of 16:38, 8 September 2020

Template documentation[view] [edit] [history] [purge]

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