Template: Breadcrumb
From Chinese Food Wiki
Documentation
Shows a breadcrumb trail at the top of a page, for example Chinese Food Map › Sichuan Food › Sichuan Cuisine. This is a plain-wikitext template. A Lua version was planned, but Scribunto cannot run Lua on this server yet: saving Module:Breadcrumb fails with a "cannot create process" error. If Lua is enabled later, the trail could be built automatically from each parent page.
Usage
{{Breadcrumb|parent=Sichuan Food}}
parent(or the first unnamed parameter): the page directly above this one, for example the province hub for a dish page.parent2(optional): the level aboveparent. Use it for a third level, for example a dish page under a city hub:{{Breadcrumb|parent=Chengdu Food|parent2=Sichuan Food}}gives Chinese Food Map › Sichuan Food › Chengdu Food › (page).label(optional): text for the current page. The default is the page name.root(optional): the top of the trail. The default is Chinese Food Map. The root is always shown first, and it is not repeated whenparentorparent2is the root itself.
Examples:
- Sichuan Food:
{{Breadcrumb|parent=Chinese Food Map}}→ Chinese Food Map › Sichuan Food - Sichuan Cuisine:
{{Breadcrumb|parent=Sichuan Food}}→ Chinese Food Map › Sichuan Food › Sichuan Cuisine
Place it at the very top of the article text, after the SEO block and before the infobox. Hook classes: cfwk-breadcrumb, cfwk-bc-sep, cfwk-bc-current.