Difference between revisions of "Template:FleetImage"

From Fleet
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="text-align:left;clear:{{{align}}};float:{{{align}}};background-color:#eee; margin:10px"
+
<includeonly>{| class="wikitable" style="text-align:left;clear:{{{align}}};float:{{{align}}};background-color:#eee; margin:10px; max-width:160px"
 
|-
 
|-
 
| style="padding:5px;" |
 
| style="padding:5px;" |
{| class="wikitable" style="text-align:left;background-color:#e5e5e5; margin:0px"
+
{| class="wikitable" style="text-align:left;background-color:#e5e5e5;margin:0px;"
 
|-
 
|-
|[{{fullurl:{{{link}}}}} {{{1}}}]
+
| style="padding:1px;" |{{#if:{{{link|}}}|[{{fullurl:{{{link}}}}} {{{image}}}]|{{{image}}}|}}
 
|}
 
|}
 
<small>{{{text}}}</small>
 
<small>{{{text}}}</small>
Line 10: Line 10:
  
 
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.<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:
 
  
<pre>{{FleetImage|{{SERVER}}/img/n/assimilant_hive_x128.png|align=right|text="Resistance = voltage / current."|link=Assimilant Hive}}</pre>
+
 
 +
Template example with link:
 +
<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:
 +
**'''image''' = image path. Use the following format: <nowiki>{{SERVER}}/img/n/assimilant_hive_x128.png</nowiki>
 +
**'''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.
  
  
Line 24: Line 35:
  
 
Can't do alt tag without an Extension.
 
Can't do alt tag without an Extension.
 +
 +
[[Category:Templates]]
 +
[[Category:Wiki]]
 
</noinclude>
 
</noinclude>

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.