This is a read-only mirror of pymolwiki.org

Difference between revisions of "Template:GalleryImageTest"

From PyMOL Wiki
Jump to navigation Jump to search
m (59 revisions)
 
(33 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
==GalleryImageTest Template==
 
==GalleryImageTest Template==
 
'''Usage:'''
 
'''Usage:'''
This is the current incarnation of the GalleryImage template.
+
<source lang=css>
<nowiki>{{GalleryImageTest</nowiki><br><nowiki>
+
{{GalleryImageTest
| image=[[ImageName.png]]</nowiki><br><nowiki>
+
| title=theTitle
| title=theTitle</nowiki><br><nowiki>
+
| image=[[ImageName.png]]
| description=theDescription</nowiki><br><nowiki>
+
| description=theDescription
| cmdString=commandString </nowiki><br><nowiki>
+
| seeAlso=seeAlso
| seeAlso=seeAlso </nowiki><br><nowiki>
+
| cmdString=commandString
 
}}
 
}}
</nowiki>
+
</source>
* ImageName.png is the name of the image
+
* '''ImageName.png''' is the name of the image (the image should already be in the wiki)
* theTitle is the title you would like at the top of your image
+
* '''theTitle''' is the title you would like at the top of your image
* theDescription is the description you would like added to your image
+
* '''theDescription''' is the description you would like added to your image
* cmdString are the commands used to create the image. You can use <nowiki><source lang="python">...</source></nowiki> within this area to prettify your PyMOL commands.
+
* '''cmdString''' are the commands used to create the image. You can use '''<nowiki><source lang="python">...</source></nowiki>''' within this area to prettify your PyMOL commands
* seeAlso can include quick links to commands used.
+
* '''seeAlso''' can include quick links to commands used
 +
* the order of these variables does not matter
 +
* images are resized to 200px mainly to make columns line up better
  
 +
==Example==
 +
<br>
 
{{GalleryImageTest
 
{{GalleryImageTest
 
<!-- This creates a row entry for the Gallery section -->
 
<!-- This creates a row entry for the Gallery section -->
<!-- columns resize dynamically, and poorly -->
 
<!-- the image and 'What to Type' sections define the space -->
 
<!-- the 'Description' and 'See Also' sections take whatever's left -->
 
 
|<!-- Image -->
 
|<!-- Image -->
 
image=BW_raytraced_complex_image.jpg
 
image=BW_raytraced_complex_image.jpg
Line 30: Line 31:
 
|<!-- 'What to Type' section -->
 
|<!-- 'What to Type' section -->
 
cmdString=<source lang="python">
 
cmdString=<source lang="python">
(do many things)
+
many pymol commands
 
</source>
 
</source>
There's other text here.
+
You can put other text also.<br>
|<!-- 'See Also' section -->
+
'''Bold text'''<br>
 +
''Italic text''<br>
 +
* even bulleted lists!
 +
|<!-- 'See Also' section (shows up below the image)-->
 
seeAlso=
 
seeAlso=
* [[Bg_Color|bg_color]]
+
* [[Main_Page|PyMOLWiki]]
* [[Get_View|get_view]]
+
* [[template:GalleryImage|GalleryImage template]]
* Mouse Modes (no good reference for this?)
 
* [[png]]
 
* [[Cartoon#Sausage_Representation|putty]]
 
* [[ray]]
 
* [[Ray#Modes|ray_trace_mode]]
 
* [[set]]
 
* [[Set_View|set_view]]
 
* [[Single-word_Selectors |single word property selectors]]
 
* [[Advanced_Coloring#Coloring_by_atom_type|util.cbag]]
 
 
}}
 
}}
 +
 +
==Template==
 
</noinclude>
 
</noinclude>
 
+
{| align=left; width=100%;
{| align="left"
 
 
|- style="font-weight:bold; color:#333; font-size:125%; font-style:italic; text-align:center;"  
 
|- style="font-weight:bold; color:#333; font-size:125%; font-style:italic; text-align:center;"  
 
| {{{title}}} || What To Type
 
| {{{title}}} || What To Type
 
|- style="font-weight:medium; background:#ddd; color: #333; font-style: normal; vertical-align:top;"
 
|- style="font-weight:medium; background:#ddd; color: #333; font-style: normal; vertical-align:top;"
| style="background:white; width=25%; vertical-align:top;"|<table BORDER="0" CELLPADDING="0" CELLSPACING="0">
+
| width=25%; style="background:white; vertical-align:top;"|
 +
<table BORDER="0" CELLPADDING="0" CELLSPACING="0" width=100%;>
 
<tr><td align="center">[[Image:{{{image}}}|200px]]</td></tr>
 
<tr><td align="center">[[Image:{{{image}}}|200px]]</td></tr>
 
<tr><td align="center"><b>Description</b></td></tr>
 
<tr><td align="center"><b>Description</b></td></tr>
Line 59: Line 56:
 
<tr><td align="center"><b>See Also</b></td></tr>
 
<tr><td align="center"><b>See Also</b></td></tr>
 
<tr><td align="left">
 
<tr><td align="left">
{{{seeAlso}}}</td></tr>
+
{{{seeAlso}}}
 +
</td></tr>
 
</table>
 
</table>
||
+
|width=75%;|
 
{{{cmdString}}}
 
{{{cmdString}}}
 
|}
 
|}
<br>
+
<hr>

Latest revision as of 00:50, 28 March 2014

GalleryImageTest Template

Usage:

{{GalleryImageTest
| title=theTitle
| image=[[ImageName.png]]
| description=theDescription
| seeAlso=seeAlso
| cmdString=commandString
}}
  • ImageName.png is the name of the image (the image should already be in the wiki)
  • theTitle is the title you would like at the top of your image
  • theDescription is the description you would like added to your image
  • cmdString are the commands used to create the image. You can use <source lang="python">...</source> within this area to prettify your PyMOL commands
  • seeAlso can include quick links to commands used
  • the order of these variables does not matter
  • images are resized to 200px mainly to make columns line up better

Example


This is the title What To Type
BW raytraced complex image.jpg
Description
This is the description.


See Also
many pymol commands

You can put other text also.
Bold text
Italic text

  • even bulleted lists!

Template

{{{title}}} What To Type
[[Image:{{{image}}}|200px]]
Description
{{{description}}}


See Also

{{{seeAlso}}}

{{{cmdString}}}