Difference between revisions of "Template:Image"

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

Latest revision as of 15:20, 7 August 2019




[create] Documentation icon Template documentation