Difference between revisions of "Template:Image"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>JoeST
m (test)
sc4e>Jdenm8
(Fixed introduced bug.)
(95 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<span class="plainlinks">[<!--
+
<!-- For reference, {{{1}}} is the image's path.
      if
+
 
-->{{#if:{{url|}}|<!--
+
<span class="plainlinks" {{#if:{{{width|}}}|width="{{{width}}}"}}>
      then
+
 
-->{{{url}}} {{{1}}}<!--  -->|<!--
+
{{#if:
      else
+
    {{{page|}}}{{{url|}}}|
-->{{fullurl:{{{1}}}}} {{{2}}}<!--   -->}}]</span><noinclude>
+
<!-- page or url parameters set -->
==Example==
+
    {{#if:{{{page|}}}|
Using <nowiki>{{img|Test|http://www.sc4devotion.com/img/SC4DVD_1.jpg}}</nowiki>
+
        <!-- page parameter set -->  
{{img|Test|http://www.sc4devotion.com/img/SC4DVD_1.jpg}}
+
            [{{fullurl:{{{page}}}}} {{{1}}}]|
 +
        <!-- url parameter set -->
 +
            [{{{url}}} {{{1}}}]}}
 +
<!-- neither set -->
 +
    |{{{1}}} }}
 +
</span>
 +
 
 +
<noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 06:22, 17 November 2012

   [{{{url}}} {{{1}}}]
   |{{{1}}} }}


[create] Documentation icon Template documentation