Template:Breadcrumbs/doc: Difference between revisions

From Saintapedia
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "Powerpedia" to "Saintapedia")
Line 25: Line 25:
| {{para|commons}} || Enter {{xt|yes}} or {{xt|no}} to set whether a link is shown for Wiki Commons. || The default is {{xt|no}}.
| {{para|commons}} || Enter {{xt|yes}} or {{xt|no}} to set whether a link is shown for Wiki Commons. || The default is {{xt|no}}.
|- valign=top
|- valign=top
| {{para|powerpedia}} || Enter {{xt|yes}} or {{xt|no}} to set whether a link is shown for Powerpedia. || The default is {{xt|no}}.
| {{para|powerpedia}} || Enter {{xt|yes}} or {{xt|no}} to set whether a link is shown for Saintapedia. || The default is {{xt|no}}.
|- valign=top
|- valign=top
| {{para|openei}} || Enter {{xt|yes}} or {{xt|no}} to set whether a link is shown for Open EI. || The default is {{xt|no}}.
| {{para|openei}} || Enter {{xt|yes}} or {{xt|no}} to set whether a link is shown for Open EI. || The default is {{xt|no}}.
Line 83: Line 83:
|   ||
|   ||
|- valign=top
|- valign=top
! colspan=2 | Breadcrumbs for [[public key infrastructure]] (PKI) that could be used on any page with links to Energy.gov, Wikipedia, Powerpedia, and IM Wiki, but not Open EI, no official website, and no other websites (using all parameters).   
! colspan=2 | 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).   
|- valign=top
|- valign=top
|
|

Revision as of 20:45, 16 September 2024

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).

Note that this template is also designed to work natively within the Private wikis as well.

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.
|energy= Enter the URL for the associated website on energy.gov If the primary website for the page is the energy.gov site, typically use the |url= parameter instead. This option is provided for when the official site for the page is an external site, but there is also an energy.gov site for the topic that should also be linked to.
|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.
|powerpedia= Enter yes or no to set whether a link is shown for Saintapedia. The default is no.
|openei= Enter yes or no to set whether a link is shown for Open EI. The default is no.
|imwiki= Enter yes or no to set whether a link is shown for IM Wiki. 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
|energy=http://energy.gov/cio/pki
|wikipedia=yes
|mediawiki=no
|commons=no
|powerpedia=yes
|openei=no
|imwiki=yes
|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
|energy=http://energy.gov/cio/pki
|powerpedia=yes
|imwiki=yes
}}
PKI on Wikipedia
 
A blank template you can copy from for use on other articles (unused parameters can be deleted)
{{breadcrumbs
|align=
|page=
|url=
|energy=
|wikipedia=yes
|imwiki=no
|openei=no
|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
energyenergy

no description

Unknownoptional
wikipediawikipedia

no description

Default
yes
Auto value
yes
Unknownsuggested
mediawikimediawiki

no description

Unknownoptional
commonscommons

no description

Unknownoptional
powerpediapowerpedia

no description

Unknownoptional
openeiopenei

no description

Unknownoptional
imwikiimwiki

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