Template:Breadcrumb: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
(Testing)
No edit summary
Line 13: Line 13:
<nowiki>{{Breadcrumb|Software}}</nowiki>
<nowiki>{{Breadcrumb|Software}}</nowiki>
----
----
</noinclude>{{#ifexpr: not {{{2}}}|'''[[Main Page|Main]]''' > '''[[:Category:{{{1}}}|{{{1}}}]]'''}}
</noinclude>{{#if: not {{{2}}}|'''[[Main Page|Main]]''' > '''[[:Category:{{{1}}}|{{{1}}}]]'''}}
{{#ifexpr: {{{2}}} and (not {{{3}}})|'''[[Main Page|Main]]''' > '''[[:Category:{{{1}}}|{{{1}}}]]''' > '''[[:Category:{{{2}}}|{{{2}}}]]'''
{{#ifexpr: {{{2}}} and (not {{{3}}})|'''[[Main Page|Main]]''' > '''[[:Category:{{{1}}}|{{{1}}}]]''' > '''[[:Category:{{{2}}}|{{{2}}}]]'''
----
----
Switch: {{#switch: '{{{1}}}-{{{2}}}' | '{{{1}}}-' = One | '{{{1}}}-{{{2}}}' = Two | More }}
ifeq:  
*{{#ifeq:{{{2|}}}|{{{2|-}}}| 2 was specified (and may be empty) | 2 was not specified }}
*{{#ifeq:{{{3|}}}|{{{3|-}}}| 3 was specified (and may be empty) | 3 was not specified }}
 
if:
*{{#if: {{{2|}}}| a | b}}
*{{#if: {{{2|}}}| a{{{2}}} | b{{{2}}}}}
 


<includeonly>[[Category: {{{1}}}]]</includeonly>
<includeonly>[[Category: {{{1}}}]]</includeonly>

Revision as of 10:23, 11 April 2011

See wikipedia: Breadcrumb_(navigation)

a

1: Main > Test1 {{#ifexpr: {{{2}}} and (not {{{3}}})|Main > Test1 > [[:Category:{{{2}}}|{{{2}}}]]


ifeq:

  • 2 was not specified
  • 3 was not specified

if:

  • b
  • b{{{2}}}
  • Pass

1 and 2: Main > Test1 {{#ifexpr: Test2 and (not {{{3}}})|Main > Test1 > Test2


ifeq:

  • 2 was specified (and may be empty)
  • 3 was not specified

if:

  • a
  • aTest2
  • Pass

1 and 2 and 3: Main > Test1 {{#ifexpr: Test2 and (not Test3)|Main > Test1 > Test2


ifeq:

  • 2 was specified (and may be empty)
  • 3 was specified (and may be empty)

if:

  • a
  • aTest2

Usage Examples

{{Breadcrumb|Software}}


Main > [[:Category:{{{1}}}|{{{1}}}]] {{#ifexpr: {{{2}}} and (not {{{3}}})|Main > [[:Category:{{{1}}}|{{{1}}}]] > [[:Category:{{{2}}}|{{{2}}}]]


ifeq:

  • 2 was not specified
  • 3 was not specified

if:

  • b
  • b{{{2}}}