Template:Infobox prevnext: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
No edit summary
>Yandere-sliver
No edit summary
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={{{prevtype|Followed by}}}<br/>'''{{#if:{{{next|}}}|{{{next}}}|N/A}}'''
}}</includeonly><noinclude>
}}</includeonly><noinclude>
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.


There are 3 parameter:
There are 3 parameter:
*'''prev''' {{-}} the previous event/thing, defaults to N/A.
*'''prev''' {{-}} the previous event/thing, defaults to 'N/A'.
*'''next''' {{-}} the next event/thing, defaults to N/A.
*'''next''' {{-}} the next event/thing, defaults to 'N/A'.
*'''type''' {{-}} the type event/thing
*'''prevtype''' {{-}} what came before, defaults to 'Preceded by'
*'''nexttype''' {{-}} what came after, defaults to 'Followed by'
[[Category:Infobox templates|*]]</noinclude>
[[Category:Infobox templates|*]]</noinclude>

Revision as of 12:22, 7 August 2018

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'
  • nexttype — what came after, defaults to 'Followed by'