Template:GalleryImage: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
==GalleryImage Template==
==GalleryImage Template==
'''Usage:'''
'''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).
<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 12: Line 13:
</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 13:35, 1 June 2008

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).

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


Example

{{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]]
}}

Gives you the following:


Example

{{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]]
}} </noinclude> Gives you the following: Template loop detected: Template:GalleryImage

Grid Mode Description What To Type See Also
Gm2.png


This image shows Grid Mode in action.

This image shows Grid Mode in action.

fetch 1cll 1sra 1ggz 5pnt 1rlw 1cdy;
set grid_mode


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


{{{description}}}

{{{description}}}

{{{cmdString}}}

{{{seeAlso}}}