Difference between revisions of "Template:Portal category"

From blackwiki
Jump to navigation Jump to search
test>Sardanaphalus
(parameter name update)
test>Sardanaphalus
(Update from sandbox)
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 is meant to contain pages 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|namespace]]s.'''''
+
| text = '''''This category is meant to contain pages in the [[Wikipedia:Portal|portal]] [[Wikipedia:Namespace|namespace]]. It should not be used to categorize [[Wikipedia:What is an article?|articles]] or pages in other namespaces.''''' {{#if:{{{description|}}} |<div style="padding:0.25em 0;line-height:1.35em;">{{{description}}}</div>}}
  {{#if:{{{1<includeonly>|</includeonly>}}}
+
}}
    | {{#ifeq:{{{1|}}}|linkinfo | |<div style="padding:0.25em 0;line-height:1.35em;">{{{1<noinclude>|[''description'']</noinclude>}}}</div>}}
+
{{#ifexpr:({{#ifeq:{{{1|}}}|linkinfo |1 |0}} or {{#if:{{{linkinfo|}}} |1 |0}}) <!---(i.e. if {{{1}}}="linkinfo" or linkinfo=[something] then...)--->
}} }}
 
{{if either |{{strfind short|{{{1|}}}|linkinfo}} |{{{linkinfo<includeonly>|</includeonly>}}} <!----(i.e. if either {{{1}}}="linkinfo" and/or {{{linkinfo}}}=something)---->
 
 
  | {{Ombox
 
  | {{Ombox
 
     | text =
 
     | text =
<table style="margin:0;padding:0;" cellspacing="0" cellpadding="0">
+
    <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 <!--
+
      <tr>
      --><code style="background:transparent;padding:0 0.1em;"><!--
+
      <td style="vertical-align:middle;line-height:1.35em;"> A standard way to link an article to this portal is to add <!--
        --><nowiki>{{portal|</nowiki><!--
+
        --><code style="background:transparent;padding:0 0.1em;"><!--
                        --><includeonly>{{{linkinfo|{{str crop|{{BASEPAGENAME}}|7}}}}}<!----(i.e. unless portal name supplied as {{{linkinfo}}}, assume this template transcluded on a page whose {{BASEPAGENAME}} matches "[name] portal" and derive name by cropping its last seven characters (i.e. by cropping "[space]portal")----></includeonly><!--
+
        --><nowiki>{{portal|</nowiki>{{{linkinfo|{{str crop|{{BASEPAGENAME}}|7}}}}}<!---(i.e. unless portal topic supplied as {{{linkinfo}}}, 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")---><!--
                        --><noinclude>(Name)</noinclude><!--
+
        --><nowiki>}}</nowiki><!--
        --><nowiki>}}</nowiki><!--
+
        --></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>
      --></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 |{{{linkinfo|{{str crop|{{BASEPAGENAME}}|7}}}}} }} </td>
      <td style="min-width:15.0em;white-space:nowrap;"> {{portal|<includeonly>{{{linkinfo|{{str crop|{{BASEPAGENAME}}|7}}}}}</includeonly><noinclude>(Name)</noinclude>}} </td>
+
      </tr>
</tr>
+
    </table>
</table>
 
 
   }}
 
   }}
}}<!--(end {{if either}})--><noinclude>{{Documentation}}</noinclude>
+
}}<!--(end #ifexpr)--><noinclude>{{Documentation}}</noinclude>

Revision as of 23:21, 9 July 2014

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