Difference between revisions of "Template:KerrMcF Nav"

From Geohashing
(Creating template to make my reports easier)
 
m
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
! colspan=3 | Expedition Navigation
 
! colspan=3 | Expedition Navigation
 
|-
 
|-
| width="100px" bgcolor={{{colour1|lavenderblush}}} | {{#if:{{{previous1|}}}|[[File:Arrow7.png|12px]] [[{{{previous1}}}|Previous]]|No Previous}}
+
| width="100px" bgcolor={{{colour|lavenderblush}}} | {{#if:{{{previous|}}}|[[File:Arrow7.png|12px]] [[{{{previous}}}|Previous]]|No Previous}}
| width="150px" bgcolor={{{colour1|lavenderblush}}} | {{{user1|[[User:KerrMcF|KerrMcF]]}}}'s expeditions
+
| width="{{{width|150px}}}" bgcolor={{{colour|lavenderblush}}} | {{{user|[[User:KerrMcF|KerrMcF]]}}}'s expeditions
| width="100px" bgcolor={{{colour1|lavenderblush}}} | {{#if:{{{next1|}}}|[[{{{next1}}}|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
:| user1 = '''username''' (defaults to [[User:KerrMcF|KerrMcF]])
+
:| width = '''width of middle cells''' (defaults to 150px)
:| colour1 = '''bgcolor''' (defaults to lavenderblush)
+
:| user = '''username''' (defaults to [[User:KerrMcF|KerrMcF]])
:| previous1 = '''previous expedition''' (defaults to No Previous)
+
:| colour = '''bgcolor''' (defaults to lavenderblush)
:| next1 = '''next expedition''' (defaults to No Next Yet)
+
:| previous = '''previous expedition''' (defaults to No Previous)
 +
:| next = '''next expedition''' (defaults to No Next Yet)
 
:| user2 = '''username''' (required for second line)
 
:| user2 = '''username''' (required for second line)
 
:| colour2 = '''bgcolor''' (defaults to oldlace)
 
:| colour2 = '''bgcolor''' (defaults to oldlace)
Line 54: Line 55:
 
'''Example:'''
 
'''Example:'''
 
<pre>&#x007B;{KerrMcF Nav
 
<pre>&#x007B;{KerrMcF Nav
| user1 = Username One
+
| width = 200px
 +
| user = Username One
 
| user2 = Username Two
 
| user2 = Username Two
 
| user3 = Username Three
 
| user3 = Username Three
Line 61: Line 63:
  
 
{{KerrMcF Nav
 
{{KerrMcF Nav
| user1 = Username One
+
| width = 200px
 +
| user = Username One
 
| user2 = Username Two
 
| user2 = Username Two
 
| user3 = Username Three
 
| user3 = Username Three
Line 69: Line 72:
 
'''Example:'''
 
'''Example:'''
 
<pre>&#x007B;{KerrMcF Nav
 
<pre>&#x007B;{KerrMcF Nav
| colour1 = white
+
| colour = white
| previous1 = 2024-02-20 56 -3
+
| previous = 2024-02-20 56 -3
| next1 = 2024-03-10 55 -4
+
| next = 2024-03-10 55 -4
 
}}</pre> appears as:
 
}}</pre> appears as:
  
 
{{KerrMcF Nav
 
{{KerrMcF Nav
| colour1 = white
+
| colour = white
| previous1 = 2024-02-20 56 -3
+
| previous = 2024-02-20 56 -3
| next1 = 2024-03-10 55 -4
+
| next = 2024-03-10 55 -4
 
}}
 
}}
  
 
</noinclude>
 
</noinclude>

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