Difference between revisions of "Template:Navi"

From wiki.railtopomodel.org
Jump to: navigation, search
[checked revision][checked revision]
(Zeichen)
(Examples)
Line 39: Line 39:
 
delivers
 
delivers
  
 +
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! colspan="2"| What you should have learned
+
! colspan="4"| What you should have learned
 
|-
 
|-
| colspan="2"|Please, enter a summary!
+
| colspan="4"|Please, enter a summary!
 
|-
 
|-
! colspan="2"| Navigation
+
! colspan="4"| Navigation
 
|-
 
|-
| [[Main_Page|Home]] || [[{{{chapter}}}|{{{chapter}}}]]
+
|'''[[Main_Page|Home]]'''||''←''||''•''||''→''
 
|-
 
|-
|<small>previous:</small><br>{{#if:|[[|]]|&nbsp;}}||<small>next:</small><br>{{#if:|[[|]]|&nbsp;}}
+
|''Chapter''||{{#if:|[[{{#if:|{{{pchapterlink}}}|{{{pchapter}}}}}|{{{pchapter}}}]]}}||[[{{#if:|{{{chapterlink}}}|{{{chapter}}}}}|{{{chapter}}}]]||{{#if:|[[{{#if:|{{{nchapterlink}}}|{{{nchapter}}}}}|{{{nchapter}}}]]}}
 +
|-
 +
|''Section''||{{#if:|[[{{#if:|{{{prevlink}}}|{{{prev}}}}}|{{{prev}}}]]}}||[[{{PAGENAME}}]]||{{#if:|[[{{#if:|{{{nextlink}}}|{{{next}}}}}|{{{next}}}]]}}
 +
|-
 +
|''Subection''||{{#if:|[[{{#if:|{{{sprevlink}}}|{{{sprev}}}}}|{{{sprev}}}]]}}||{{#if:|[[{{#if:|{{{subsectionlink}}}|{{{subsection}}}}}|{{{subsection}}}]]}}||{{#if:|[[{{#if:|{{{snextlink}}}|{{{snext}}}}}|{{{snext}}}]]}}
 
|}
 
|}
  
Line 60: Line 72:
 
|prevlink=RTM Quick Start
 
|prevlink=RTM Quick Start
 
|nextlink=Borders of RTM
 
|nextlink=Borders of RTM
 +
|section=
 
}}</pre>
 
}}</pre>
 
delivers
 
delivers
  
 +
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! colspan="2"| What you should have learned
+
! colspan="4"| What you should have learned
 
|-
 
|-
| colspan="2"|Seid wachsam!
+
| colspan="4"|Seid wachsam!
 
|-
 
|-
! colspan="2"| Navigation
+
! colspan="4"| Navigation
 
|-
 
|-
| [[Main_Page|Home]] || [[RTM modelling concepts|{{RTM}} modelling concepts]]
+
|'''[[Main_Page|Home]]'''||''←''||''•''||''→''
 
|-
 
|-
|<small>previous:</small><br>{{#if:{{RTM}} Quick Start|[[RTM Quick Start|{{RTM}} Quick Start]]|&nbsp;}}||<small>next:</small><br>{{#if:Borders of {{RTM}}|[[Borders of RTM|Borders of {{RTM}}]]|&nbsp;}}
+
|''Chapter''||{{#if:|[[{{#if:|{{{pchapterlink}}}|{{{pchapter}}}}}|{{{pchapter}}}]]}}||[[{{#if:RTM modelling concepts|RTM modelling concepts|{{RTM}} modelling concepts}}|{{RTM}} modelling concepts]]||{{#if:|[[{{#if:|{{{nchapterlink}}}|{{{nchapter}}}}}|{{{nchapter}}}]]}}
 +
|-
 +
|''Section''||{{#if:{{RTM}} Quick Start|[[{{#if:RTM Quick Start|RTM Quick Start|{{RTM}} Quick Start}}|{{RTM}} Quick Start]]}}||||{{#if:Borders of {{RTM}}|[[{{#if:Borders of RTM|Borders of RTM|Borders of {{RTM}}}}|Borders of {{RTM}}]]}}
 +
|-
 +
|''Subection''||{{#if:|[[{{#if:|{{{sprevlink}}}|{{{sprev}}}}}|{{{sprev}}}]]}}||{{#if:|[[{{#if:|{{{subsectionlink}}}|{{{subsection}}}}}|{{{subsection}}}]]}}||{{#if:|[[{{#if:|{{{snextlink}}}|{{{snext}}}}}|{{{snext}}}]]}}
 
|}
 
|}
  
Line 81: Line 106:
 
|chapterlink=RTM modelling concepts
 
|chapterlink=RTM modelling concepts
 
|next=Core elements
 
|next=Core elements
 +
|section=
 
}}</pre>
 
}}</pre>
 
delivers
 
delivers
  
 +
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! colspan="2"| What you should have learned
+
! colspan="4"| What you should have learned
 +
|-
 +
| colspan="4"|
 +
|-
 +
! colspan="4"| Navigation
 
|-
 
|-
| colspan="2"|
+
|'''[[Main_Page|Home]]'''||''←''||''•''||''→''
 
|-
 
|-
! colspan="2"| Navigation
+
|''Chapter''||{{#if:|[[{{#if:|{{{pchapterlink}}}|{{{pchapter}}}}}|{{{pchapter}}}]]}}||[[{{#if:RTM modelling concepts|RTM modelling concepts|{{RTM}} modelling concepts}}|{{RTM}} modelling concepts]]||{{#if:|[[{{#if:|{{{nchapterlink}}}|{{{nchapter}}}}}|{{{nchapter}}}]]}}
 
|-
 
|-
| [[Main_Page|Home]] || [[RTM modelling concepts|{{RTM}} modelling concepts]]
+
|''Section''||{{#if:|[[{{#if:|{{{prevlink}}}|{{{prev}}}}}|{{{prev}}}]]}}||||{{#if:Core elements|[[{{#if:|{{{nextlink}}}|Core elements}}|Core elements]]}}
 
|-
 
|-
|<small>previous:</small><br>{{#if:|[[|]]|&nbsp;}}||<small>next:</small><br>{{#if:Core elements|[[Core elements|Core elements]]|&nbsp;}}
+
|''Subection''||{{#if:|[[{{#if:|{{{sprevlink}}}|{{{sprev}}}}}|{{{sprev}}}]]}}||{{#if:|[[{{#if:|{{{subsectionlink}}}|{{{subsection}}}}}|{{{subsection}}}]]}}||{{#if:|[[{{#if:|{{{snextlink}}}|{{{snext}}}}}|{{{snext}}}]]}}
 
|}
 
|}
 
[[category:contentTemplate]]
 
[[category:contentTemplate]]
 
</noinclude>
 
</noinclude>

Revision as of 14:40, 14 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}}}|{{{chapter}}}]]
Section Navi
Subection
{{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
|section=
}}

delivers









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

delivers









What you should have learned
Navigation
Home
Chapter RailTopoModel® modelling concepts
Section Core elements
Subection