Difference between revisions of "Template:BridgeSection"

From Wurmpedia
Jump to navigation Jump to search
(coppied image section from ItemBox.)
Line 4: Line 4:
 
|-
 
|-
 
|
 
|
 +
<!-- Check for image.  If pagename.jpg exist use it. If pagename.jpg does not exists check for pagename.png and use that if it exists. Also, add png's to a category so we can see what images need to be converted. Finally, if both pagename.jpg and pagename.png don't exist add the pagename to a category listing of missing images -->
 
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
 
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
    | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
+
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
 
     | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
 
     | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
+
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]] [[Category:png convert]]
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
+
         | [[:Category:needs jpg image|Needs image.]] [[Category:needs jpg image]]
 
     }}
 
     }}
 
}}
 
}}

Revision as of 18:35, 12 May 2015


This template adds a box with an image of the item and the steps to create the item.