Difference between revisions of "Template:FleetImage"
From Fleet
Space Weasel (talk | contribs) |
Space Weasel (talk | contribs) |
||
(55 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" |
− | {| class="wikitable" style="text-align:left;clear: | ||
|- | |- | ||
− | | | + | | 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> | ||
+ | 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. | ||
− | |||
− | |||
+ | Todo: | ||
+ | *<nowiki>alt="{{{alt}}}"</nowiki> | ||
+ | *<nowiki>{{{style}}}</nowiki> | ||
− | + | Can't do alt tag without an Extension. | |
− | |||
− | + | [[Category:Templates]] | |
− | + | [[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.