Difference between revisions of "Template:KerrMcF Nav"

From Geohashing
m
m
 
Line 3: Line 3:
 
|-
 
|-
 
| width="100px" bgcolor={{{colour|lavenderblush}}} | {{#if:{{{previous|}}}|[[File:Arrow7.png|12px]] [[{{{previous}}}|Previous]]|No Previous}}
 
| width="100px" bgcolor={{{colour|lavenderblush}}} | {{#if:{{{previous|}}}|[[File:Arrow7.png|12px]] [[{{{previous}}}|Previous]]|No Previous}}
| width="150px" bgcolor={{{colour|lavenderblush}}} | {{{user|[[User:KerrMcF|KerrMcF]]}}}'s expeditions
+
| width="{{{width|150px}}}" bgcolor={{{colour|lavenderblush}}} | {{{user|[[User:KerrMcF|KerrMcF]]}}}'s expeditions
 
| width="100px" bgcolor={{{colour|lavenderblush}}} | {{#if:{{{next|}}}|[[{{{next}}}|Next]] [[File:Arrow1.png|12px]]|No Next Yet}}
 
| width="100px" bgcolor={{{colour|lavenderblush}}} | {{#if:{{{next|}}}|[[{{{next}}}|Next]] [[File:Arrow1.png|12px]]|No Next Yet}}
 
{{#if:{{{user2|}}}|
 
{{#if:{{{user2|}}}|
Line 27: Line 27:
  
 
{{KerrMcF Nav
 
{{KerrMcF Nav
 +
:| width = '''width of middle cells''' (defaults to 150px)
 
:| user = '''username''' (defaults to [[User:KerrMcF|KerrMcF]])
 
:| user = '''username''' (defaults to [[User:KerrMcF|KerrMcF]])
 
:| colour = '''bgcolor''' (defaults to lavenderblush)
 
:| colour = '''bgcolor''' (defaults to lavenderblush)
Line 54: Line 55:
 
'''Example:'''
 
'''Example:'''
 
<pre>&#x007B;{KerrMcF Nav
 
<pre>&#x007B;{KerrMcF Nav
 +
| width = 200px
 
| user = Username One
 
| user = Username One
 
| user2 = Username Two
 
| user2 = Username Two
Line 61: Line 63:
  
 
{{KerrMcF Nav
 
{{KerrMcF Nav
 +
| width = 200px
 
| user = Username One
 
| user = Username One
 
| user2 = Username Two
 
| user2 = Username Two

Latest revision as of 19:01, 3 August 2024

This template creates a navigation table containing links to the previous and next expeditions. It allows for customisation of background colours for each participant, as well as the ability to add up to three additional lines if required.

How to use this template:

{{KerrMcF Nav

| width = width of middle cells (defaults to 150px)
| user = username (defaults to KerrMcF)
| colour = bgcolor (defaults to lavenderblush)
| previous = previous expedition (defaults to No Previous)
| next = next expedition (defaults to No Next Yet)
| user2 = username (required for second line)
| colour2 = bgcolor (defaults to oldlace)
| previous2 = previous expedition (defaults to No Previous)
| next2 = next expedition (defaults to No Next Yet)
| user3 = username (required for third line)
| colour3 = bgcolor (defaults to honeydew)
| previous3 = previous expedition (defaults to No Previous)
| next3 = next expedition (defaults to No Next Yet)
| user4 = username (required for fourth line)
| colour4 = bgcolor (defaults to lavender)
| previous4 = previous expedition (defaults to No Previous)
| next4 = next expedition (defaults to No Next Yet)

}}

Example:

{{KerrMcF Nav
}}

appears as:

Expedition Navigation
No Previous KerrMcF's expeditions No Next Yet


Example:

{{KerrMcF Nav
| width = 200px
| user = Username One
| user2 = Username Two
| user3 = Username Three
| user4 = Username Four
}}

appears as:

Expedition Navigation
No Previous Username One's expeditions No Next Yet
No Previous Username Two's expeditions No Next Yet
No Previous Username Three's expeditions No Next Yet
No Previous Username Four's expeditions No Next Yet


Example:

{{KerrMcF Nav
| colour = white
| previous = 2024-02-20 56 -3
| next = 2024-03-10 55 -4
}}

appears as:

Expedition Navigation
Arrow7.png Previous KerrMcF's expeditions Next Arrow1.png