Template:Omnipedia Entry: Difference between revisions
No edit summary |
Moved styles to Template:Omnipedia Entry/styles.css. Wrapped <poem> around text to remove the requirement of adding <br> after every line |
||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><templatestyles src="Template:Omnipedia Entry/styles.css" /><!-- | ||
--><div class=" | --><div class="omnipedia-wrapper" id="{{Replace|{{lc:{{{location|}}}}}|s1="|r1="|s2={space}|r2=-}}"><!-- | ||
-->{{#if:{{{location|}}}|<!-- | -->{{#if:{{{location|}}}|<!-- | ||
--><div | --><div class="omnipedia-location" id="loc-{{Replace|{{lc:{{{location|}}}}}|s1="|r1="|s2={space}|r2=-}}"><!-- | ||
-->'''Omni-Gallery — [[{{{location}}}]]'''<!-- | -->'''Omni-Gallery — [[{{{location}}}]]'''<!-- | ||
--></div><!-- | --></div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
--><div class="omnipedia-text"><!-- | |||
--><div | -->{{#if:{{{sname|}}}|'''Scientific Name''': ''{{{sname}}}''}}<!-- | ||
-->{{#if:{{{sname|}}}|'''Scientific Name''': {{{sname}}} | -->{{#if:{{{text|}}}|{{#tag:poem|{{{text}}}}}}}<!-- | ||
-->{{#if:{{{text|}}}|{{{text}}}}}<!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
-->{{Namespace|main=<!-- | -->{{Namespace|main=<!-- | ||
-->{{#if:{{{location|}}}|[[Category:{{{location|}}} Creatures]]}}<!-- | -->{{#if:{{{location|}}}|[[Category:{{{location|}}} Creatures]]}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><!-- | --></includeonly><!-- | ||
--><noinclude>{{Documentation|type=Data}}</noinclude> | --><noinclude>{{Documentation|type=Data}}</noinclude> | ||
Revision as of 12:48, 3 May 2026
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Template that formats Omnipedia entries.
Syntax
{{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
All Parameters
{{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.
}}
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
{{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
Template that formats Omnipedia entries.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Location | location | Omni-Gallery location.
| String | suggested |
| Scientific name | sname | Scientific name.
| String | optional |
| Text | text | Omnipedia entry text. All newlines are preserved. | Content | required |