Template:ILI-P: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (spacing)
m (Reverted edits by Ceciri (talk) to last revision by Rich)
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| style="float:left; margin:0.46em 0.2em;" cellpadding="1" cellspacing="0"
<includeonly>
! style="background:#99FF66;"|[[{{{2}}}]]
{| 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}}}]]</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>
|-
|-
! style="background:#99FF66; width:120px; height:120px"|[[{{{1}}}|100x100px|border|{{{2}}}|link={{{2}}}]]
!height="50" valign=top|[[{{{2}}}|<font color=4DB870>{{{2}}}</font>]]
|}</includeonly><noinclude>This template takes an image for a permitted species and adds a border around it so that it can be displayed in a similar fashion as a gallery image '''with the added benefit that the image now links directly to the species and not to the image itself!'''<br><br>Normally, you could link an image directly by using the link= parameter [http://www.mediawiki.org/wiki/Help:Images as explained here], but the gallery format of the SB118 wiki currently does not support this feature.
|}</includeonly><noinclude>
[[File:ILI-Permitted.png|center|link=]]
{| cellspacing="3"  
{| cellspacing="3"  
|- valign="top"
|- valign="top"
|bgcolor="#F5FAFF" 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").
#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").
Line 13: Line 15:
{{ILI-P|File:Marouk.jpg|Acamarian}}
{{ILI-P|File:Marouk.jpg|Acamarian}}
|}
|}
Remember, this particular template is for '''permitted''' species of the [[Intelligent Lifeform Index]].
Remember, this particular template is for [[:Category:Permitted|'''permitted''']] species of the [[Intelligent Lifeform Index]].
*For '''restricted''' species, use the [[Template:ILI-R]] template.
*For '''restricted''' species, use the [[Template:ILI-R]] template.
*For '''forbidden''' species, use the [[Template:ILI-F]] template.
*For '''forbidden''' species, use the [[Template:ILI-F]] template.
*For species whose status is '''to be determined''', use the [[Template:ILI-TBD]] template.
If you have any questions, contact [[User:TZhou|Rich]].
If you have any questions, contact [[User:TZhou|Rich]].
[[Category:Intelligent Lifeform Index Species|*]]
</noinclude>
</noinclude>

Latest revision as of 11:11, 12 January 2019

ILI-Permitted.png

How to Use This Template:

  1. 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").
  2. Enter the following wikicode: {{ILI-P|Name of the Image File|Name of the Article}}. Thus, in this example, we'll enter the code as {{ILI-P|File:Marouk.jpg|Acamarian}}.
  3. Verify that you get this image created:
ILI-P.png
Marouk.jpg
Acamarian

Remember, this particular template is for permitted species of the Intelligent Lifeform Index.

If you have any questions, contact Rich.