Editing User:Argent/templates/Template:Lifeform

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 6: Line 6:
 
<!-- about -->
 
<!-- about -->
 
{{#if:{{{type|}}} |{{row/kv| Type | {{{type}}}<!-- -->}}|}}
 
{{#if:{{{type|}}} |{{row/kv| Type | {{{type}}}<!-- -->}}|}}
{{#if:{{{abilities|}}} |{{row/kv| Abilities | [[Category: lifeforms-with-abilities]]<!-- -->}}|}}
+
{{#if:{{{abilities|}}} |{{row/kv| Abilities | {{{abilities}}}<!-- -->}}|}}
{{#if:{{{use|}}} |{{row/kv| Used for | [[Category: lifeforms-with-used-for]] <!-- -->}}|}}
+
{{#if:{{{use|}}} |{{row/kv| Used for | {{{use}}}<!-- -->}}|}}
 
{{#if:{{{sapient|}}} |{{row/kv| Sapient | Yes [[category: sapient beings]] }}|}}
 
{{#if:{{{sapient|}}} |{{row/kv| Sapient | Yes [[category: sapient beings]] }}|}}
   
<!-- world & universe -->
+
<!-- location -->
{{#if:{{{earth|}}} |{{row/kv| World |[[Earth ({{{earth}}})]]<!-- -->}}|}}
+
{{#if:{{{native|}}} |{{row/kv| Native to | {{{native}}}<!-- -->}}|}}
{{#if:{{{world|}}} |{{row/kv| World |[[{{{world}}}]]<!-- -->}}|}}
+
{{#if:{{{earth|}}} |{{row/kv| World | [[Earth ({{{earth}}})]] }}|}}
{{#if:{{{'world|}}} |{{row/kv| World |{{{'world}}} {{raw/world}}<!-- -->}}|}}
+
{{#if:{{{world|}}} |{{row/kv| World | [[{{{world}}}]][[Category:{{demonym|{{{world}}}|}} lifeforms]] }}|}}
{{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}}<!-- -->}}|}}
+
{{#if:{{{universe|}}} |{{row/kv| Universe | {{{universe}}}<!-- -->}}|}}
   
<!-- featured in -->{{row/kv| Featured In |''{{{books}}}''<!-- -->}}
+
<!-- featured in -->{{row/kv| Featured In | ''{{{books}}}''<!-- -->}}
   
 
}}<includeonly><!--
 
}}<includeonly><!--
   
  +
-->[[category: lifeforms]]<!--
# Categories
 
-->[[Category: Lifeforms]]<!--
 
   
-->{{#if:<!--
+
-->{{#if:{{{world-ref|}}}|[[category: infobox world-ref]]}}<!--
-->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!-- -->{{{universe|}}}<!--
 
-->||{{infobox/no-world}}<!--
 
-->}}<!--
 
 
-->{{#if: {{{world|}}} | [[Category: {{demonym|{{{world}}}|}} lifeforms]] |}}<!--
 
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
   
The {{t|lifeform}} infobox template is a very versatile template that can be used to describe any group of beings that can be considered alive. This includes obvious examples, such as plants and animals, but also more nebulous ones, such as magical creatures and constructs.
+
This template is to be used on articles discussing any distinct group of beings; including plants, animals, magical creatures, magical creations, etc.
   
  +
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.
__TOC__
 
   
=== Template ===
 
 
<pre class=mw-code>
 
<pre class=mw-code>
{{lifeform
+
{{lifeform|title=
 
|image=
 
|image=
 
|type=
 
|type=
Line 45: Line 38:
 
|sapient=
 
|sapient=
 
|native=
 
|native=
|earth= / world=
+
|earth=
  +
|world=
 
|universe=
 
|universe=
 
|books=
 
|books=
Line 51: Line 45:
 
</pre>
 
</pre>
   
  +
This infobox will add the article to [[:Category: Lifeforms]].
=== Parameters ===
 
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'''
   
  +
; 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.
=== Types ===
 
  +
* 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.
While the ''type'' parameter allows for any number of types to be specified, there are several that are strongly encouraged:
 
  +
* 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)]]).
* Animal (<small><code><nowiki>{{cat tag|Animals|Animal}}</nowiki></code></small>)
 
  +
* If neither <code>world</code> or <code>earth</code> are sufficient, then a <code>universe</code> can be provided.
* Plant (<small><code><nowiki>{{cat tag|Plants|Plant}}</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
* Cognitive Shadow (<small><code><nowiki>{{cat tag|Cognitive Shadows|Cognitive Shadow}}</nowiki></code></small>)
 
* 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.
   
  +
; Optional parameters:
=== Categories & Tags ===
 
  +
* To specify what type of lifeform the article describes, such as ???, use the <code>type</code> parameter
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 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
   
[ [Category: Infoboxes]]
+
[ [category: infoboxes]]

Please note that all contributions to The Coppermind are considered to be released under the CC4 by-nc-nd (see Coppermind:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)