Difference between revisions of "Template:Videos"
From MansonWiki, the Marilyn Manson encyclopedia
(dump required...) |
(one more try) |
||
Line 5: | Line 5: | ||
{{#forargs: | K | V | | {{#forargs: | K | V | | ||
− | {{# | + | <!-- if no value is specified, then wiki moves the key to the value, and the key becomes a natural number starting from 1 and so forth -- so it's NOT an empty string --> |
− | + | {{#ifeq: {{#expr: {{#var: K}} }} | 1 | {{#vardefine: K | {{#var: V}} }} {{#vardefine: V |}} }} | |
− | + | ||
− | + | ||
{{#ifeq: {{#expr: {{#var:column}} mod {{#var:max_columns}} }} | 0 | <tr> }} | {{#ifeq: {{#expr: {{#var:column}} mod {{#var:max_columns}} }} | 0 | <tr> }} |
Revision as of 18:56, 18 May 2014
Sample usage:
{{Videos | moH2IHWOZXs = "[[The Last Day on Earth]]" | vimeo:56060581 = "The Last Day on Earth" }}