Breadcrumb Trails: Difference between revisions

(→‎How to code a Breadcrumb Trail: added warning notice)
(8 intermediate revisions by 4 users not shown)
Line 33: Line 33:
*Here is an example of a breadcrumb trail for an Irish parish:
*Here is an example of a breadcrumb trail for an Irish parish:


''[[Ireland Genealogy|Ireland]] [[Image:Gotoarrow.png]] [[Counties of Ireland]] [[Image:Gotoarrow.png]] [[County Antrim Genealogy|County Antrim]]'' [[Image:Gotoarrow.png]] '''Aghagallon, Antrim'''.
{{breadcrumb
| link1=[[Northern Ireland Genealogy|Northern Ireland]]  
| link2=[[Counties of Ireland|Counties of Ireland]]
| link3=[[County Antrim Genealogy|County Antrim]]
| link4=
| link5=[[Aghagallon Civil Parish, County Antrim, Northern Ireland Genealogy|Aghagallon Civil Parish]]
}}


*Notice the hierarchy of this breadcrumb trail:
*Notice the hierarchy of this breadcrumb trail:
Line 45: Line 51:
*The above examples are both examples of hierarchical order.
*The above examples are both examples of hierarchical order.


=== How to code a Breadcrumb Trail ===
 
This section as written does not work. Use the next section: '''Ready made Breadcrum'''
 
Here's how the breadcrumb trail looks in Wikitext:
 
:'''<nowiki>''[[Ireland Genealogy|Ireland]] <nowiki>{{Gotoarrow}}</nowiki> [[Counties of Ireland]] <nowiki>{{Gotoarrow}}</nowiki> [[County Antrim Genealogy|County Antrim]]'' <nowiki>{{Gotoarrow}}</nowiki> [[{{PAGENAME}}]].</nowiki>'''
 
Let’s look at the parts of this breadcrumb trail.
 
*'''<nowiki>[[Ireland Genealogy|Ireland]]</nowiki>'''. The first set of <nowiki>[[ ]]</nowiki> shows the first page of the hierarchical order of articles. Ireland is the first page of the order. (The double brackets indicate an article within FamilySearch Wiki, not a link to an article outside of the wiki which has only a single set of brackets [ ].)<br><br>
*'''<nowiki>{{Gotoarrow}}</nowiki>''' Next comes an arrow pointing to the next article in this hierarchical order. Notice that it is a template. This arrow is pointing to:<br><br>
*'''<nowiki>[[Counties of Ireland]]</nowiki>'''. The link to the next article in the order. It is a link to the article “Counties of Ireland.”<br><br>
*'''<nowiki>{{Gotoarrow}}</nowiki>'''. Another template of an arrow which is pointing to:<br><br>
*'''<nowiki>[[County Antrim Genealogy|County Antrim]]</nowiki>'''. The next link in the order: “County Antrim.” <br><br>
*'''<nowiki>{{Gotoarrow}}</nowiki>'''. Then another template of an arrow which is pointing to:.<br><br>
*'''<nowiki>[[{{PAGENAME}}]]</nowiki>'''. The last link of the order which is normally the last page of the order and the one you are now reading. The <nowiki>{{PAGENAME}}</nowiki> template automatically puts the name of the article you are now reading in this place on the breadcrumb trail. Saves you from having to type it in manually.<br><br>
 
===Ready made breadcrumb trail===
===Ready made breadcrumb trail===
To save some confusion here is a ready to use template for creating breadcrumbs:  Copy and paste this coding into your page where you want the breadcrumb to appear (usually at the very top of the page) and fill in the links:<br>
Here is a ready to use template for creating breadcrumbs:  Copy and paste this coding into your page where you want the breadcrumb to appear (usually at the very top of the page) and fill in the links:<br>
<div style="border:1px solid black; padding:10px">
<div style="border:1px solid black; padding:10px">
<nowiki>{{breadcrumb </nowiki><br>
<nowiki>{{breadcrumb </nowiki><br>
Line 77: Line 66:
*Always leave off the word "Genealogy" in the breadcrumb as it takes up too much room.
*Always leave off the word "Genealogy" in the breadcrumb as it takes up too much room.
*Type the internal links for each page in the chain after each equal sign.
*Type the internal links for each page in the chain after each equal sign.
*If there is only two links, for example, do not type in anything after the equal signs on links 3 and 4.  
*If there are only two links, for example, do not type in anything after the equal signs on links 2, 3 and 4.  
*The fifth one reserved for the last one in the chain.  ''Be sure to put the last link in link 5 not any of the others.''
*The fifth one reserved for the last one in the chain.  ''Be sure to put the last link in link 5 not any of the others.''
*You can type the title of the last link in link five or you could type instead <nowiki>{{PAGENAME}}</nowiki> and your browser it add it automatically when you are on that page.
*You can type the title of the last link in link five or you could type instead <nowiki>{{PAGENAME}}</nowiki> and your browser will add it automatically when you are on that page.


=== Advantages of Breadcrumbs ===
=== Advantages of Breadcrumbs ===
Line 87: Line 76:
*You can easily add other articles in the breadcrumb trail.  
*You can easily add other articles in the breadcrumb trail.  
*Last but not least you might see the need to create an intermediate article between two links in the breadcrumb trail.
*Last but not least you might see the need to create an intermediate article between two links in the breadcrumb trail.
{{H-langs|en=Breadcrumb Trails|pt=Menu Superior (Breadcrumb)}}
[[pt:Menu Superior (Breadcrumb)]]
[[Category:Additional_wikitext_help]]
[[Category:Additional_wikitext_help]]
22,352

edits