Difference between revisions of "Template:Image/doc"
From BotE Wiki
(new) |
(Improved parameter explanation) |
||
Line 1: | Line 1: | ||
− | {{See also| | + | {{See also|Template:Image-png}} |
The template '''image''' is used for easier image placement. | The template '''image''' is used for easier image placement. | ||
<pre><nowiki>{{image|}} | <pre><nowiki>{{image|}} | ||
Line 7: | Line 7: | ||
{{image||}}</nowiki></pre> | {{image||}}</nowiki></pre> | ||
+ | This template has three parameters separated by a "|" (vertical bar). | ||
− | == | + | |
− | <pre><nowiki>{{image|Planets/Han1.png}} | + | === First parameter === |
− | + | The first parameter is for the image path. | |
− | + | <pre><nowiki>{{image|Planets/Han1.png}} | |
+ | or | ||
+ | http://birth-of-the-empires.de/wiki_files/Bilder/Planets/Han1.png</nowiki></pre> | ||
result both in:<br /> | result both in:<br /> | ||
{{image|Planets/Han1.png}} | {{image|Planets/Han1.png}} | ||
− | With the second parameter a link can be added to the image.<br /> | + | === Second parameter === |
+ | With the second parameter a wiki link can be added to the image.<br /> | ||
<pre><nowiki>{{image|Planets/Han3.png|Main_Page}}</nowiki></pre> | <pre><nowiki>{{image|Planets/Han3.png|Main_Page}}</nowiki></pre> | ||
{{image|Planets/Han3.png|Main_Page}} | {{image|Planets/Han3.png|Main_Page}} | ||
+ | |||
+ | |||
+ | === Third parameter === | ||
+ | With the third parameter a external link can be added to the image. The second parameter must stay empty.<br /> | ||
+ | <pre><nowiki>{{image|Planets/Han5.png||http://hp.birth-of-the-empires.de/}}</nowiki></pre> | ||
+ | {{image|Planets/Han5.png||http://hp.birth-of-the-empires.de/}} |
Revision as of 23:18, 5 September 2013
See also: Template:Image-png
The template image is used for easier image placement.
{{image|}} or {{image||}}
This template has three parameters separated by a "|" (vertical bar).
First parameter
The first parameter is for the image path.
{{image|Planets/Han1.png}} or http://birth-of-the-empires.de/wiki_files/Bilder/Planets/Han1.png
result both in:
Second parameter
With the second parameter a wiki link can be added to the image.
{{image|Planets/Han3.png|Main_Page}}
Third parameter
With the third parameter a external link can be added to the image. The second parameter must stay empty.
{{image|Planets/Han5.png||http://hp.birth-of-the-empires.de/}}