Difference between revisions of "Template:FleetImage"

From Fleet
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
|}
 
|}
 
<small>{{{text}}}</small>
 
<small>{{{text}}}</small>
{{#if:{{{link|}}}|{{{link}}} <span style="color:gray">yes</span>|<span class="error">no</span>}}
 
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
  
 
Template for adding images directly from Fleet.<br />
 
Template for adding images directly from Fleet.<br />
More or less a remake of the '''Image''' template that allows for remote images to be used.<br />
+
More or less a remake of the '''Image''' template that allows for remote images to be used. Only without the security issues.<br />
 
Work in progress. :9<br />
 
Work in progress. :9<br />
  
  
  
Template:
+
Template example with link:
 
<pre>{{FleetImage|image={{SERVER}}/img/n/assimilant_hive_x128.png|align=right|text="Resistance = voltage / current."|link=Assimilant Hive}}</pre>
 
<pre>{{FleetImage|image={{SERVER}}/img/n/assimilant_hive_x128.png|align=right|text="Resistance = voltage / current."|link=Assimilant Hive}}</pre>
 +
 +
Template example without link:
 +
<pre>{{FleetImage|image={{SERVER}}/img/n/assimilant_hive_x128.png|align=right|text="Resistance = voltage / current."|link=}}</pre>
 +
  
 
*Parameters:
 
*Parameters:

Latest revision as of 20:03, 21 November 2013


Template for adding images directly from Fleet.
More or less a remake of the Image template that allows for remote images to be used. Only without the security issues.
Work in progress. :9


Template example with link:

{{FleetImage|image={{SERVER}}/img/n/assimilant_hive_x128.png|align=right|text="Resistance = voltage / current."|link=Assimilant Hive}}

Template example without link:

{{FleetImage|image={{SERVER}}/img/n/assimilant_hive_x128.png|align=right|text="Resistance = voltage / current."|link=}}


  • Parameters:
    • image = image path. Use the following format: {{SERVER}}/img/n/assimilant_hive_x128.png
    • align = options: left, right
    • text = The text under the image
    • link = To which Fleet Wiki page clicking the image will lead to. Leave blank if you won't want it to link to anything.


Todo:

  • alt="{{{alt}}}"
  • {{{style}}}

Can't do alt tag without an Extension.