Difference between revisions of "Template:FleetImage"

From Fleet
(Undo revision 2381 by Space Weasel (talk))
 
(62 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{| class="wikitable" style="text-align:left;clear:{{{align}}};float:{{{align}}};background-color:#eee; margin:10px; max-width:160px"
{| style="text-align:right; width:100px; border:1px;"
 
 
|-
 
|-
| <img src="{{{1}}}" alt="{{{alt}}}" />
+
| style="padding:5px;" |
 +
{| class="wikitable" style="text-align:left;background-color:#e5e5e5;margin:0px;"
 +
|-
 +
| style="padding:1px;" |{{#if:{{{link|}}}|[{{fullurl:{{{link}}}}} {{{image}}}]|{{{image}}}|}}
 +
|}
 +
<small>{{{text}}}</small>
 +
|}</includeonly><noinclude>
 +
 
 +
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. Only without the security issues.<br />
 +
Work in progress. :9<br />
 +
 
  
  
 +
Template example with link:
 +
<pre>{{FleetImage|image={{SERVER}}/img/n/assimilant_hive_x128.png|align=right|text="Resistance = voltage / current."|link=Assimilant Hive}}</pre>
  
{{{style}}}
+
Template example without link:
 +
<pre>{{FleetImage|image={{SERVER}}/img/n/assimilant_hive_x128.png|align=right|text="Resistance = voltage / current."|link=}}</pre>
  
{{{align}}}
 
  
{{{alt}}}
+
*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.
  
{{{text}}}
 
  
{{{link}}}
 
  
|}
+
Todo:
</includeonly>
+
*<nowiki>alt="{{{alt}}}"</nowiki>
 +
*<nowiki>{{{style}}}</nowiki>
 +
 
 +
Can't do alt tag without an Extension.
  
Template for adding images directly from Fleet.
+
[[Category:Templates]]
More or less a remake of the '''Image''' template.
+
[[Category:Wiki]]
 +
</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.