Template:Infobox prevnext: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
(Created page with "<includeonly>{{Infobox3cols | subbox=yes | labelstyle = {{Infobox sec|prevnext}} | datastyleb = {{Infobox sec|prevnext}} | label1=Previous {{{type|}}}<br/>'''{{{prev|N/A}}}'''...")
 
>Yandere-sliver
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
| labelstyle = {{Infobox sec|prevnext}}
| labelstyle = {{Infobox sec|prevnext}}
| datastyleb = {{Infobox sec|prevnext}}
| datastyleb = {{Infobox sec|prevnext}}
| label1=Previous {{{type|}}}<br/>'''{{{prev|N/A}}}'''
| label1={{{prevtype|Preceded By}}}<br/>'''{{#if:{{{prev|}}}|''{{{prev}}}''|N/A}}'''
| data1b=Next {{{type|}}}<br/>'''{{{next|N/A}}}'''
| data1b={{{nexttype|Followed By}}}<br/>'''{{#if:{{{next|}}}|''{{{next}}}''|N/A}}'''
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Lua|Infobox3cols}}
This template exists to have a consistent previous/next row whenever taking about a series of events or things.
This template exists to have a consistent previous/next row whenever taking about a series of events or things.
*prev {{-}} the previous event/thing, defaults to N/A.
 
*next {{-}} the next event/thing, defaults to N/A.
There are 3 parameter:
*type {{-}} the type event/thing
*'''prev''' {{-}} the previous event/thing, defaults to 'N/A'.
[[Category:Infobox templates|*]]</noinclude>
*'''next''' {{-}} the next event/thing, defaults to 'N/A'.
*'''prevtype''' {{-}} what came before, defaults to 'Preceded by'
</noinclude>

Latest revision as of 05:42, 18 June 2019

This template exists to have a consistent previous/next row whenever taking about a series of events or things.

There are 3 parameter:

  • prev — the previous event/thing, defaults to 'N/A'.
  • next — the next event/thing, defaults to 'N/A'.
  • prevtype — what came before, defaults to 'Preceded by'