Difference between revisions of "Template:Game Data"

From Minetest Wiki
Jump to navigation Jump to search
(“Subgames” were renamed to “games”)
Line 6: Line 6:
 
|name={{{name|A game}}}
 
|name={{{name|A game}}}
 
|description= A [[Games|game]]
 
|description= A [[Games|game]]
|type={{{type|''?''}}}
+
|type={{{type|{{#if:{{{gametype|}}}|[[:Category:{{{gametype}}} games|{{{gametype}}}]]|''?''}}}}}
 
|author={{{author|''?''}}}
 
|author={{{author|''?''}}}
 
|version={{{version|''?''}}}
 
|version={{{version|''?''}}}
|forum={{{forum|''N/A''}}}
+
|forum={{{forum|{{#if:{{{forumtopic|}}}|[https://forum.minetest.net/viewtopic.php?t={{{forumtopic}}} {{{forumtopic}}}]|''N/A''}}}}}
|source={{{source|''N/A''}}}
+
|source={{{source|{{#if:{{{github|}}}|[https://github.com/{{{github}}} GitHub]|''N/A''}}}}}
 
}}<noinclude>
 
}}<noinclude>
 +
<pre>
 +
{{Game Data
 +
|name=A Game
 +
|image=Image.png
 +
|gametype=Default
 +
|author=Name
 +
|version=0.1
 +
|forumtopic=1
 +
|github=minetest/minetest_game
 +
}}
 +
</pre>
 +
 
<pre>
 
<pre>
 
{{Game Data
 
{{Game Data

Revision as of 23:59, 21 September 2020

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 ?
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=[[:Category:Default games|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