New Testament Commentary by a Mathematician book. | Site for researching all meanings of Hebrew Bible.

Template:Navigate

From Without Vowels Project
Jump to navigation Jump to search
[[{{#titleparts:Template:Navigate|1}}|{{#titleparts:Template:Navigate|1}}]]
{{#if: |[[{{#titleparts:Template:Navigate|1}}/{{{Prev}}}|{{{Prev}}}]]}} Navigate {{#if: |[[{{#titleparts:Template:Navigate|1}}/{{{Next}}}|{{{Next}}}]]}}


Usage

This template takes six optional variables.

MediaWiki syntax Displays as
{{Navigate
 | Book = Geometry for Elementary School
 | Curr = Introduction
 | Next = Our tools: Ruler and compass}}
Geometry for Elementary School
{{#if: |[[Geometry for Elementary School/{{{Prev}}}|{{{Prev}}}]]}} Introduction {{#if:Our tools: Ruler and compass |Our tools: Ruler and compass}}

{{#ifeq:yes|no|}}

{{Navigate
 | Book = Geometry for Elementary School
 | Curr = Copying a triangle
 | Prev = Copying a line segment
 | Next = Copying an angle}}
Geometry for Elementary School
{{#if:Copying a line segment |Copying a line segment}} Copying a triangle {{#if:Copying an angle |Copying an angle}}

{{#ifeq:yes|no|}}

{{Navigate
 | Book = Geometry for Elementary School
 | Curr = Copying a triangle
 | Prev = Copying a line segment
 | Next = Copying an angle}}
 | PrevText = Prev: Copying a line segment
 | NextText = Next: Copying an angle}}
Geometry for Elementary School
{{#if:Copying a line segment |Prev: Copying a line segment}} Copying a triangle {{#if:Copying an angle |Next: Copying an angle}}

{{#ifeq:yes|no|}}

{{Navigate
 | Book = Geometry for Elementary School
 | Curr = Angles
 | Prev = Lines}}
Geometry for Elementary School
{{#if:Lines |Lines}} Angles {{#if: |[[Geometry for Elementary School/{{{Next}}}|{{{Next}}}]]}}

{{#ifeq:yes|no|}}

Note that the Book and Curr variables default to the book and current sub-page names, respectively. Most cases should not require setting these.
Note that the PrevText and NextText variables override the default display of the target so an alternative text may be substituted.