Template:NewSpeciesInfo: Difference between revisions
From Begonia Wiki
(Created page with "<includeonly>{{#ifeq:{{{list|}}}|yes | {{!}}- {{!}} style="text-align:center;" {{!}} [[File:{{{image|}}}|100px|link={{{_page|}}}]] {{!}} '''[[{{{_page|}}}]]''' <br> ''Described: {{{date|}}}'' | {| class="wikitable floatright" style="width: 300px;" |+ '''Species Information''' |- ! colspan="2" | ''[[{{{_page|}}}]]'' |- | colspan="2" style="text-align:center;" | [[File:{{{image|}}}|280px]] |- ! Described | {{{date|}}} |} }}</includeonly><noinclude> ==...") |
|||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{list|}}}|yes | |||
| {{!}}- | |||
{{!}} style="text-align:center;" {{!}} [[File:{{{image|}}}|100px|link={{{_page|}}}]] | |||
{{!}} '''[[{{{_page|}}}]]''' <br> ''Described: {{{date|}}}'' | |||
| {| class="wikitable floatright" style="width: 300px;" | |||
|+ '''Species Information''' | |||
|- | |||
! colspan="2" | ''[[{{{_page|}}}]]'' | |||
|- | |||
| colspan="2" style="text-align:center;" | [[File:{{{image|}}}|280px]] | |||
|- | |||
! Described | |||
| {{{date|}}} | |||
|} | |||
}}</includeonly><noinclude> | |||
<includeonly>{{#ifeq:{{{list|}}}|yes | <includeonly>{{#ifeq:{{{list|}}}|yes | ||
| {{!}}- | | {{!}}- | ||
| Line 20: | Line 35: | ||
To add an infobox to a species page, use the following code: | To add an infobox to a species page, use the following code: | ||
<pre> | <pre> | ||
{{ | {{NewSpeciesInfo | ||
| image = Your_Image_Name.jpg | | image = Your_Image_Name.jpg | ||
| date = YYYY-MM-DD | | date = YYYY-MM-DD | ||
| Line 31: | Line 46: | ||
<dpl> | <dpl> | ||
category = Newly Described Species | category = Newly Described Species | ||
include = { | include = {NewSpeciesInfo:list=yes} | ||
</dpl> | </dpl> | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 05:55, 26 September 2025
About This Template
This template is used to display information about a Begonia species.
Usage on a Species Page
To add an infobox to a species page, use the following code:
{{NewSpeciesInfo
| image = Your_Image_Name.jpg
| date = YYYY-MM-DD
}}
Usage with DPL
This template is called by a DPL query on the main page to generate a list. The DPL code should look like this:
<dpl>
category = Newly Described Species
include = {NewSpeciesInfo:list=yes}
</dpl>