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:Sg/str"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
m (Apparently I just hit the limit of regex functions...)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#ifexpr:{{{1|0}}} <= {{sg/cat}} + 1|&#32;
+
{{#ifexpr:{{{1|1}}}>{{sg/cat}}||
{{#ifexpr:{{{1|0}}} mod 6 = 1|{{!-}}}}
+
{{#vardefine:sg-s-image|{{#rsplit:{{#rsplit:{{sg/list}}|\n|{{#expr:{{{1|1}}}-1}}}}|---|0}}}}{{#vardefine:sg-s-caption|{{#rsplit:{{#rsplit:{{sg/list}}|\n|{{#expr:{{{1|1}}}-1}}}}|---|1}}}}
{{!!}}{{#ifexpr:{{{1|0}}}-1 = {{sg/cat}}
+
 
|[[template:sg/{{{1}}}|Click here to add a new image after reading the directions]]|[[Image:{{Sg/{{{1|0}}}}}|120x120px|{{sg/caption|{{{1|0}}}}}]]<br />[[template:Sg/{{{1|0}}}|{{{1|0}}}]]}}}}
+
{{#ifexpr:{{{1|1}}} mod 6 = 1|</tr><tr>}}
 +
<td>
 +
[[Image:{{#var:sg-s-image}}|120x180px|{{#var:sg-s-caption}}]]
 +
</td>
 +
}}

Latest revision as of 18:07, 20 February 2014

Preparing a ballista.