Mal:Katnav: Forskjell mellom sideversjoner

Fra Wikisida.no
Hopp til navigering Hopp til søk
m (Én sideversjon ble importert)
Ingen redigeringsforklaring
Linje 1: Linje 1:
<templatestyles src="Katnav/styles.css" />
<div id="topicpath" title="catnav" style="border:1px outset #eef;padding:0.3em 0.6em;margin:0 0 0 0;background:#eef;clear:both;font-size:smaller;">[[:Kategori:{{{1}}}|{{{1}}}]]{{
<div role="navigation" aria-label="Breadcrumb" class="breadcrumb">
#if: {{{2|}}}|&nbsp;&gt; {{#ifexist: Kategori:{{{2}}}|[[:Kategori:{{{2}}}|{{{2}}}]]|{{{2}}}}}}}{{
<ol>
#if: {{{3|}}}|&nbsp;&gt; {{#ifexist: Kategori:{{{3}}}|[[:Kategori:{{{3}}}|{{{3}}}]]|{{{3}}}}}}}{{
<li>
#if: {{{4|}}}|&nbsp;&gt; {{#ifexist: Kategori:{{{4}}}|[[:Kategori:{{{4}}}|{{{4}}}]]|{{{4}}}}}}}{{
[[File:{{{rootimg|Home breadcrumb.svg}}}|20px|alt={{{rootalt|{{{rootlink|Forside}}}}}}|link={{{rootlink|Portal:Forside}}}]]{{#if:{{{roottext|}}}|&nbsp;[[{{{rootlink|Forside}}}|{{{roottext}}}]]}}
#if: {{{5|}}}|&nbsp;&gt; {{#ifexist: Kategori:{{{5}}}|[[:Kategori:{{{5}}}|{{{5}}}]]|{{{5}}}}}}}{{
</li>
#if: {{{6|}}}|&nbsp;&gt; {{#ifexist: Kategori:{{{6}}}|[[:Kategori:{{{6}}}|{{{6}}}]]|{{{6}}}}}}}{{
<li>
#if: {{{7|}}}|&nbsp;&gt; {{#ifexist: Kategori:{{{7}}}|[[:Kategori:{{{7}}}|{{{7}}}]]|{{{7}}}}}}}{{
{{<includeonly>safesubst:</includeonly>#invoke:Separated entries|main|separator=</li><li>}}
#if: {{{8|}}}|&nbsp;&gt; {{#ifexist: Kategori:{{{8}}}|[[:Kategori:{{{8}}}|{{{8}}}]]|{{{8}}}}}}}{{
</li>
#if: {{{9|}}}|&nbsp;&gt; {{#ifexist: Kategori:{{{9}}}|[[:Kategori:{{{9}}}|{{{9}}}]]|{{{9}}}}}}} &gt; {{PAGENAME}}</div><noinclude>{{Dokumentasjon}}</noinclude>
</ol>
</div><noinclude>

{{Documentation}}
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
</noinclude>

Sideversjonen fra 5. aug. 2024 kl. 14:14

Maldokumentasjon

This template can be used to create navigation breadcrumbs, inspired by those at WikiProject Accessibility.

It should not be used in article space.

Parameters

  • rootimg - the filename of an image to use for the topmost "root" element. Defaults to "Home breadcrumb.svg" ()
  • rootlink - where the above image should link to. Defaults to Main Page
  • rootalt - alt text for the image. Defaults to the same value as rootlink, or "Main Page" if rootlink is not given.
  • roottext - text for an optional first "root" link. Defaults to none.
  • other unnamed parameters - links to use as breadcrumbs (currently supports unlimited number)

Examples

{{Breadcrumb2|[[Nature]]|[[Animal]]s|[[Exploding animal]]s|[[Exploding whale]]}}


{{Breadcrumb2|rootimg = Crystal Clear app help index.png|rootlink = Help:Contents|rootalt = Help|[[Help:Contents/Getting started|Getting started]]|[[Help:Navigation|Navigation]] }}


{{Breadcrumb2|rootimg = Question book magnify2.svg|rootlink = Help:Contents|rootalt = Help|roottext = Help|[[Help:Contents/Getting started|Getting started]]|[[Help:Navigation|Navigation]]}}


{{Breadcrumb2|param1 |param2 |param3 |param4 |param5 |param6 |param7 |param8 |param9 |param10 |param11 |param12}}


{{Breadcrumb2|param1 | |param3 | |param5 }}

See also