(support empty author field (for solo games?)) |
m (better support for no author) |
||
Line 17: | Line 17: | ||
The below is common to every template usage | The below is common to every template usage | ||
--><div style="display:table-cell;padding:6px 10px;"><!-- Div for author and date info | --><div style="display:table-cell;padding:6px 10px;"><!-- Div for author and date info | ||
-->{{#if:{{{4|}}}<!-- Check if version | -->{{#if:{{{4|}}}<!-- Check if version | ||
-->|<!-- If version, | -->|<!-- If version | ||
-->|{{#tag:nowiki|Patch {{{1|}}} / }}<!-- If patch, prepend text using the patch number | -->{{#if:{{{3|}}}<!-- Only place authors list if one is specified | ||
-->|'''Contributing Authors:''' <!-- Space here | |||
-->{{#arraymap:{{{3}}}<!-- Array categories | |||
-->|,|#|[[:Category:#|#]]|, }}<!-- End array usage | |||
--><br><!-- Separate author list and date with newline | |||
-->}}<!-- End author check | |||
-->|<b>{{#tag:nowiki|Patch {{{1|}}} / }}<!-- If patch, prepend text using the patch number | |||
-->{{#if:{{{2|}}}<!-- Only place authors list if one is specified | |||
-->|Contributing Authors:</b> <!-- Space here | |||
-->{{#arraymap:{{{2}}}<!-- Array categories | |||
-->|,|#|[[:Category:#|#]]|, }}<!-- End array usage | |||
--><br><!-- Separate author list and date with newline | |||
-->|<b><!-- Ensure you close bolding even if no author | |||
-->}}<!-- End author check | |||
-->}}<!-- End version check | -->}}<!-- End version check | ||
-->'''Release Date:''' {{{4|{{{3|}}}}}}<!-- | -->'''Release Date:''' {{{4|{{{3|}}}}}}<!-- | ||
--></div><!-- Close div of author and date info | --></div><!-- Close div of author and date info |
Revision as of 14:14, 3 July 2024
use in a version history page like this
{{vh |0.100a |example.png (Example World), two.png (Another World) |author1, author2 |1999/09/19}} *text *text ...
or for patches like this
{{vh |2 |author1, author2 |1999/09/29}} *text *text ...
If there is normal page content below a usage of this template, put a couple </div> in there to stop the css from bleeding onto it