Jump to content

Template:Omnipedia Entry/doc: Difference between revisions

From The Petit Planet Wiki
Created page with "{{Documentation/Header}} Template for Omnipedia entries. Takes: <pre> {{Omnipedia Entry |location = where in the omni-gallery (coolwater zone, etc) |sname = scientific name |text = the main text }} </pre> {{Omnipedia Entry |location = where in the omni-gallery (coolwater zone, etc) |sname = scientific name |text = the main text }}"
 
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation/Header}}
{{Documentation/Header}}
Template that formats [[Omnipedia]] entries.


Template for Omnipedia entries.
==Syntax==
<syntaxhighlight lang="wikitext" copy>
{{Omnipedia Entry
|location =
|sname    =
|text    =
}}
</syntaxhighlight>
* {{F|location}} &ndash; Omni-Gallery location.
* {{F|sname}} &ndash; Scientific name.
* {{F|text}} &ndash; Omnipedia entry text.
** {{Color|Old|Note}}: All newlines are preserved. Adding {{F|<nowiki><br></nowiki>}}, {{F|<nowiki><br/></nowiki>}}, or {{F|<nowiki><br /></nowiki>}} is not necessary.


Takes:
==Examples==
<pre>
===All Parameters===
{{Example|<nowiki>
{{Omnipedia Entry
{{Omnipedia Entry
|location = where in the omni-gallery (coolwater zone, etc)
|location = Coolwater Zone
|sname    = scientific name
|sname    = Ctenopharyngodon idella
|text    = the main text
|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.
}}
}}
</pre>
</nowiki>}}


===Only Text===
{{Example|<nowiki>
{{Omnipedia Entry
{{Omnipedia Entry
|location = where in the omni-gallery (coolwater zone, etc)
|text    = Grass carp are named for their herbivorous habits, but this diet isn't persistent throughout its life cycle.
|sname    = scientific name
During their juvenile stage, grass carp primarily feed on invertebrates.
|text    = the main text
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.
}}
}}
</nowiki>}}
==Template Data==
<templatedata>
{
"params": {
"location": {
"label": "Location",
"description": "Omni-Gallery location.",
"example": "Coolwater Zone",
"type": "string",
"suggested": true
},
"sname": {
"label": "Scientific name",
"description": "Scientific name.",
"example": "Ctenopharyngodon idella",
"type": "string"
},
"text": {
"label": "Text",
"description": "Omnipedia entry text. All newlines are preserved.",
"type": "content",
"required": true
}
},
"description": "Template that formats Omnipedia entries.",
"format": "{{_\n|________ = _\n}}\n"
}
</templatedata>

Latest revision as of 05:36, 19 May 2026

This is the documentation page for Omnipedia Entry.
It contains usage information, categories, and other content not part of the original template page.

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

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