Jump to content

Template:Omnipedia Entry: Difference between revisions

From The Petit Planet Wiki
Moved styles to Template:Omnipedia Entry/styles.css. Wrapped <poem> around text to remove the requirement of adding <br> after every line
Wrapped div around scientific name
 
Line 7: Line 7:
   -->}}<!--
   -->}}<!--
   --><div class="omnipedia-text"><!--
   --><div class="omnipedia-text"><!--
     -->{{#if:{{{sname|}}}|'''Scientific Name''': ''{{{sname}}}''}}<!--
     -->{{#if:{{{sname|}}}|<div class="omnipedia-sname">'''Scientific Name''': ''{{{sname}}}''</div>}}<!--
     -->{{#if:{{{text|}}}|{{#tag:poem|{{{text}}}}}}}<!--
     -->{{#if:{{{text|}}}|{{#tag:poem|{{{text}}}}}}}<!--
   --></div><!--
   --></div><!--

Latest revision as of 13:16, 3 May 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.

Template that formats Omnipedia entries.

Syntax

[edit source]
{{Omnipedia Entry
|location = 
|sname    = 
|text     = 
}}
  • location – Omni-Gallery location.
  • sname – Scientific name.
  • text – Omnipedia entry text.
    • Note: All newlines are preserved. Adding <br>, <br/>, or <br /> is not necessary.

Examples

[edit source]

All Parameters

[edit source]

{{Omnipedia Entry
|location = Coolwater Zone
|sname    = Ctenopharyngodon idella
|text     = Grass carp are named for their herbivorous habits, but this diet isn't persistent throughout its life cycle.
During their juvenile stage, grass carp primarily feed on invertebrates.
It's only when they grow to about the size of a bottle cap that they fully transition to a plant-based diet.
So, don't be surprised if you see a grass carp eating meat — It might just be reminiscing about its babyhood.
}}
Omni-Gallery — Coolwater Zone
Scientific Name: Ctenopharyngodon idella

Grass carp are named for their herbivorous habits, but this diet isn't persistent throughout its life cycle.
During their juvenile stage, grass carp primarily feed on invertebrates.
It's only when they grow to about the size of a bottle cap that they fully transition to a plant-based diet.
So, don't be surprised if you see a grass carp eating meat — It might just be reminiscing about its babyhood.

Only Text

[edit source]

{{Omnipedia Entry
|text     = Grass carp are named for their herbivorous habits, but this diet isn't persistent throughout its life cycle.
During their juvenile stage, grass carp primarily feed on invertebrates.
It's only when they grow to about the size of a bottle cap that they fully transition to a plant-based diet.
So, don't be surprised if you see a grass carp eating meat — It might just be reminiscing about its babyhood.
}}

Grass carp are named for their herbivorous habits, but this diet isn't persistent throughout its life cycle.
During their juvenile stage, grass carp primarily feed on invertebrates.
It's only when they grow to about the size of a bottle cap that they fully transition to a plant-based diet.
So, don't be surprised if you see a grass carp eating meat — It might just be reminiscing about its babyhood.

Template Data

[edit source]

Template that formats Omnipedia entries.

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
Locationlocation

Omni-Gallery location.

Example
Coolwater Zone
Stringsuggested
Scientific namesname

Scientific name.

Example
Ctenopharyngodon idella
Stringoptional
Texttext

Omnipedia entry text. All newlines are preserved.

Contentrequired