Difference between revisions of "Template:Breadcrumb2"
From Kerbal Space Program Wiki
(Add breadcrum) |
m |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="margin-left: 10px; padding: 5px 5px 5px 5px; border-top: 1px solid #C0C0C0; border-bottom: 1px solid #C0C0C0;"> | <span style="margin-left: 10px; padding: 5px 5px 5px 5px; border-top: 1px solid #C0C0C0; border-bottom: 1px solid #C0C0C0;"> | ||
− | [[File:{{{rootimg| | + | [[File:{{{rootimg|Home breadcrumb.png}}}|20px|link={{{rootlink|Main Page}}}]]{{#if:{{{roottext|}}}| [[{{{rootlink|Main Page}}}|{{{roottext}}}]]}} [[File:Breadcrumb separator.png|12px|alt=>|link=]]{{ |
+ | #if: {{{1|}}}|{{{1}}} }}{{ | ||
+ | #if: {{{2|}}}| [[File:Breadcrumb separator.png|12px|alt=>|link=]]{{{2}}}}}{{ | ||
+ | #if: {{{3|}}}| [[File:Breadcrumb separator.png|12px|alt=>|link=]]{{{3}}}}}{{ | ||
+ | #if: {{{4|}}}| [[File:Breadcrumb separator.png|12px|alt=>|link=]]{{{4}}}}}{{ | ||
+ | #if: {{{5|}}}| [[File:Breadcrumb separator.png|12px|alt=>|link=]]{{{5}}}}}{{ | ||
+ | #if: {{{6|}}}| [[File:Breadcrumb separator.png|12px|alt=>|link=]]{{{6}}}}}</span><noinclude> | ||
+ | {{Documentation}} | ||
+ | </noinclude> |
Latest revision as of 09:19, 26 February 2020
Contents
Usage
This template can be used to create navigation breadcrumbs, inspired by those at WikiProject Accessibility.
It should not be used in article space.
Parameters
#/Name | Optional | Description | Default |
---|---|---|---|
rootimg | Yes | The filename of an image to use for the topmost "root" element. | () |
rootlink | Yes | Where the above image should link to. | Main Page |
roottext | Yes | Text for an optional first "root" link. | Not set |
1-6 | Yes | Links to use as breadcrumbs (currently supports up to 6 number) | Not Set |
Examples
{{Breadcrumb2|[[Parts]] |[[Engine]]s |[[Liquid fuel engine]]s |[[RE-M3 "Mainsail" Liquid Engine]] }}
Parts Engines Liquid fuel engines RE-M3 "Mainsail" Liquid Engine
{{Breadcrumb2|rootimg=Help-browser.png |rootlink=Help:Contents |[[Help:Contents/Getting started|Getting started]] |[[Help:Navigation|Navigation]] }}
{{Breadcrumb2|rootimg=Help-magnify.png |rootlink=Help:Contents |roottext=Help |[[Help:Contents/Getting started|Getting started]] |[[Help:Navigation|Navigation]] }}
Help Getting started Navigation
{{Breadcrumb2|param1 |param2 |param3 |param4 |param5 |param6 }}
param1 param2 param3 param4 param5 param6
{{Breadcrumb2|param1 | |param3 | |param5 }}
See also
- {{Breadcrumb}} - similar template with a different appearance, more like MediaWiki's subpage links
The above documentation is transcluded from Template:Breadcrumb2/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |