v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:GraphicsSet"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(hide omitted params, add compatible-min and compatible-max, along with some parserfunction voodoo to check 'compatible' params against current version and format them nicely without breaking old stuff)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| style="margin: 0 0 0.5em 0.5em; border-spacing: 0;"
+
<includeonly>{|  
|-
+
| style="padding: 0.5em 2em 0 0;" valign="top" | {{{image|}}}
| style="width:270px; padding-top:0.5em;" "valign="top" | {{{image}}} || valign="top" |  
+
| valign="top" |
 
+
{|  
{|
+
|- {{#if:{{{download link|}}}||style="display:none;"}}
|-  
+
| style="padding-right: 1em;" | '''Download:'''
! style="text-align:left; padding:0 1em 0 1em;" | Download:
+
| {{{download link|}}}
| {{{download link}}}
 
 
|-  
 
|-  
! style="text-align:left; padding:0 1em 0 1em;" | Author
+
| style="padding-right: 1em;" | '''Author:'''
| {{{author}}}
+
| {{{author|-}}}
|-
 
! style="text-align:left; padding:0 1em 0 1em;" | Tile Size
 
| {{{sprite}}}
 
 
|-
 
|-
! style="text-align:left; padding:0 1em 0 1em;" | Resolution
+
| style="padding-right: 1em;" | '''Tile Size:'''
| {{{resolution}}}
+
| {{{sprite|-}}}
 +
|- {{#if:{{{resolution|}}}||style="display:none;"}}
 +
| style="padding-right: 1em;" | '''Resolution:'''
 +
| {{{resolution|}}}
 +
|- {{#if:{{{current version|}}}||style="display:none;"}}
 +
| style="padding-right: 1em;" | '''Current Version:'''
 +
| {{{current version|}}}
 
|-
 
|-
! style="text-align:left; padding:0 1em 0 1em;" valign="top" | Comments
+
| style="padding-right: 1em;" | '''DF Compatibility:'''
| {{{comments}}}
+
| {{#if:{{{compatible-max|{{{df compatible|}}}}}}|{{#ifeq:{{{compatible-max|{{{df compatible|}}}}}}|{{Current/version}}|style="color: #0a0;"|style="color: #a00;"}}|}} | {{#if:{{{compatible-min|}}}{{{compatible-max|}}}| {{{compatible-min|}}} &ndash; {{{compatible-max|}}} |{{{df compatible|Unspecified}}}}}
|-  
+
|- {{#if:{{{installation|}}}||style="display:none;"}}
! style="text-align:left; padding:0 1em 0 1em;" valign="top" | Installation
+
| style="padding-right: 1em;" | '''Installation:'''
| {{{installation}}}
+
| {{{installation|}}}
 
|-
 
|-
 
+
| style="padding: 0.5em 1em 0 2em;" colspan="2" | ''{{{comments| }}}''
{|
 
! style="text-align:left; padding:0 1em 0 2em;" |
 
| <br />{{{updates}}}
 
 
|}
 
|}
 +
|}</includeonly><noinclude>
 +
==Usage==
 +
===Copy & Paste Code===
 +
<pre style="overflow: auto;"><nowiki>
 +
{{GraphicsSet
 +
| image          =
 +
| download link  =
 +
| author          =
 +
| sprite          =
 +
| resolution      =
 +
| current version =
 +
| compatible-min  =
 +
| compatible-max  =
 +
| installation    =
 +
| comments        =
 +
}}
 +
</nowiki></pre>
  
|}<noinclude>
+
===Examples===
'''Copy&Paste Code:'''
+
====Using "compatible-min" and "compatible-max" params====
<pre><nowiki>
+
<pre style="overflow: auto;"><nowiki>
{{GraphicsSet|
+
{{GraphicsSet
|image=[[Image:YourPictureHere]]
+
| image           = [[Image:DFG13.png|270px]]
|download link=
+
| download link   = [http://www.bay12forums.com/smf/index.php?topic=53649.0 Official Forum Thread]
|author=[[User:YourWikiAccountName|YourOnlineHandle]]
+
| author         = [[User:Mikemayday|Mikemayday]]
|sprite=
+
| sprite         = 16&times;16
|resolution=
+
| resolution     = 1280 horizontal
|comments=
+
| current version = 31_25_a
|installation=
+
| compatible-min  = 0.28.181.40d
|updates=
+
| compatible-max  = 0.31.25
 +
| installation   = All things pre-packed, just edit init.txt to enter your desired vertical resolution and number of tiles
 +
| comments        = Combined with a customized main tileset. Just follow the link, download and enjoy, no need to mess around with files. Credits go to Beefmo, Sphr, DR, Tocky, Herrbdog, Bane18, Dragon Warrior games and me (although I did much more organizing and editing than actually creating).
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
  
You can choose to leave "updates=" blank.
+
=====Output=====
  
'''Usage Example:'''
+
{{GraphicsSet
<pre><nowiki>
+
| image          = [[Image:DFG13.png|270px]]
{{GraphicsSet|
+
| download link  = [http://www.bay12forums.com/smf/index.php?topic=53649.0 Official Forum Thread]
|image=[[Image:Dorfs_800x300.png]]
+
| author          = [[User:Mikemayday|Mikemayday]]
|download link=http://zarawesome.googlepages.com/dorfs_800x300.png
+
| sprite          = 16&times;16
|author=[[User:Zaratustra|Zaratustra]]
+
| resolution      = 1280 horizontal
|sprite=10x12
+
| current version = 31_25_a
|resolution=800x300
+
| compatible-min  = 0.28.181.40d
|comments=For those oldschool people.
+
| compatible-max  = 0.31.25
|installation= 1.Change it to .bmp instead of .png.<br> 2. Put it in your \raw\graphics\example folder.
+
| installation    = All things pre-packed, just edit init.txt to enter your desired vertical resolution and number of tiles
|updates=  
+
| comments        = Combined with a customized main tileset. Just follow the link, download and enjoy, no need to mess around with files. Credits go to Beefmo, Sphr, DR, Tocky, Herrbdog, Bane18, Dragon Warrior games and me (although I did much more organizing and editing than actually creating).
 +
}}
 +
 
 +
====Using "df compatible" parameter====
 +
<pre style="overflow: auto;"><nowiki>
 +
{{GraphicsSet
 +
| image           = [[Image:Dorfs_800x300.png]]
 +
| download link   = http://zarawesome.googlepages.com/dorfs_800x300.png
 +
| author         = [[User:Zaratustra|Zaratustra]]
 +
| sprite         = 10x12
 +
| resolution     = 800x300
 +
| df compatible  = 0.28.181.40d
 +
| installation   = 1. Change it to .bmp instead of .png.<br/>2. Put it in your \raw\graphics\example folder.
 +
| comments        = For those oldschool people.
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
  
'''Output Example:'''
+
=====Output=====
  
{{GraphicsSet|
+
{{GraphicsSet
|image=[[Image:Dorfs_800x300.png]]
+
| image           = [[Image:Dorfs_800x300.png]]
|download link=http://zarawesome.googlepages.com/dorfs_800x300.png
+
| download link   = http://zarawesome.googlepages.com/dorfs_800x300.png
|author=[[User:Zaratustra|Zaratustra]]
+
| author         = [[User:Zaratustra|Zaratustra]]
|sprite=10x12
+
| sprite         = 10x12
|resolution=800x300
+
| resolution     = 800x300
|comments=For those oldschool people.
+
| df compatible  = 0.28.181.40d
|installation= 1.Change it to .bmp instead of .png.<br> 2. Put it in your \raw\graphics\example folder.
+
| installation   = 1. Change it to .bmp instead of .png.<br/>2. Put it in your \raw\graphics\example folder.
|updates=
+
| comments        = For those oldschool people.
 
}}
 
}}
 
+
[[Category:Formatting_Templates]]
[[Category:Templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 22:17, 24 May 2011

Usage[edit]

Copy & Paste Code[edit]

{{GraphicsSet
| image           = 
| download link   = 
| author          = 
| sprite          = 
| resolution      = 
| current version = 
| compatible-min  =
| compatible-max  =
| installation    = 
| comments        = 
}}

Examples[edit]

Using "compatible-min" and "compatible-max" params[edit]

{{GraphicsSet
| image           = [[Image:DFG13.png|270px]]
| download link   = [http://www.bay12forums.com/smf/index.php?topic=53649.0 Official Forum Thread]
| author          = [[User:Mikemayday|Mikemayday]]
| sprite          = 16×16
| resolution      = 1280 horizontal
| current version = 31_25_a
| compatible-min  = 0.28.181.40d
| compatible-max  = 0.31.25
| installation    = All things pre-packed, just edit init.txt to enter your desired vertical resolution and number of tiles
| comments        = Combined with a customized main tileset. Just follow the link, download and enjoy, no need to mess around with files. Credits go to Beefmo, Sphr, DR, Tocky, Herrbdog, Bane18, Dragon Warrior games and me (although I did much more organizing and editing than actually creating).
}}
Output[edit]
DFG13.png
Download: Official Forum Thread
Author: Mikemayday
Tile Size: 16×16
Resolution: 1280 horizontal
Current Version: 31_25_a
DF Compatibility: 0.28.181.40d – 0.31.25
Installation: All things pre-packed, just edit init.txt to enter your desired vertical resolution and number of tiles
Combined with a customized main tileset. Just follow the link, download and enjoy, no need to mess around with files. Credits go to Beefmo, Sphr, DR, Tocky, Herrbdog, Bane18, Dragon Warrior games and me (although I did much more organizing and editing than actually creating).

Using "df compatible" parameter[edit]

{{GraphicsSet
| image           = [[Image:Dorfs_800x300.png]]
| download link   = http://zarawesome.googlepages.com/dorfs_800x300.png
| author          = [[User:Zaratustra|Zaratustra]]
| sprite          = 10x12
| resolution      = 800x300
| df compatible   = 0.28.181.40d
| installation    = 1. Change it to .bmp instead of .png.<br/>2. Put it in your \raw\graphics\example folder.
| comments        = For those oldschool people.
}}
Output[edit]
Dorfs 800x300.png
Download: http://zarawesome.googlepages.com/dorfs_800x300.png
Author: Zaratustra
Tile Size: 10x12
Resolution: 800x300
Current Version:
DF Compatibility: 0.28.181.40d
Installation: 1. Change it to .bmp instead of .png.
2. Put it in your \raw\graphics\example folder.
For those oldschool people.