Difference between revisions of "Template:Portal category"
Jump to navigation
Jump to search
test>Sardanaphalus (Transferred {{Portal category note}} as "linkinfo" option) |
test>Sardanaphalus (a slight rephrasing, Ombox for optional second message (portal box)) |
||
| 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 | + | | 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.''''' {{#if:{{{1<includeonly>|</includeonly>}}} |<div style="padding:0.25em 0;line-height:1.35em;">{{{1<noinclude>|[''Optional description'']</noinclude>}}}</div>}} |
| − | + | }} | |
| − | + | {{#if:{{{portalboxinfo<includeonly>|</includeonly>}}}{{{portalname|}}} | |
| − | + | | {{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.1em;"><nowiki>{{portal|</nowiki><includeonly>{{{portalname|{{str crop|{{BASEPAGENAME}}|7}}}}}<!---(i.e. unless portal name supplied as {{{portalname}}}, assume this template transcluded on a page whose {{BASEPAGENAME}} matches "[name] portal" and derive name by cropping its last seven characters (i.e. cropping "[space]portal")---></includeonly><noinclude>(Name)</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>{{{portalname|{{str crop|{{BASEPAGENAME}}|7}}}}}</includeonly><noinclude>(Name)</noinclude>}}</td> </tr> | |
| − | + | </table> | |
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}}<noinclude>{{Documentation}}</noinclude> | }}<noinclude>{{Documentation}}</noinclude> | ||
Revision as of 07:37, 9 July 2014
| This category is meant to contain pages in the portal namespace. It should not be used to categorize articles or pages in other namespaces. [Optional description] |
|
| This template should not be substituted. |
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
- Numbered list item
| The above documentation is transcluded from Template:Portal category/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |