Difference between revisions of "Template:TYNavigator"

From Free Pascal wiki
Jump to navigationJump to search
(include “Basic Pascal Tutorial/” prefix for easy migration into subpage hierarchy [TY in the template’s name stands for Tao Yue therefore specializing this template is adequate], remove unnecessary <includeonly> directive)
(Undo revision 149799 by Kai Burghardt (talk) UNDO WRONG CHANGES)
Tag: Undo
Line 12: Line 12:
 
This inserts 3 links:
 
This inserts 3 links:
  
* Basic Pascal Tutorial/''PrevPage''/nn
+
* ''PrevPage''/nn
* Basic Pascal Tutorial/Contents/nn
+
* Contents/nn
* Basic Pascal Tutorial/''NextPage''/nn
+
* ''NextPage''/nn
  
 
where '''/nn''' is a language suffix of page in which used template.
 
where '''/nn''' is a language suffix of page in which used template.
Line 23: Line 23:
  
 
[[Category:Navigation Templates]]
 
[[Category:Navigation Templates]]
</noinclude>{| class="wikitable"
+
</noinclude><includeonly>{| class="wikitable"
 
|-
 
|-
| {{#if:{{{1|}}}|[[Basic Pascal Tutorial/{{NameWithoutLngSuffix|{{{1}}}}}{{LngSuffixWithSlash}}|&nbsp;◄&nbsp;]]|<font color="Silver">&nbsp;◄&nbsp;</font>}} || [[Basic Pascal Tutorial/Contents{{LngSuffixWithSlash}}|&nbsp;▲&nbsp;]] || {{#if:{{{2|}}}|[[Basic Pascal Tutorial/{{NameWithoutLngSuffix|{{{2}}}}}{{LngSuffixWithSlash}}|&nbsp;►&nbsp;]]|<font color="Silver">&nbsp;►&nbsp;</font>}}
+
| {{#if:{{{1|}}}|[[{{NameWithoutLngSuffix|{{{1}}}}}{{LngSuffixWithSlash}}|&nbsp;◄&nbsp;]]|<font color="Silver">&nbsp;◄&nbsp;</font>}} || [[Contents{{LngSuffixWithSlash}}|&nbsp;▲&nbsp;]] || {{#if:{{{2|}}}|[[{{NameWithoutLngSuffix|{{{2}}}}}{{LngSuffixWithSlash}}|&nbsp;►&nbsp;]]|<font color="Silver">&nbsp;►&nbsp;</font>}}
|}
+
|}</includeonly>

Revision as of 10:17, 30 January 2022

Navigator for Basic Pascal Tutorial (Tao Yue)

Purpose

This template is designed for adding navigation panel to pages related with Basic Pascal Tutorial (Tao Yue).

Usage

{{TYNavigator|PrevPage|NextPage}}

This inserts 3 links:

  • PrevPage/nn
  • Contents/nn
  • NextPage/nn

where /nn is a language suffix of page in which used template.


Both parameters may to have any suffix or not to have - in any case for links will used suffix of current page.
For first and last pages one parameter may be left empty.