Jump to content

Template:Topology banner: Difference between revisions

From Mathepedia, the mathematical encyclopedia
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{Subject banner|theme=green|collapsed={{#ifeq:{{{collapsed|yes}}}|no|no|yes}}|collapsed-text={{{collapsed-text|This article belongs to Topology}}}|kicker=This article belongs to|subject=Topology|articles={{{articles|2,310}}}|description={{{description|The study of spaces, continuity, and deformation}}}|portal={{{portal|Portal:Topology}}}|button={{{button|View portal}}}|breadcrumbs={{#if:{{{breadcrumb|}}}|{{{breadcrumb}}}|{{#if:{{{breadcrumbs|}}}|{{{breadcrumbs}}}|{{Breadcrumb nav|[[Mathepedia]]|[[Topology]]}}}}}}|art-image={{{art-image|Topology banner background.svg}}}}}</includeonly><noinclude>
<includeonly><templatestyles src="Subject banner/styles.css" /><div class="mp-subject-banner mp-subject-banner--{{{theme|green}}} mw-collapsible {{#ifeq:{{{collapsed|yes}}}|no||mw-collapsed}}"><div class="mp-subject-banner__collapsed-summary">{{{collapsed-text|This article belongs to this subject}}}</div><div class="mp-subject-banner__content mw-collapsible-content"><div class="mp-subject-banner__head"><div class="mp-subject-banner__kicker">{{{kicker|This article belongs to}}}</div><div class="mp-subject-banner__title-row"><div class="mp-subject-banner__title">{{{subject|Subject}}}</div>{{#if:{{{articles|}}}|<div class="mp-subject-banner__count">{{{articles}}} articles</div>}}</div><div class="mp-subject-banner__rule"></div></div><div class="mp-subject-banner__body">{{#if:{{{description|}}}|<div class="mp-subject-banner__description">{{{description}}}</div>}}{{#if:{{{portal|}}}|<div class="mp-subject-banner__actions"><span class="mp-subject-banner__button">[[{{{portal}}}|{{{button|View portal}}}]]</span></div>}}{{#if:{{{breadcrumbs|}}}|<div class="mp-subject-banner__breadcrumbs">{{{breadcrumbs}}}</div>}}</div></div>{{#if:{{{art-image|}}}|{{#ifexist:File:{{{art-image}}}|<div class="mp-subject-banner__art mw-collapsible-content" aria-hidden="true">[[File:{{{art-image}}}|1200px|class=mp-subject-banner__art-file|link=|alt=]]</div>|}}}}</div></includeonly><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>
{{Topology banner}}
{{Subject banner
</pre>
| subject = Topology
 
| articles = 2,310
Initially expanded:
| description = The study of spaces, continuity, and deformation
<pre>
| portal = Portal:Topology
{{Topology banner | collapsed = no }}
| breadcrumbs = {{Breadcrumb nav|[[Mathepedia]]|[[Topology]]|[[General topology]]|[[Homeomorphism]]}}
| art-image = Topology banner formulas.svg
}}
</pre>
</pre>


Override the breadcrumb trail:
The banner is initially collapsed by default. Set <code>collapsed=no</code> to make it initially expanded. Use <code>collapsed-text</code> for the one-line collapsed label.
<pre>
{{Topology banner
| breadcrumb = {{Breadcrumb nav|[[Mathepedia]]|[[Topology]]|[[Hausdorff space]]}}
}}
</pre>


The default right-side artwork uses [[File:Topology banner formulas.svg]].
This template expects [[Template:Subject banner/styles.css]] to exist. It also expects the wiki to load MediaWiki's standard collapsible behavior.
</noinclude>
</noinclude>

Revision as of 17:37, 11 July 2026

Usage

{{Subject banner
 | subject = Topology
 | articles = 2,310
 | description = The study of spaces, continuity, and deformation
 | portal = Portal:Topology
 | breadcrumbs = {{Breadcrumb nav|[[Mathepedia]]|[[Topology]]|[[General topology]]|[[Homeomorphism]]}}
 | art-image = Topology banner formulas.svg
}}

The banner is initially collapsed by default. Set collapsed=no to make it initially expanded. Use collapsed-text for the one-line collapsed label.

This template expects Template:Subject banner/styles.css to exist. It also expects the wiki to load MediaWiki's standard collapsible behavior.