Template:Omnipedia Entry/doc: Difference between revisions

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 }}"
 
Updated
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": "unbalanced-wikitext",
"required": true
}
},
"description": "Template that formats Omnipedia entries.",
"format": "block"
}
</templatedata>