Difference between revisions of "Template:Image"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>JoeST
m (test)
m (37 revisions imported)
 
(164 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<span class="plainlinks">[<!--
+
<noinclude>
      if
+
{{pp-template}}
-->{{#if:{{{url|}}}|<!--
+
</noinclude>
      then
+
 
-->{{{url}}} {{{1}}}<!-- -->|<!--
+
<!-- For reference, {{{1}}} is the image's path.-->
      else
+
 
-->{{fullurl:{{{1|{{{2}}}}}}}} {{{2}}}<!--   -->}}]</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||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