Difference between revisions of "Template:Portal category"

From blackwiki
Jump to navigation Jump to search
test>Sardanaphalus
m (padding tweak)
m (30 revisions imported)
 
(5 intermediate revisions by 5 users not shown)
Line 2: Line 2:
 
| image = [[File:Portal-puzzle.svg|40px|link=|alt=]]
 
| image = [[File:Portal-puzzle.svg|40px|link=|alt=]]
 
| text = {{#if:{{{description|}}} |<div style="padding:0.25em 0;line-height:1.35em;">{{{description}}}</div>}}
 
| text = {{#if:{{{description|}}} |<div style="padding:0.25em 0;line-height:1.35em;">{{{description}}}</div>}}
'''''This category is meant to contain pages and/or subcategories 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.'''''
+
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.
 
}}
 
}}
{{#ifeq:{{{1|}}}|nolinkinfo |<!--(then omit portal-link info, otherwise:)-->
+
<noinclude>{{Documentation}}</noinclude>
| {{Ombox
 
    | text =
 
      <table style="margin:0;padding:0;" cellspacing="0" cellpadding="0">
 
        <tr> <td style="vertical-align:middle;line-height:1.35em;"> A standard way to link an article to this portal is to add <!--
 
              --><code style="background:transparent;padding:0 0.15em;"><!--
 
              -->{{((}}portal{{!}}<!--
 
                  --><includeonly>{{{topic|{{str crop|{{BASEPAGENAME}}|7}}}}}<!-- (i.e. unless portal topic supplied as {{{topic}}}, assume this template transcluded on a page whose {{BASEPAGENAME}} matches "[Topic] portal" and derive topic by cropping its last seven characters (i.e. by cropping "[space]portal"))
 
                  --></includeonly><noinclude>...</noinclude><!--
 
              -->{{))}}<!--
 
              --></code> at the start of the article's [[WP:ALSO|"See also" section]]. The boxed link shown opposite will then appear there on the righthand side of the page.
 
            </td>
 
            <td style="min-width:15.0em;white-space:nowrap;"> <!--
 
              -->{{portal|<includeonly>{{{topic|{{str crop|{{#titleparts:{{BASEPAGENAME}}}}|7}}}}}</includeonly><noinclude>(topic)</noinclude>}}
 
            </td>
 
        </tr>
 
      </table>
 
  }}
 
}}<!--(end #ifeq)--><noinclude>{{Documentation}}</noinclude>
 

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