User:Admin
From AHPA Botanical Identity References Compendium
(Difference between revisions)
(→Customization Notes) |
|||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
==Customization Notes== | ==Customization Notes== | ||
+ | |||
+ | <pre> | ||
+ | Structure for inline image galleries | ||
+ | {| border=1 | ||
+ | | {{botcon |companyimage=WWWWWWWWWWWWWWWWWW | ||
+ | | companyURL=WWWWWWWWWWWWWWWWWWWWWW}} || 2 | ||
+ | |- | ||
+ | | {{botimg |mainimage=WWWWWWWWWWWWWWWWWWWWWWWWW | ||
+ | |caption1=WWWWWWWWWWWWWWWWWWWWWWWWW | ||
+ | |source=WWWWWWWWWWWWWWWWWWWWWWWWW}} | ||
+ | |2* | ||
+ | |} | ||
+ | </pre> | ||
MediaWiki:Sidebar | MediaWiki:Sidebar | ||
Line 32: | Line 45: | ||
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== | ||
+ | <pre>{{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 | ||
+ | | }}</pre> |
Latest revision as of 21:29, 3 February 2014
[edit] Customization Notes
Structure for inline image galleries {| border=1 | {{botcon |companyimage=WWWWWWWWWWWWWWWWWW | companyURL=WWWWWWWWWWWWWWWWWWWWWW}} || 2 |- | {{botimg |mainimage=WWWWWWWWWWWWWWWWWWWWWWWWW |caption1=WWWWWWWWWWWWWWWWWWWWWWWWW |source=WWWWWWWWWWWWWWWWWWWWWWWWW}} |2* |}
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)
[edit] 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 | }}