Template:ILI-P: Difference between revisions

m
Reverted edits by Ceciri (talk) to last revision by Rich
(Adding in alt text for screen readers)
m (Reverted edits by Ceciri (talk) to last revision by Rich)
 
Line 1: Line 1:
<includeonly>
<includeonly>
{| style="float:left; max-width:120px" cellpadding="0" cellspacing="0"
{| style="float:left; max-width:120px" cellpadding="0" cellspacing="0"
!<div style="position: relative; z-index:3; left:4px; width: 124px; height: 118px; overflow: hidden"><div style="position: absolute; z-index:2; width: 120px; height: 114px; left: 0px; top: 2px; padding: 0;">[[File:ILI-P.png|link={{{2}}}|alt={{{3}}}]]</div><div style="background:black; position: absolute; left: 0px; top: 2px; width: 110px; height: 110px; overflow: hidden"><div style="position: relative; background:black; z-index:1; width: 322px; left: -101px; top: 2px;">[[{{{1}}}|x110px|center|link=]]</div></div></div>
!<div style="position: relative; z-index:3; left:4px; width: 124px; height: 118px; overflow: hidden"><div style="position: absolute; z-index:2; width: 120px; height: 114px; left: 0px; top: 2px; padding: 0;">[[File:ILI-P.png|link={{{2}}}]]</div><div style="background:black; position: absolute; left: 0px; top: 2px; width: 110px; height: 110px; overflow: hidden"><div style="position: relative; background:black; z-index:1; width: 322px; left: -101px; top: 2px;">[[{{{1}}}|x110px|center|link=]]</div></div></div>
|-
|-
!height="50" valign=top|[[{{{2}}}|<font color=4DB870>{{{2}}}</font>]]
!height="50" valign=top|[[{{{2}}}|<font color=4DB870>{{{2}}}</font>]]
Line 10: Line 10:
|bgcolor="#fff" style="border:1px solid #CEDFF2; padding:1em; padding-top:0.5em; padding-bottom:0em; color: black;"|
|bgcolor="#fff" style="border:1px solid #CEDFF2; padding:1em; padding-top:0.5em; padding-bottom:0em; color: black;"|
'''How to Use This Template:'''<br>
'''How to Use This Template:'''<br>
#Let's say you want to create a gallery picture for the Acamarians. Find the name of the image you want to use (in this case, "File:Marouk.jpg") and the name of the article for the species (in this case "Acamarian"). Please include alt text for screen readers next, for example (Img: An image of an Acamarian)
#Let's say you want to create a gallery picture for the Acamarians. Find the name of the image you want to use (in this case, "File:Marouk.jpg") and the name of the article for the species (in this case "Acamarian").
#Enter the following wikicode: <nowiki>{{ILI-P|Name of the Image File|Name of the Article|Alt Text}}</nowiki>. Thus, in this example, we'll enter the code as <nowiki>{{ILI-P|File:Marouk.jpg|Acamarian|Img: An image of an Acamarian}}</nowiki>.
#Enter the following wikicode: <nowiki>{{ILI-P|Name of the Image File|Name of the Article}}</nowiki>. Thus, in this example, we'll enter the code as <nowiki>{{ILI-P|File:Marouk.jpg|Acamarian}}</nowiki>.
#Verify that you get this image created:<br>
#Verify that you get this image created:<br>
{{ILI-P|File:Marouk.jpg|Acamarian|Img: An image of an Acamarian}}
{{ILI-P|File:Marouk.jpg|Acamarian}}
|}
|}
Remember, this particular template is for [[:Category:Permitted|'''permitted''']] species of the [[Intelligent Lifeform Index]].
Remember, this particular template is for [[:Category:Permitted|'''permitted''']] species of the [[Intelligent Lifeform Index]].
7,850

edits