Template:Navi: Difference between revisions

From railTOPOMODEL® Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
Line 11: Line 11:
{| class="wikitable"
{| class="wikitable"
|-
|-
! colspan="3"| What you should have learned
! colspan="4"| What you should have learned
|-
|-
| colspan="3"|{{{lesson|Please, enter a summary!}}}
| colspan="4"|{{{lesson|Please, enter a summary!}}}
|-
|-
! colspan="3"| Navigation
! colspan="4"| Navigation
|-
|-
! !![[Main_Page|Home]]!![[{{#if:{{{chapterlink|}}}|{{{chapterlink}}}|{{{chapter}}}}}|{{{chapter}}}]]
![[Main_Page|Home]]!![[{{#if:{{{chapterlink|}}}|{{{chapterlink}}}|{{{chapter}}}}}|{{{chapter}}}]]
|-
|-
| ||''prev''||''next''
|'''[[Main_Page|Home]]'''||''prev''||cur||''next''
|-
|-
|''Chapter''||{{#if:{{{pchapter|}}}|[[{{#if:{{{pchapterlink|}}}|{{{pchapterlink}}}|{{{pchapter}}}}}|{{{pchapter}}}]]}}||{{#if:{{{nchapter|}}}|[[{{#if:{{{nchapterlink|}}}|{{{nchapterlink}}}|{{{nchapter}}}}}|{{{nchapter}}}]]}}
|''Chapter''||{{#if:{{{pchapter|}}}|[[{{#if:{{{pchapterlink|}}}|{{{pchapterlink}}}|{{{pchapter}}}}}|{{{pchapter}}}]]}}||[[{{#if:{{{chapterlink|}}}|{{{chapterlink}}}|{{{chapter}}}}}|{{{chapter}}}]]||{{#if:{{{nchapter|}}}|[[{{#if:{{{nchapterlink|}}}|{{{nchapterlink}}}|{{{nchapter}}}}}|{{{nchapter}}}]]}}
|-
|-
|''Section''||{{#if:{{{prev|}}}|[[{{#if:{{{prevlink|}}}|{{{prevlink}}}|{{{prev}}}}}|{{{prev}}}]]}}||{{#if:{{{next|}}}|[[{{#if:{{{nextlink|}}}|{{{nextlink}}}|{{{next}}}}}|{{{next}}}]]}}
|''Section''||{{#if:{{{prev|}}}|[[{{#if:{{{prevlink|}}}|{{{prevlink}}}|{{{prev}}}}}|{{{prev}}}]]}}||{{{section|[[{{PAGENAME}}]]||{{#if:{{{next|}}}|[[{{#if:{{{nextlink|}}}|{{{nextlink}}}|{{{next}}}}}|{{{next}}}]]}}
|-
|''Subection''||{{#if:{{{sprev|}}}|[[{{#if:{{{sprevlink|}}}|{{{sprevlink}}}|{{{sprev}}}}}|{{{sprev}}}]]}}||{{#if:{{{subsection|}}}|[[{{#if:{{{subsectionlink|}}}|{{{subsectionlink}}}|{{{subsection}}}}}|{{{subsection}}}]]}}||{{#if:{{{snext|}}}|[[{{#if:{{{snextlink|}}}|{{{snextlink}}}|{{{snext}}}}}|{{{snext}}}]]}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
==Usage==
==Usage==

Revision as of 14:31, 13 March 2017

Usage

This template offers a standardized menu for the page foot. It offers a chapter What you have learned and a swift shift to the RailTopoModel® home page, the chapter home page, the previous and the next section.

Arguments

The template has two obligatory and four optional arguments, all of which are named.

  • Obligatory
    • chapter: the chapter, which the page is assigned to
    • lesson: this argument bears the text of the symmary
  • Optional
    • prev: the name of the previous section. Usually it will be identical with the link to the previous section, so the latter can be left away. As there is not allways a previous section, also prev may be empty.
    • next: the name of the previous section. Usually it will be identical with the link to the next section, so the latter can be left away. As there is not allways a next section, also next may be empty.
    • prevlink: an argument for the link to the previous section, if it differs from prev.
    • prevlink: an argument for the link to the next section, if it differs from next.

Examples

{{navi}}

delivers

What you should have learned
Please, enter a summary!
Navigation
Home [[{{{chapter}}}|{{{chapter}}}]]
previous:
 
next:
 
{{navi
|lesson=Seid wachsam!
|chapter={{RTM}} modelling concepts
|prev={{RTM}} Quick Start
|next=Borders of {{RTM}}
|chapterlink=RTM modelling concepts
|prevlink=RTM Quick Start
|nextlink=Borders of RTM
}}

delivers

What you should have learned
Seid wachsam!
Navigation
Home RailTopoModel® modelling concepts
previous:
RailTopoModel® Quick Start
next:
Borders of RailTopoModel®
{{navi
|lesson=
|chapter={{RTM}} modelling concepts
|chapterlink=RTM modelling concepts
|next=Core elements
}}

delivers

What you should have learned
Navigation
Home RailTopoModel® modelling concepts
previous:
 
next:
Core elements