Jump to content

Template:1lvlnav: Difference between revisions

From IdeaWazaWiki
wikademia>Xlbnushk
m created page
 
wikademia>Wikademia
m 28 revisions
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="toccolours" align="center" style="text-align: center;" width="100%"
<noinclude>== Usage ==
 
<nowiki>{{1lvlnav|project|previous lesson|next lesson}}</nowiki>
 
*'''1lvlnav''' calls the template
*'''project''' specifies the name of the project
*'''previous lesson''' specifies the name of the previous lesson
*'''next lesson''' specifies the name of the next lesson
 
''You must include project/lesson links yourself!''
 
== Example ==
 
<nowiki>{{1lvlnav|[[Mapmaking]]|[[StarEdit]]|[[X-tra Editor]]}}</nowiki>
 
The above code produces:
 
{{1lvlnav|[[Mapmaking]]|[[StarEdit]]|[[X-tra Editor]]}}
 
Note: the ugly '1lvlnav' shown in the middle of the navigation line is just the current topic (page) name, and will be replaced with the name of your calling page when you use this template in a real-world example
 
== Template ==</noinclude>
 
{| style="background-color: whitesmoke; border: darkgray solid 1px; text-align: center;" width="100%"
|- style="background-color:#99ccff;"
||'''Project:''' {{{1}}}
|-
|-
| style="background: #99ccff;" | '''Project:''' {{#ifexist:{{{1}}}|[[{{{1}}}]]|Untitled Project}}
||'''Previous:''' {{{2}}} &mdash; {{PAGENAME}} &mdash; '''Next:''' {{{3}}}
|-
| {{#ifexist:{{{2}}}|'''Previous:''' [[{{{2}}}]]|{{#ifexist:{{{1}}}|[[{{{1}}}]]|Untitled Project}}}} &mdash; {{PAGENAME}} &mdash; {{#ifexist:{{{3}}}|'''Next:''' [[{{{3}}}]]|{{#ifexist:{{{1}}}|[[{{{1}}}]]|Untitled Project}}}}
|}
|}
<noinclude>[[Category:Course templates]]</noinclude>

Latest revision as of 18:32, 5 April 2009

Usage

{{1lvlnav|project|previous lesson|next lesson}}
  • 1lvlnav calls the template
  • project specifies the name of the project
  • previous lesson specifies the name of the previous lesson
  • next lesson specifies the name of the next lesson

You must include project/lesson links yourself!

Example

{{1lvlnav|[[Mapmaking]]|[[StarEdit]]|[[X-tra Editor]]}}

The above code produces:


Project: Mapmaking
Previous: StarEdit — 1lvlnav — Next: X-tra Editor


Note: the ugly '1lvlnav' shown in the middle of the navigation line is just the current topic (page) name, and will be replaced with the name of your calling page when you use this template in a real-world example

Template

Project: {{{1}}}
Previous: {{{2}}} — 1lvlnav — Next: {{{3}}}