Views

Difference between revisions of "Template:Breadcrumb"

The Wiki of Unify contains information on clients and devices, communications systems and unified communications. - Unify GmbH & Co. KG is a Trademark Licensee of Siemens AG.

Jump to: navigation, search
 
(30 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude>{{dontchange}}
 
<noinclude>{{dontchange}}
 
<br/>
 
<br/>
Use the template '''Breadcrumb''' to put a breadcrumb path at the top of an article.</noinclude><includeonly><div<!-- class="breadcrumb"-->>
+
Use the template '''Breadcrumb''' to put a breadcrumb path at the top of a page.</noinclude><includeonly><div class="breadcrumb">
{| class="noborder" width="680px"
+
{| class="noborder" width="900"
| style="padding:0px;" class="noborder" |  
+
| style="padding:0px;" class="noborder" width="50" |  
 
{{#switch: {{{1}}}  
 
{{#switch: {{{1}}}  
| de = Sie befinden sich hier
+
| de = Sie&nbsp;befinden&nbsp;sich&nbsp;hier
| You are here
+
| You&nbsp;are&nbsp;here
}}:&nbsp;&nbsp; [[File:Icon_linkarrow.gif|link={{PAGENAME}}]] {{#switch: {{PAGENAME}}  
+
}}:&nbsp;&nbsp;
 +
| style="padding:0px;" class="noborder" | [[File:Icon_linkarrow.gif|link={{PAGENAME}}]] {{#switch: {{PAGENAME}}  
 
| Main Page = Home
 
| Main Page = Home
 
| Hauptseite = Home
 
| Hauptseite = Home
 
| #default = {{#switch: {{{1}}}  
 
| #default = {{#switch: {{{1}}}  
| de = [[Hauptseite|Home]]
+
| de = [[Übersicht|Home]]
| #default = [[Main Page|Home]]
+
| #default = [[Overview|Home]]
 
}} }}&nbsp; {{#ifexist: {{{3}}}  
 
}} }}&nbsp; {{#ifexist: {{{3}}}  
 
| [[File:Icon_linkarrow.gif|link={{{3}}}]] [[{{{3}}}]]&nbsp;  
 
| [[File:Icon_linkarrow.gif|link={{{3}}}]] [[{{{3}}}]]&nbsp;  
Line 24: Line 25:
 
| Main Page =  
 
| Main Page =  
 
| Hauptseite =  
 
| Hauptseite =  
| #default = [[File:Icon_linkarrow.gif{{!}}link={{PAGENAME}}]] {{PAGENAME}}  
+
| #default = <span style="white-space:nowrap;">[[File:Icon_linkarrow.gif{{!}}link=]] {{PAGENAME}}</span>
 +
}}
 +
{{#ifeq: {{{2}}}|0|
 +
| {{#switch: {{{1}}}
 +
| en =
 +
{{!}} class="noborder" width="180" style="padding:0px;" {{!}} [[Image:l-de.gif{{!}}15px{{!}}link={{{2}}}]]&nbsp;&nbsp;[[{{{2}}}{{!}}Diese Seite auf Deutsch]]
 +
| de =
 +
{{!}} class="noborder" width="180" style="padding:0px;" {{!}} [[Image:l-en.gif{{!}}15px{{!}}link={{{2}}}]]&nbsp;&nbsp;[[{{{2}}}{{!}}This page in English]]
 
}}
 
}}
| class="noborder" style="text-align:right;padding:0px;" |
 
{{#switch: {{{1}}}
 
| en = [[Image:l-de.gif{{!}}15px{{!}}link={{{2}}}]]&nbsp;&nbsp;[[{{{2}}}{{!}}Diese Seite auf Deutsch]]
 
| de = [[Image:l-en.gif{{!}}15px{{!}}link={{{2}}}]]&nbsp;&nbsp;[[{{{2}}}{{!}}This page in English]]
 
 
}}
 
}}
 
|}
 
|}
----
 
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
To use this template just copy the following source text in the article (example):
+
To use this template just copy the following source text in the page:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Breadcrumb|(Language)|(Second Language Name)|(Further Breadcrumb Levels)}}
 
{{Breadcrumb|(Language)|(Second Language Name)|(Further Breadcrumb Levels)}}
 
</nowiki></pre>
 
</nowiki></pre>
* Language (optional) = Language of this page (en/de), if this page also exists in the alternative language
+
* Language = Language of this page (en/de), 0 is default (en)
* Second Language Name (mandatory if language is defined) = Name of this article in the second language
+
* Second Language Name (if this page also exists in the alternative language) = Name of this article in the alternative language, 0 means no alternative language
 
* Further Breadcrumb Levels (optional) = If available further pages above this page (max. 3)
 
* Further Breadcrumb Levels (optional) = If available further pages above this page (max. 3)
 +
Examples:
 +
* <pre><nowiki>{{Breadcrumb|0|0|...}}</nowiki></pre> English page without German alternativ page
 +
* <pre><nowiki>{{Breadcrumb|en|0|...}}</nowiki></pre> English page without German alternativ page
 +
* <pre><nowiki>{{Breadcrumb|de|0|...}}</nowiki></pre> German page without English alternativ page
 +
* <pre><nowiki>{{Breadcrumb|en|Deutscher Inhalt|...}}</nowiki></pre> English page with German alternativ page
 +
* <pre><nowiki>{{Breadcrumb|de|English Content|...}}</nowiki></pre> German page with English alternativ page
 
</noinclude>
 
</noinclude>

Latest revision as of 11:08, 3 August 2020

stop hand.svg This template is already used in some articles. Please be careful if you want to make changes.


Use the template Breadcrumb to put a breadcrumb path at the top of a page. To use this template just copy the following source text in the page:

{{Breadcrumb|(Language)|(Second Language Name)|(Further Breadcrumb Levels)}}
  • Language = Language of this page (en/de), 0 is default (en)
  • Second Language Name (if this page also exists in the alternative language) = Name of this article in the alternative language, 0 means no alternative language
  • Further Breadcrumb Levels (optional) = If available further pages above this page (max. 3)

Examples:

  • {{Breadcrumb|0|0|...}}
    English page without German alternativ page
  • {{Breadcrumb|en|0|...}}
    English page without German alternativ page
  • {{Breadcrumb|de|0|...}}
    German page without English alternativ page
  • {{Breadcrumb|en|Deutscher Inhalt|...}}
    English page with German alternativ page
  • {{Breadcrumb|de|English Content|...}}
    German page with English alternativ page