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
 
(4 intermediate revisions by the same user not shown)
<!-- about -->
{{#if:{{{type|}}} |{{row/kv| Type | {{{type}}}<!-- -->}}|}}
{{#if:{{{abilities|}}} |{{row/kv| Abilities | {{{[[Category: lifeforms-with-abilities}}}]]<!-- -->}}|}}
{{#if:{{{use|}}} |{{row/kv| Used for | {{{use}}}[[Category: lifeforms-with-used-for]] <!-- -->}}|}}
{{#if:{{{sapient|}}} |{{row/kv| Sapient | Yes [[category: sapient beings]] }}|}}
 
<!-- locationworld & universe -->
{{#if:{{{nativeearth|}}} |{{row/kv| NativeWorld to |[[Earth ({{{nativeearth}}})]]<!-- -->}}|}}
{{#if:{{{earthworld|}}} |{{row/kv| World | [[Earth ({{{earthworld}}})]]<!-- -->}}|}}
{{#if:{{{'world|}}} |{{row/kv| World | [[{{{'world}}}]][[Category:{{demonym|{ {{raw/world}}}|}}<!-- lifeforms]] -->}}|}}
{{#if:{{{universe|}}} |{{row/kv| Universe | {{{universe}}}<!-- -->}}|}}
 
<!-- featured in -->{{row/kv| Featured In | ''{{{books}}}''<!-- -->}}
 
}}<includeonly><!--
 
# Categories
-->[[category: lifeforms]]<!--
-->[[Category: Lifeforms]]<!--
 
-->{{#if:{{{world-ref|}}}|[[category: infobox world-ref]]}}<!--
-->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!-- -->{{{universe|}}}<!--
-->||{{infobox/no-world}}<!--
-->}}<!--
 
-->{{#if: {{{world|}}} | [[Category: {{demonym|{{{world}}}|}} lifeforms]] |}}<!--
 
--></includeonly><noinclude>
 
ThisThe {{t|lifeform}} infobox template is toa very versatile template that can be used on articlesto discussingdescribe any distinct group of beings; includingthat plantscan be considered alive. This includes obvious examples, such as plants and animals, magicalbut creaturesalso more nebulous ones, such as magical creations,creatures and etcconstructs.
 
__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}}
 
<!-- ---------- -->
<!-- ROW: image -->
<!-- ---------- -->
{{docs/image
|eg=
<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. Apply a category if possible.<br>
<small>'''Note''': See [[#Types]] for more details.</small>
|eg=
<code><nowiki>|type={{cat tag|Cognitive Shadows}}</nowiki></code><br>
<code><nowiki>|type=Hemalurgic Creations</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 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}}
 
|}
== Parameters ==
* The <code>books</code> parameter is required and should provide links to the books or series which the subject is '''Featured In'''
 
=== Types ===
; 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.
While the ''type'' parameter allows for any number of types to be specified, there are several that are strongly encouraged:
* 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.
* Animal (<small><code><nowiki>{{cat tag|Animals|Animal}}</nowiki></code></small>)
* 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)]]).
* Plant (<small><code><nowiki>{{cat tag|Plants|Plant}}</nowiki></code></small>)
* If neither <code>world</code> or <code>earth</code> are sufficient, then a <code>universe</code> can be provided.
* Cognitive Shadow (<small><code><nowiki>{{cat tag|Cognitive Shadows|Cognitive Shadow}}</nowiki></code></small>)
* To indicate the specific area or region a lifeform is from, provide the <code>native</code> parameter to produce a '''Native To''' row
* Sapient Splinter (<small><code><nowiki>{{cat tag|Splinters|Sapient Splinters}}</nowiki></code></small>)
* Construct (<small><code><nowiki>{{cat tag|Constructs|Construct}}</nowiki></code></small>)
* Hemalurgic creation (<small><code><nowiki>{{cat tag|Hemalurgic creations|Hemalurgic creation}}</nowiki></code></small>)
* Magic user (<small><code><nowiki>{{cat tag|Magic users|Magic user}}</nowiki></code></small>)
 
; 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]]