Difference between revisions of "Template:Game Data"

From Minetest Wiki
Jump to navigation Jump to search
(c)
 
(39 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
 
{| class="wikitable" style="float: right; margin: 0 0 0.5em 1.5em" width="{{{width|200px}}}"
 
!align="center" colspan="2"|[[File:{{{image}}}|150px|150px]]
 
|-
 
! colspan="2" | {{{name | {{{game_name}}} }}}
 
|-
 
| '''Type''' || {{{type | {{{game_type | funplay}}} }}}
 
|-
 
| '''Author''' || {{{author|''somebody''}}}
 
|-
 
| '''First Release''' || {{{first_date|some date}}}
 
|-
 
| '''Forum Page''' || {{{forum|''minetest.net/forum''}}}
 
|-
 
| '''Source''' || {{{source|github}}}
 
|-
 
| '''Includes Mobs''' || {{{mobs|no}}}
 
|}
 
 
</includeonly>
 
 
<noinclude>
 
<noinclude>
== Examples ==
+
{{Documentation|content=
{| class="wikitable"
+
{{Languages|nocat=1}}
! source
+
{{Lua|Infobox|data=Infobox/en}}
! output
+
</noinclude>{{#invoke:Infobox|game
|-
+
|name={{{name|A game}}}
|
+
|description= A [[Games|game]]
<nowiki>{{Game Data | image=3apple.png | name=A Game | author=Ghostwriter | first_date=long ago | Yay (99)}}</nowiki>
+
|type={{{type|{{{gametype}}}|''?''}}}
|{{Game Data | image=3apple.png | name=A Game | author=Ghostwriter | first_date=long ago | mobs=Yay (99)}}
+
|author={{{author|''?''}}}
|-
+
|version={{{version|''?''}}}
|
+
|forum={{{forum|{{#if:{{{forumtopic|}}}|[https://forum.minetest.net/viewtopic.php?t={{{forumtopic}}} {{{forumtopic}}}]|''N/A''}}}}}
<nowiki>
+
|source={{{source|{{#if:{{{github|}}}|[https://github.com/{{{github}}} GitHub]|''N/A''}}}}}
{{Game Data
+
}}
| image=3apple.png
+
<noinclude>
| name=A Game
 
| author=Ghostwriter
 
| first_date=long ago
 
| forum=some forum url
 
| source=somewhere on github
 
| mobs=Yay (99)}}
 
</nowiki>
 
|{{Game Data
 
| image=3apple.png
 
| name=A Game
 
| author=Ghostwriter
 
| first_date=long ago
 
| forum=some forum url
 
| source=somewhere on github
 
| mobs=Yay (99)}}
 
|}
 
</noinclude>
 
  
 
+
<pre>
not used:
+
{{Game Data
 +
|name=A Game
 +
|image=Image.png
 +
|gametype=Default
 +
|author=Name
 +
|version=0.1
 +
|forumtopic=1
 +
|github=minetest/minetest_game
 +
}}
 +
</pre>
  
 
<pre>
 
<pre>
! colspan="2" | Works with
+
{{Game Data
|-
+
|name=A Game
| '''0.4.7''' || {{{0407|}}}
+
|image=Image.png
|-
+
|type=Default
| '''0.4.8''' || {{{0408|}}}
+
|author=Name
|-
+
|version=0.1
| '''0.4.9''' || {{{0409|}}}
+
|forum=[https://forum.minetest.net/viewtopic.php?t=1 1]
|-
+
|source=[https://github.com/minetest/minetest_game GitHub]
| '''0.4.10''' || {{{0410|}}}
+
}}
|-
+
</pre>
  
</pre>
+
== See also ==
 +
{{Data see also}}
 +
}}
 +
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 20:47, 16 April 2021

Documentation icon.png Documentation
Languages Language: English • Deutsch • Bahasa Melayu
Lua logo.png This template uses Module:Infobox, with data stored in Module:Infobox/en.
Please see wikipedia:Wikipedia:Lua and mw:Extension:Scribunto to learn more.
A game
Blank.png
A game
Game Type {{{gametype}}}
Author ?
Latest version ?
Forum topic N/A
Source code N/A


{{Game Data
|name=A Game
|image=Image.png
|gametype=Default
|author=Name
|version=0.1
|forumtopic=1
|github=minetest/minetest_game
}}
{{Game Data
|name=A Game
|image=Image.png
|type=Default
|author=Name
|version=0.1
|forum=[https://forum.minetest.net/viewtopic.php?t=1 1]
|source=[https://github.com/minetest/minetest_game GitHub]
}}

See also