Template:Breadcrumbs/doc

From Saintapedia
< Template:Breadcrumbs
Revision as of 21:53, 17 September 2024 by Tom (talk | contribs)
Jump to navigation Jump to search

The template heavily leverages Interwiki links to connect to related pages on other wikis, both internal (Open EI and IM Wiki) and external (Wikipedia and Mediawiki).

Parameters

All parameters are optional in the {{Breadcrumbs}} template.

Parameter Description Notes
|align= Enter left, center, or right to specify the alignment. The default is right.
|page= Specify the article name you want to link to. The default is the name of the article the template is used on.
|url= This is the URL for the official website. If omitted, no official website link will be shown.
|officialwebsite= Enter yes or no to set whether a link is shown to the site specified in |url=. (Deprecated) The default is yes. This parameter only has an effect if an official website URL is provided by |url=, and |officialwebsite=no is specified so that the URL is ignored. A better solution in that case would be to simply omit the |url= parameter.
|wikipedia= Enter yes or no to set whether a link is shown for Wikipedia. The default is yes.
|mediawiki= Enter yes or no to set whether a link is shown for Mediawiki. The default is no.
|commons= Enter yes or no to set whether a link is shown for Wiki Commons. The default is no.
|other= Enter the URL for another site to link to There are also |other2= through |other9= parameters for additional links.
|othername= Enter the name of the site, either as a link or as plain text This should be used whenever |other= is used. It has no effect if |other= is not set. There are also |othername2= through |othername9= parameters for additional links.

Examples

The most basic usage (shown as it would appear if used in the Argonne National Laboratory article).
{{Breadcrumbs}}
Argonne National Laboratory on Wikipedia
 
More detailed breadcrumbs (shown as it would appear if used in the Advanced Research Projects Agency-Energy article).
{{Breadcrumbs
|url=http://arpa-e.energy.gov/
|other=https://www.facebook.com/arpaegov
|othername=[[Facebook]]
|other2=https://twitter.com/ARPAE
|othername2=[[Twitter]]
|other3=http://www.linkedin.com/company/advanced-research-projects-agency-energy-arpa-e-
|othername3=[[LinkedIn]]
|other4=http://www.flickr.com/photos/departmentofenergy/collections/72157623522274893/
|othername4=[http://www.flickr.com Flickr]
|other5=http://vimeo.com/arpae
|othername5=[http://vimeo.com Vimeo]
}}
Official website
Advanced Research Projects Agency-Energy on Wikipedia
Advanced Research Projects Agency-Energy on Facebook
Advanced Research Projects Agency-Energy on Twitter
Advanced Research Projects Agency-Energy on LinkedIn
Advanced Research Projects Agency-Energy on Flickr
Advanced Research Projects Agency-Energy on Vimeo
 
Breadcrumbs for public key infrastructure (PKI) that could be used on any page with links to Energy.gov, Wikipedia, Saintapedia, and IM Wiki, but not Open EI, no official website, and no other websites (using all parameters).
{{Breadcrumbs
|align=right
|page=PKI
|url=
|officialwebsite=no
|wikipedia=yes
|mediawiki=no
|commons=no
|other=
|othername=
|other2=
|othername2=
. . .
|other9=
|othername9=
}}
PKI on Wikipedia
 
A shorter version of the PKI breadcrumbs that uses defaults, and winds up with the same results.
{{Breadcrumbs
|page=PKI
}}
PKI on Wikipedia
 
A blank template you can copy from for use on other articles (unused parameters can be deleted)
{{breadcrumbs
|align=
|page=
|url=
|wikipedia=yes
|other=
|othername=
}}


Template data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Breadcrumbs in articles based on its TemplateData.

TemplateData for Breadcrumbs

No description.

Template parameters

ParameterDescriptionTypeStatus
alignalign

no description

Default
right
Auto value
right
Unknownsuggested
pagepage

no description

Unknownoptional
urlurl

no description

Unknownsuggested
officialwebsiteofficialwebsite

no description

Auto value
no
Unknownsuggested
wikipediawikipedia

no description

Default
yes
Auto value
yes
Unknownsuggested
mediawikimediawiki

no description

Unknownoptional
commonscommons

no description

Unknownoptional
otherother

no description

Unknownoptional
othernameothername

no description

Unknownoptional
other2other2

no description

Unknownoptional
othername2othername2

no description

Unknownoptional
other3other3

no description

Unknownoptional
othername3othername3

no description

Unknownoptional
other4other4

no description

Unknownoptional
othername4othername4

no description

Unknownoptional
other5other5

no description

Unknownoptional
othername5othername5

no description

Unknownoptional

Purge