Difference between revisions of "Template:Breadcrumb2/doc"
From Kerbal Space Program Wiki
(Add doc) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
=== Parameters === | === Parameters === | ||
{{Parameter table|name=both|parameters= | {{Parameter table|name=both|parameters= | ||
− | {{Parameter row|rootimg|The filename of an image to use for the topmost "root" element.|([[File:Home breadcrumb. | + | {{Parameter row|rootimg|The filename of an image to use for the topmost "root" element.|([[File:Home breadcrumb.png|20px]])}} |
{{Parameter row|rootlink|Where the above image should link to.|[[Main Page]]}} | {{Parameter row|rootlink|Where the above image should link to.|[[Main Page]]}} | ||
{{Parameter row|roottext|Text for an optional first "root" link.|Not set}} | {{Parameter row|roottext|Text for an optional first "root" link.|Not set}} | ||
Line 15: | Line 15: | ||
=== Examples === | === Examples === | ||
− | <pre>{{Breadcrumb2|[[ | + | <pre>{{Breadcrumb2|[[Parts]] |[[Engine]]s |[[Liquid fuel engine]]s |[[RE-M3 "Mainsail" Liquid Engine]] }}</pre> |
− | {{Breadcrumb2|[[ | + | {{Breadcrumb2|[[Parts]] |[[Engine]]s |[[Liquid fuel engine]]s |[[RE-M3 "Mainsail" Liquid Engine]] }} |
− | <pre>{{Breadcrumb2|rootimg=Help- | + | <pre>{{Breadcrumb2|rootimg=Help-browser.png |rootlink=Help:Contents |[[Help:Contents/Getting started|Getting started]] |[[Help:Navigation|Navigation]] }}</pre> |
− | {{Breadcrumb2|rootimg=Help- | + | {{Breadcrumb2|rootimg=Help-browser.png |rootlink=Help:Contents |[[Help:Contents/Getting started|Getting started]] |[[Help:Navigation|Navigation]] }} |
− | <pre>{{Breadcrumb2|rootimg= | + | <pre>{{Breadcrumb2|rootimg=Help-magnify.png |rootlink=Help:Contents |roottext=Help |[[Help:Contents/Getting started|Getting started]] |[[Help:Navigation|Navigation]] }}</pre> |
− | {{Breadcrumb2|rootimg= | + | {{Breadcrumb2|rootimg=Help-magnify.png |rootlink=Help:Contents |roottext=Help |[[Help:Contents/Getting started|Getting started]] |[[Help:Navigation|Navigation]] }} |
<pre>{{Breadcrumb2|param1 |param2 |param3 |param4 |param5 |param6 }}</pre> | <pre>{{Breadcrumb2|param1 |param2 |param3 |param4 |param5 |param6 }}</pre> |
Latest revision as of 09:19, 26 February 2020
Error creating thumbnail: /bin/bash: rsvg-convert: command not found |
This is a documentation subpage for Template:Breadcrumb2. It contains usage information, categories and other content that is not part of the original template page. |
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