Template:Logo and Ship: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(added third variable option)
(added permanent width, changed image restriction to height of 120px)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|cellspacing=20
<includeonly>{|cellspacing=20
!rowspan=2|{{Logo|{{{1}}}|120}}
!rowspan=2 width="120"|{{Logo|{{{1}}}|x120|link={{{link|}}}}}
|valign="bottom"|[[File:{{{2}}}-scale.png|link={{{1}}}]]
|valign="bottom"|[[File:{{{2}}}-scale.png|link={{{link|{{{1}}}}}}]]
|-
|-
|valign="top"|<font style="text-transform:uppercase;" size=1>'''[[{{{1}}}]]''' • [[{{Classpropername|{{{2}}}}} class]]{{#if: {{{3|}}}| • {{{3|}}}|}}</font>
|valign="top"|<font style="text-transform:uppercase;" size=1>'''[[{{{1}}}]]''' • [[{{Classpropername|{{{2}}}}} class]] {{#if: {{{3|}}}|• {{{3|}}}|}}</font>
|}</includeonly><noinclude>Creates a link to a ship with its logo and and a scaled side view.
|}</includeonly><noinclude>Creates a link to a ship with its logo and and a scaled side view.


Line 22: Line 22:
And you can add additional text or links to be displayed by adding a third variable.
And you can add additional text or links to be displayed by adding a third variable.


<pre>{{Logo and Ship|USS Garuda|Galaxy|{{nrank|Captain|Cassandra|Egan Mano}}}}</pre>
<pre>{{Logo and Ship|USS Garuda|Galaxy|{{nrank|Captain|Cassandra|Egan Manno}}}}</pre>




{{Logo and Ship|USS Garuda|Galaxy|{{nrank|Captain|Cassandra|Egan Mano}}}}
{{Logo and Ship|USS Garuda|Galaxy|{{nrank|Captain|Cassandra|Egan Manno}}}}
 
===Optional link===
You can change the link of the logo and ship from the default (to the ship's main page) to another page by adding link=
 
<pre>{{Logo and Ship|USS Garuda|Galaxy|link=Garuda Mission History}}</pre>
 
{{Logo and Ship|USS Garuda|Galaxy|link=Garuda Mission History}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 13:46, 28 June 2018

Creates a link to a ship with its logo and and a scaled side view.

{{Logo and Ship|USS Garuda|Galaxy}}


GarudaLargeLogo.png Galaxy-scale.png
USS GarudaGalaxy class

Class refits

You can also specify class refits. If your refit image does not show up, check to see if it has been added to Template:Classpropername.

{{Logo and Ship|USS Constitution-B|Galaxy refit}}


USS Constitution-logo.png Galaxy refit-scale.png
USS Constitution-BGalaxy class

Additional text

And you can add additional text or links to be displayed by adding a third variable.

{{Logo and Ship|USS Garuda|Galaxy|{{nrank|Captain|Cassandra|Egan Manno}}}}


GarudaLargeLogo.png Galaxy-scale.png
USS GarudaGalaxy classCaptain Cassandra Egan Manno

Optional link

You can change the link of the logo and ship from the default (to the ship's main page) to another page by adding link=

{{Logo and Ship|USS Garuda|Galaxy|link=Garuda Mission History}}
GarudaLargeLogo.png Galaxy-scale.png
USS GarudaGalaxy class