Difference between revisions of "Template:Game Data"

From Minetest Wiki
Jump to navigation Jump to search
(Created page with "<includeonly> {| class="wikitable" style="float: right; margin: 0 0 0.5em 1.5em" width="{{{width|200px}}}" !align="center" colspan="2"|[[File:{{{image}}}|150px|150px]] |- ! co...")
 
(c)
 
(50 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
+
<noinclude>
{| class="wikitable" style="float: right; margin: 0 0 0.5em 1.5em" width="{{{width|200px}}}"
+
{{Documentation|content=
!align="center" colspan="2"|[[File:{{{image}}}|150px|150px]]
+
{{Languages|nocat=1}}
|-
+
{{Lua|Infobox|data=Infobox/en}}
! colspan="2" | {{{name | {{{game_name}}} }}}
+
</noinclude>{{#invoke:Infobox|game
|-
+
|name={{{name|A game}}}
| '''Type''' || {{{type | {{{game_type | funplay}}} }}}
+
|description= A [[Games|game]]
|-
+
|type={{{type|{{{gametype}}}|''?''}}}
| '''Author''' || {{{author|''somebody''}}}
+
|author={{{author|''?''}}}
|-
+
|version={{{version|''?''}}}
| '''First Release''' || {{{first_date|No}}}
+
|forum={{{forum|{{#if:{{{forumtopic|}}}|[https://forum.minetest.net/viewtopic.php?t={{{forumtopic}}} {{{forumtopic}}}]|''N/A''}}}}}
|-
+
|source={{{source|{{#if:{{{github|}}}|[https://github.com/{{{github}}} GitHub]|''N/A''}}}}}
| '''Luminance''' || {{{luminance|No}}}
+
}}
|-
+
<noinclude>
| '''Flammable''' || {{{flammable|No}}}
 
|-
 
| '''Generated''' || {{{generated|Yes}}}
 
|-
 
| '''Renewable''' || {{{renewable|No}}}
 
|-
 
| '''Stackable''' || {{{stackable|Yes (99)}}}
 
|-
 
| '''Itemstring''' || {{{itemstring|''?''}}}
 
|}
 
  
</includeonly>
+
<pre>
<noinclude>
+
{{Game Data
== Examples ==
+
|name=A Game
{| class="wikitable"
+
|image=Image.png
! source
+
|gametype=Default
! output
+
|author=Name
|-
+
|version=0.1
|
+
|forumtopic=1
<nowiki>{{Game Data | image=Dirt.png | name=A Game}}</nowiki>
+
|github=minetest/minetest_game
|{{Block Data | image=Dirt.png | name=Dirt}}
+
}}
|-
+
</pre>
|
+
 
<nowiki>{{Block Data | image=Dirt.png | name=Dirt}}</nowiki>
+
<pre>
|{{Block Data | image=Dirt.png | name=Dirt}}
+
{{Game Data
|-
+
|name=A Game
|
+
|image=Image.png
<nowiki>{{Block Data
+
|type=Default
| image=Sand.png
+
|author=Name
| name=Sand
+
|version=0.1
| physics = Yes
+
|forum=[https://forum.minetest.net/viewtopic.php?t=1 1]
| itemstring = default:sand }}</nowiki>
+
|source=[https://github.com/minetest/minetest_game GitHub]
|{{Block Data | image=Sand.png | name=Sand | physics = Yes | itemstring = default:sand }}
+
}}
|}
+
</pre>
 +
 
 +
== See also ==
 +
{{Data see also}}
 +
}}
 +
[[Category:Templates]]
 
</noinclude>
 
</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