Difference between revisions of "Template:Breadcrumb2"
Jump to navigation
Jump to search
imported>Quest for Truth (accept any number of parameters) |
(Editing is fast, easy, and affordable) |
||
| 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|Home breadcrumb.svg}}}|20px|link={{{rootlink|Main Page}}}]]{{#if:{{{roottext|}}}| [[{{{rootlink|Main Page}}}|{{{roottext}}}]]}} [[File:Breadcrumb separator.svg|12px|alt=>|link=]]{{<includeonly>safesubst:</includeonly>#invoke:Separated entries|main|separator= [[File:Breadcrumb separator.svg|12px|alt=>|link=]]}}</span><noinclude> | [[File:{{{rootimg|Home breadcrumb.svg}}}|20px|link={{{rootlink|Main Page}}}]]{{#if:{{{roottext|}}}| [[{{{rootlink|Main Page}}}|{{{roottext}}}]]}} [[File:Breadcrumb separator.svg|12px|alt=>|link=]]{{<includeonly>safesubst:</includeonly>#invoke:Separated entries|main|separator= [[File:Breadcrumb separator.svg|12px|alt=>|link=]]}}</span><noinclude> | ||
| − | + | EDITING A WEB PAGE IS FAST, EASY, AND AFFORDABLE | |
{{Documentation}} | {{Documentation}} | ||
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> | ||
Revision as of 03:54, 25 January 2018
20px 12px EDITING A WEB PAGE IS FAST, EASY, AND AFFORDABLE
| This template uses Lua: |
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" (20px)
- rootlink - where the above image should link to. Defaults to Main Page
- 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]]}}
20px 12pxNature 12pxAnimals 12pxExploding animals 12pxExploding whale
{{Breadcrumb2|rootimg = Crystal Clear app help index.png|rootlink = Help:Contents|[[Help:Contents/Getting started|Getting started]]|[[Help:Navigation|Navigation]] }}
20px 12pxGetting started 12pxNavigation
{{Breadcrumb2|rootimg = Question book magnify2.svg|rootlink = Help:Contents|roottext = Help|[[Help:Contents/Getting started|Getting started]]|[[Help:Navigation|Navigation]]}}
20px Help 12pxGetting started 12pxNavigation
{{Breadcrumb2|param1 |param2 |param3 |param4 |param5 |param6 |param7 |param8 |param9 |param10 |param11 |param12}}
20px 12pxparam1 12pxparam2 12pxparam3 12pxparam4 12pxparam5 12pxparam6 12pxparam7 12pxparam8 12pxparam9 12pxparam10 12pxparam11 12pxparam12
{{Breadcrumb2|param1 | |param3 | |param5 }}
20px 12pxparam1 12pxparam3 12pxparam5
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 (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |