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:Tileset"
Jump to navigation
Jump to search
RedDeadElite (talk | contribs) (Added dedicated screenshot cells.) |
(Add a filename parameter, default title and image to use it. Makes it easy for all images to have a meaningful, consistent title (anchor name) to link to.) |
||
Line 1: | Line 1: | ||
− | {| style="width: 100%; margin: 0 0 0.5em 0.5em; border-spacing: 0;" | + | <includeonly>{| style="width: 100%; margin: 0 0 0.5em 0.5em; border-spacing: 0;" |
|- | |- | ||
− | | style="width:270px; padding-top:0.5em;" valign="top" | <div style="background:darkmagenta; float:left;">{{{image|}}}</div> || valign="top" | | + | | style="width:270px; padding-top:0.5em;" valign="top" | <div style="background:darkmagenta; float:left;">{{#if: {{{image|}}} |
+ | | {{{image}}} | ||
+ | | {{#if: {{{filename|}}} | [[Image:{{{filename|}}}]] | <span class="error">no image file</span> }} | ||
+ | }}</div> || valign="top" | | ||
{| | {| | ||
− | |- {{#if:{{{title|}}}||style="display:none;"}} | + | |- {{#if:{{{title|{{{filename|}}}}}}||style="display:none;"}} |
! style="text-align:left; padding:0 2em 0 1em;" | Title | ! style="text-align:left; padding:0 2em 0 1em;" | Title | ||
− | | <span id="{{{title}}}">[[#{{{title}}}|{{{title}}}]]</span> | + | | <span id="{{{title|{{{filename}}}}}}">[[#{{{title|{{{filename}}}}}}|{{{title|{{{filename}}}}}}]]</span> |
|- | |- | ||
! style="text-align:left; padding:0 2em 0 1em;" | Author | ! style="text-align:left; padding:0 2em 0 1em;" | Author | ||
Line 36: | Line 39: | ||
|} | |} | ||
− | |}<noinclude> | + | |}</includeonly><noinclude> |
Usage: | Usage: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Tileset| | {{Tileset| | ||
+ | |filename=Herrbdog_16x16_tileset.gif | ||
|title=herrbdog_16x16 | |title=herrbdog_16x16 | ||
− | |image=[[ | + | |image=[[File:Herrbdog_16x16_tileset.gif]] |
|author=[[User:Herrbdog|Herrbdog]] | |author=[[User:Herrbdog|Herrbdog]] | ||
|dated=2007-11-15 | |dated=2007-11-15 | ||
Line 53: | Line 57: | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
+ | |||
+ | It is best to specify <code>filename=tileset.png</code>, and leave <code>title</code> and <code>image</code> unspecified, in most cases. | ||
Output: | Output: | ||
{{Tileset| | {{Tileset| | ||
+ | |filename=Herrbdog_16x16_tileset.gif | ||
|title=herrbdog_16x16 | |title=herrbdog_16x16 | ||
− | |image=[[ | + | |image=[[File:Herrbdog_16x16_tileset.gif]] |
|author=[[User:Herrbdog|Herrbdog]] | |author=[[User:Herrbdog|Herrbdog]] | ||
|dated=2007-11-15 | |dated=2007-11-15 |
Revision as of 18:46, 28 April 2022
Usage:
{{Tileset| |filename=Herrbdog_16x16_tileset.gif |title=herrbdog_16x16 |image=[[File:Herrbdog_16x16_tileset.gif]] |author=[[User:Herrbdog|Herrbdog]] |dated=2007-11-15 |size=16×16 |resolution=1280×400 |comments=This is Herrbdog's well-known tileset. |demo= |demo2= |demo3= |demo4= }}
It is best to specify filename=tileset.png
, and leave title
and image
unspecified, in most cases.
Output:
|
|