Difference between revisions of "Template:GalleryImage"

From PyMOLWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==GalleryImage Template==
 
==GalleryImage Template==
'''Usage:''' Copy the following text to create your gallery image.  Just replace everything on the right side of the equal signs with your data (see the example below the template text).  If your the formatting is off (put a newline after "seeAlso" and "cmdString" if you're using MediaWiki lists, like in this example, here).
+
'''Usage:'''
<br/><br/>
 
 
<nowiki>{{GalleryImage</nowiki><br><nowiki>
 
<nowiki>{{GalleryImage</nowiki><br><nowiki>
| image=ImageName.png</nowiki><br><nowiki>
+
| image=[[ImageName.png]]</nowiki><br><nowiki>
 
| size=250px</nowiki><br><nowiki>
 
| size=250px</nowiki><br><nowiki>
 
| title=theTitle</nowiki><br><nowiki>
 
| title=theTitle</nowiki><br><nowiki>
Line 13: Line 12:
 
</nowiki>
 
</nowiki>
 
</noinclude>
 
</noinclude>
 
=== Example ===
 
<nowiki>{{GalleryImage</nowiki><br><nowiki>
 
| image=Gm2.png</nowiki><br><nowiki>
 
| size=200px</nowiki><br><nowiki>
 
| title=Grid Mode</nowiki><br><nowiki>
 
| description=This image shows [[Grid Mode]] in action.</nowiki><br><nowiki>
 
| cmdString=<source lang="python"></nowiki><br><nowiki>
 
fetch 1cll 1sra 1ggz 5pnt 1rlw 1cdy;</nowiki><br><nowiki>
 
set grid_mode</nowiki><br><nowiki>
 
</source></nowiki><br><nowiki>
 
| seeAlso=</nowiki><br><nowiki>
 
*[[Fetch]]</nowiki><br><nowiki>
 
*[[Set]]</nowiki><br><nowiki>
 
*[[grid_mode]]</nowiki><br><nowiki>
 
}}
 
</nowiki>
 
</noinclude>
 
Gives you the following:
 
{{GalleryImage
 
|image=Gm2.png|size=200px|title=Grid Mode|description=This image shows [[Grid Mode]] in action.
 
|cmdString=<source lang="python">
 
fetch 1cll 1sra 1ggz 5pnt 1rlw 1cdy;
 
set grid_mode
 
</source>
 
|seeAlso=
 
*[[Fetch]]
 
*[[Set]]
 
*[[grid_mode]]
 
}}
 
  
 
{| align="center"
 
{| align="center"

Revision as of 14:35, 1 June 2008

GalleryImage Template

Usage: {{GalleryImage
| image=[[ImageName.png]]
| size=250px
| title=theTitle
| description=theDescription
| cmdString=commandString
| seeAlso=seeAlso
}}


{{{title}}} Description What To Type See Also
[[Image:{{{image}}}|{{{size}}}]]


{{{description}}}

{{{description}}}

{{{cmdString}}}

{{{seeAlso}}}