×
Create a new article
Write your page title here:
We currently have 3,036 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,036Articles

Template:VersionHistory: Difference between revisions

(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
--><b><!--
   -->{{#if:{{{4|}}}<!-- Check if version
   -->{{#if:{{{4|}}}<!-- Check if version
   -->|<!-- If version, place nothing
   -->|<!-- 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:#|#]]|,&#32;}}<!-- 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:#|#]]|,&#32;}}<!-- 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
  -->{{#if:{{{3|}}}<!-- Only place authors list if one is specified
  -->|Contributing Authors:</b> <!-- Space here
      -->{{#arraymap:<!-- Array categories
        -->{{#if:{{{4|}}}<!-- Check if version
        -->|{{{3}}}<!-- Versions have author as third field
        -->|{{{2}}}<!-- Patches have author as second field
        -->}}<!-- End version check
      -->|,|#|[[:Category:#|#]]|,&#32;}}<!-- End array usage
  --><br><!-- Separate author list and date with newline
  -->}}<!-- End author 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

Template:VersionHistory/Images

Template:VersionHistory/Category