User:Admin

From AHPA Botanical Identity References Compendium
(Difference between revisions)
Jump to: navigation, search
(Customization Notes)
Line 32: Line 32:
 
it will work. If you only get the image but no description, create template {{!}} with a single pipe char (|) as contents. Hamilton Abreu 01:35, 2 October 2010 (UTC)
 
it will work. If you only get the image but no description, create template {{!}} with a single pipe char (|) as contents. Hamilton Abreu 01:35, 2 October 2010 (UTC)
 
</pre>
 
</pre>
 +
==mobot scratchpad entry==
 +
{{Macroscopy | source=MOBOT, Tropicos.org
 +
            | mainimage=MMMMMMMMMMMMMMMMMMMMMMMMMMM
 +
            | companyimage=TropicosLogo.gif
 +
            | companyURL=http://www.tropicos.org/Image/MMMMMMMMMMMMMMMMMMMMMMMMMMM
 +
            | caption1=''MMMMMMMMMMMMMMMMMMMMMMMMMMM'' - Tropicos.org (MMMMMMMMMMMMMMMMMMMMMMMMMMM)
 +
            | description=MMMMMMMMMMMMMMMMMMMMMMMMMMM (''MMMMMMMMMMMMMMMMMMMMMMMMMMM'')
 +
            | reference=MMMMMMMMMMMMMMMMMMMMMMMMMMM
 +
            | }}

Revision as of 20:55, 29 October 2013

Contents

Customization Notes

MediaWiki:Sidebar

Modified to add link to Category:Botanical, the list of species already present.

MediaWiki:Newarticletext

Includes a guide to the template for Botanical entries, so appearence can be customized later.

--edited by AHPA_MerleZimmermann 14 Jan 2011

This recommendation was helpful in setting up the gallery display (from the MediaWiki http://www.mediawiki.org/wiki/Help_talk:Templates#Gallery_In_a_Template on 2/14/2011)

Gallery In a Template

I'm trying to setup a template that has a gallery in it, but for some reason it won't work. Here is a basic example of what I'm having trouble with.
Template:MyGallery
<gallery>
File:{{{File1}}}|{{{Desc1}}}
</gallery>
Page:
{{MyGallery
| File1 = File.png
| Desc1 = This is the description.
}}
When the template is used in a page, the page remains blank. I've checked the HTML source, and it creates the table for the gallery, by it never puts the image or description in it. Anyone know what am I doing wrong?--TheAlmightyGuru 20:55, 1 October 2010 (UTC)
Apparently, once <gallery> takes over you can no longer do parameter substitution. Maybe we've finally found what the {{#tag:}} magic word can be used for. If you replace the template by:
{{#tag:gallery|
File:{{{File1}}}{{!}}{{{Desc1}}}
}}
it will work. If you only get the image but no description, create template {{!}} with a single pipe char (|) as contents. Hamilton Abreu 01:35, 2 October 2010 (UTC)

mobot scratchpad entry

MMMMMMMMMMMMMMMMMMMMMMMMMMM - Tropicos.org (MMMMMMMMMMMMMMMMMMMMMMMMMMM) 

Reference see MMMMMMMMMMMMMMMMMMMMMMMMMMM

Source: MOBOT, Tropicos.org [1]

TropicosLogo.gif
File:MMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMM - Tropicos.org (MMMMMMMMMMMMMMMMMMMMMMMMMMM)


Cite error: <ref> tags exist, but no <references/> tag was found

Personal tools
MediaWiki Appliance - Powered by TurnKey Linux