Template:FootNavi: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
Ferri Leberl (talk | contribs) No edit summary |
Ferri Leberl (talk | contribs) No edit summary |
||
(20 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! colspan=" | ! colspan="4"| What you should have learned | ||
|- | |- | ||
| colspan=" | | colspan="4"|{{{lesson|Please, enter a summary!}}} | ||
|- | |- | ||
! colspan=" | ! colspan="4"| Navigation | ||
|- | |- | ||
|'''[[Main_Page|Home]]'''||''←''||''•''||''→'' | |||
|- | |- | ||
|''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}}}]]}}||{{{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> | ||
|} | |||
| [[ | |||
| | |||
| | |||
|} | |||
==Usage== | ==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 {{rtm}} home page, the chapter home page, the previous and the next section. | This template offers a standardized menu for the page foot. It offers a chapter ''What you have learned'' and a swift shift to the {{rtm}} home page, the chapter home page, the previous and the next section. | ||
Line 39: | Line 34: | ||
**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. | **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 previous section, if it differs from ''prev''. | ||
** | **nextlink: an argument for the link to the next section, if it differs from ''next''. | ||
**nchapter: an argument for the next chapter | |||
**nchapterlink: an argument for link to the next chapter | |||
**pchapter: an argument for the previous chapter | |||
**pchapterlink: an argument for the previous chapter | |||
**section: An argument for the current section. It will be dispalyed as is, so make links explicit here. The default is a circle link to the respective page. | |||
**subsection: The current subsection | |||
**sprev: the previous subsection | |||
**sprevlink: the link to the previous subsection | |||
**snext: the next subsection | |||
**snextlink: the link to the next subsection | |||
==Examples== | ==Examples== | ||
<pre>{{ | <pre>{{FootNavi}}</pre> | ||
delivers | delivers | ||
<pre>{{ | {{FootNavi}} | ||
<pre>{{FootNavi | |||
|lesson=Seid wachsam! | |lesson=Seid wachsam! | ||
|chapter={{RTM}} | |chapter={{RTM}} Modelling Concepts | ||
|prev={{RTM}} Quick Start | |prev={{RTM}} Quick Start | ||
|next=Borders of {{RTM}} | |next=Borders of {{RTM}} | ||
|chapterlink=RTM | |chapterlink=RTM Modelling Concepts | ||
|prevlink=RTM Quick Start | |prevlink=RTM Quick Start | ||
|nextlink=Borders of RTM | |nextlink=Borders of RTM | ||
|section= | |||
}}</pre> | }}</pre> | ||
delivers | delivers | ||
{ | {{FootNavi | ||
|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= | |||
| | }} | ||
<pre>{{ | <pre>{{FootNavi | ||
|lesson= | |lesson= | ||
|chapter={{RTM}} | |chapter={{RTM}} Modelling Concepts | ||
|chapterlink=RTM | |chapterlink=RTM Modelling Concepts | ||
|next=Core elements | |next=Core elements | ||
|section= | |||
}}</pre> | }}</pre> | ||
delivers | delivers | ||
{ | {{FootNavi | ||
|lesson= | |||
|chapter={{RTM}} Modelling Concepts | |||
|chapterlink=RTM Modelling Concepts | |||
| | |next=Core elements | ||
| | |section= | ||
}} | |||
| | |||
| | |||
[[category:contentTemplate]] | [[category:contentTemplate]] | ||
</noinclude> | </noinclude> |
Latest revision as of 16:49, 10 June 2024
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.
- nextlink: an argument for the link to the next section, if it differs from next.
- nchapter: an argument for the next chapter
- nchapterlink: an argument for link to the next chapter
- pchapter: an argument for the previous chapter
- pchapterlink: an argument for the previous chapter
- section: An argument for the current section. It will be dispalyed as is, so make links explicit here. The default is a circle link to the respective page.
- subsection: The current subsection
- sprev: the previous subsection
- sprevlink: the link to the previous subsection
- snext: the next subsection
- snextlink: the link to the next subsection
Examples
{{FootNavi}}
delivers
What you should have learned | |||
---|---|---|---|
Please, enter a summary! | |||
Navigation | |||
Home | ← | • | → |
Chapter | [[{{{chapter}}}|{{{chapter}}}]] | ||
Section | FootNavi | ||
Subection |
{{FootNavi |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 |
{{FootNavi |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 |