Difference between revisions of "User:Argent/templates/Template:Lifeform"

m
no edit summary
(Created page with "{{infobox |title={{{name|{{PAGENAME}}}}}|id=Lifeform| {{#if:{{{image|}}} |{{row/image+artist | {{{image}}}<!-- -->}}|}} <!-- about --> {{#if:{{{type|}...")
 
m
<!-- location -->
{{#if:{{{native|}}} |{{row/kv| Native to | {{{native}}}<!-- -->}}|}}
{{#if:{{{earth|}}} |{{row/kv| World | [[Earth ({{{earth}}})]]<!-- -->}}|}}
{{#if:{{{world|}}} |{{row/kv| World | [[{{{world}}}]][[Category:{{demonym|{{{world}}}|}}<!-- lifeforms]] -->}}|}}
{{#if:{{{universe'world|}}} |{{row/kv| UniverseWorld | |{{{universe'world}}} {{raw/world}}<!-- -->}}|}}
{{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}}<!-- -->}}|}}
 
<!-- featured in -->{{row/kv| Featured In | ''{{{books}}}''<!-- -->}}
 
}}<includeonly><!--
 
# Categories
-->[[category: lifeforms]]<!--
 
-->{{#if: {{{world-ref|}}} | [[categoryCategory: infobox {{demonym|{{{world-ref}}}|}} lifeforms]] | }}<!--
 
--></includeonly><noinclude>
This template is to be used on articles discussing any distinct group of beings; including plants, animals, magical creatures, magical creations, etc.
 
__TOC__
To use this infobox, add {{t|lifeform}} to the top of the page and fill in some of the fields, removing those that are unneeded.
 
=== Template ===
<pre class=mw-code>
{{lifeform|title=
|image=
|type=
|sapient=
|native=
|earth= / world=
|world=
|universe=
|books=
</pre>
 
=== Parameters ===
This infobox will add the article to [[:Category: Lifeforms]].
Highlighted lines indicate '''mandatory''' parameters.
On lines with multiple parameters (e.g. <code>|world= / earth=</code>) pick only the one most appropriate.
 
{{docs|title=={{t|lifeform}} Parameters ==}}
* The <code>books</code> parameter is required and should provide links to the books or series which the subject is '''Featured In'''
 
<!-- ---------- -->
; Setting: To indicate the setting within which the subject matter is discussed, the following parameters are accepted. At least one of these should be provided, and they should be provided in most-to-least specific order, as they are in the above list.
<!-- ROW: image -->
* The <code>world</code> parameter should provide the name of the planet the lifeform is native to. This will generate a link to the planet passed.
<!-- ---------- -->
* If the setting is an alternative earth, the <code>earth</code> parameter should be used instead, and should provide the series name (such as <code>|earth=Alcatraz</code> which will create a link to [[Earth (Alcatraz)]] or <code>|earth=Reckoners</code> to link to [[Earth (Reckoners)]]).
{{docs/image
* If neither <code>world</code> or <code>earth</code> are sufficient, then a <code>universe</code> can be provided.
|eg=
* To indicate the specific area or region a lifeform is from, provide the <code>native</code> parameter to produce a '''Native To''' row
<code><nowiki>|image=Axehound by Shallan.jpg</nowiki></code>
}}
 
<!-- --------- -->
<!-- ROW: type -->
<!-- --------- -->
{{docs/row/optional
|param=type
|desc= Use this to specify the type of lifeform being described.
|eg=
<code><nowiki>|type=Animal</nowiki></code>
}}
 
<!-- -------------- -->
<!-- ROW: abilities -->
<!-- -------------- -->
{{docs/row/optional
|param=abilities
|desc= Use this to specify any unusual abilities the lifeform might have.
|eg=
<code><nowiki>|abilities=[[Cytonics]]</nowiki></code>
}}
 
<!-- -------- -->
<!-- ROW: use -->
<!-- -------- -->
{{docs/row/optional
|param=use
|desc= Use this to specify what, if anything, the lifeform is used for. This is usually applicable to plants with known uses (e.g. food, poison) and domesticated animals.
|eg=
<code><nowiki>|use=Poison</nowiki></code>
}}
 
<!-- ------------ -->
<!-- ROW: sapient -->
<!-- ------------ -->
{{docs/row/optional
|param=sapient
|desc= Use this to specify whether the lifeform is sapient.<br>
<small>'''Note:''' Only include this parameter if the lifeform ''is'' sapient.</small>
|eg=
<code><nowiki>|sapient=y</nowiki></code>
}}
 
<!-- ----------- -->
<!-- ROW: native -->
<!-- ----------- -->
{{docs/row/optional
|param=native
|desc= Use this to specify the location this lifeform is originates from or is native to.
|eg=
<code><nowiki>|native=[[Roshar]]</nowiki></code>
}}
 
<!-- ------------------ -->
<!-- ROW: world / earth -->
<!-- ------------------ -->
{{docs/world}}
 
<!-- ------------- -->
<!-- ROW: universe -->
<!-- ------------- -->
{{docs/universe}}
 
<!-- ---------- -->
<!-- ROW: books -->
<!-- ---------- -->
{{docs/books}}
 
|}
 
; Image: The infobox has the ability to show an image of the lifeform by providing the filename, eg <code>|image=lifeform.jpg</code>. This parameter should be on the first line after the opening <code>{{lifeform</code> as the image is placed at the top of the page. The filename will be passed to {{t|row/image+artist}} and will show the image and provide attribution to the artist.
 
=== Categories & Tags ===
; Optional parameters:
Pages that make use of the ''{{t|lifeform}}'' template will be added to [[:Category: Lifeforms]]. In addition, providing <code><nowiki>|sapient=y</nowiki></code> will add the page to [[:Category: Sapient beings]], while providing <code><nowiki>|world</nowiki></code> or <code><nowiki>|earth</nowiki></code> will add the page to a lifeforms category corresponding to that world/earth (<small>e.g. <code><nowiki>|world=Roshar</nowiki></code> will add the page to [[:Category: Rosharan lifeforms]]</small>).
* To specify what type of lifeform the article describes, such as ???, use the <code>type</code> parameter
* To indicate the lifeforms special skill and properties use the <code>abilities</code> parameter
* If the lifeform has specific uses in the setting they can be listed using the <code>uses</code> parameter
* If <code>|sapient=y</code> is added the '''Sapient''' row will show Yes and the article will be added to [[:category: sapient beings]]
 
; Special parameters:
* To override the title shown in the infobox, the <code>|title=</code> parameter should be passed
 
[ [categoryCategory: infoboxesInfoboxes]]