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

From The Coppermind
Jump to navigation Jump to search
(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)
Line 6: Line 6:
 
<!-- about -->
 
<!-- about -->
 
{{#if:{{{type|}}} |{{row/kv| Type | {{{type}}}<!-- -->}}|}}
 
{{#if:{{{type|}}} |{{row/kv| Type | {{{type}}}<!-- -->}}|}}
{{#if:{{{abilities|}}} |{{row/kv| Abilities | {{{abilities}}}<!-- -->}}|}}
+
{{#if:{{{abilities|}}} |{{row/kv| Abilities | [[Category: lifeforms-with-abilities]]<!-- -->}}|}}
{{#if:{{{use|}}} |{{row/kv| Used for | {{{use}}}<!-- -->}}|}}
+
{{#if:{{{use|}}} |{{row/kv| Used for | [[Category: lifeforms-with-used-for]] <!-- -->}}|}}
 
{{#if:{{{sapient|}}} |{{row/kv| Sapient | Yes [[category: sapient beings]] }}|}}
 
{{#if:{{{sapient|}}} |{{row/kv| Sapient | Yes [[category: sapient beings]] }}|}}
   
<!-- location -->
+
<!-- world & universe -->
{{#if:{{{native|}}} |{{row/kv| Native to | {{{native}}}<!-- -->}}|}}
+
{{#if:{{{earth|}}} |{{row/kv| World |[[Earth ({{{earth}}})]]<!-- -->}}|}}
{{#if:{{{earth|}}} |{{row/kv| World | [[Earth ({{{earth}}})]] }}|}}
+
{{#if:{{{world|}}} |{{row/kv| World |[[{{{world}}}]]<!-- -->}}|}}
{{#if:{{{world|}}} |{{row/kv| World | [[{{{world}}}]][[Category:{{demonym|{{{world}}}|}} lifeforms]] }}|}}
+
{{#if:{{{'world|}}} |{{row/kv| World |{{{'world}}} {{raw/world}}<!-- -->}}|}}
{{#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><!--
   
  +
# Categories
-->[[category: lifeforms]]<!--
 
  +
-->[[Category: Lifeforms]]<!--
   
-->{{#if:{{{world-ref|}}}|[[category: infobox world-ref]]}}<!--
+
-->{{#if:<!--
  +
-->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!-- -->{{{universe|}}}<!--
  +
-->||{{infobox/no-world}}<!--
  +
-->}}<!--
  +
  +
-->{{#if: {{{world|}}} | [[Category: {{demonym|{{{world}}}|}} lifeforms]] |}}<!--
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
   
This template is to be used on articles discussing any distinct group of beings; including plants, animals, magical creatures, magical creations, etc.
+
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.
   
  +
__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>
 
<pre class=mw-code>
{{lifeform|title=
+
{{lifeform
 
|image=
 
|image=
 
|type=
 
|type=
Line 38: Line 45:
 
|sapient=
 
|sapient=
 
|native=
 
|native=
|earth=
+
|earth= / world=
|world=
 
 
|universe=
 
|universe=
 
|books=
 
|books=
Line 45: Line 51:
 
</pre>
 
</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
 
   
[ [category: infoboxes]]
+
[ [Category: Infoboxes]]

Latest revision as of 00:58, 5 March 2020

Argent/templates/Template:Lifeform
Featured In {{{books}}}

The {{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.

Template[edit]

{{lifeform
|image=
|type= 
|abilities= 
|use=
|sapient=
|native=
|earth= / world=
|universe=
|books=
}}

Parameters[edit]

Highlighted lines indicate mandatory parameters. On lines with multiple parameters (e.g. |world= / earth=) pick only the one most appropriate.

Template:Docs/books
{{lifeform}} Parameters
Parameter Description Examples
image Use this to display a relevant image hosted on the Coppermind.

See Help:Infoboxes for further details.

|image=Axehound by Shallan.jpg

type Use this to specify the type of lifeform being described. Apply a category if possible.

Note: See #Types for more details.

|type={{cat tag|Cognitive Shadows}}
|type=Hemalurgic Creations

abilities Use this to specify any unusual abilities the lifeform might have.

|abilities=[[Cytonics]]

use 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.

|use=Poison

sapient Use this to specify whether the lifeform is sapient.

Note: Only include this parameter if the lifeform is sapient.

|sapient=y

native Use this to specify the location this lifeform originates from or is native to.

|native=[[Roshar]]

world
or
earth
Use this to specify the planet where the argent/templates/template:lifeform can be found.

Note: Automatically generates a link. To bypass this, use 'world.
See Help:Infoboxes for further details.

|world=Roshar
|earth=Reckoners
|'world=Mars

universe Use this to indicate the (connected) universe where the argent/templates/template:lifeform can be found.

See Help: Infoboxes for further details.

|universe=[[Cosmere]]
|universe=[[Cytoverse]]
|universe=[[Wode]] [[State]]s
|universe=''Standalone''

Types[edit]

While the type parameter allows for any number of types to be specified, there are several that are strongly encouraged:

  • Animal ({{cat tag|Animals|Animal}})
  • Plant ({{cat tag|Plants|Plant}})
  • Cognitive Shadow ({{cat tag|Cognitive Shadows|Cognitive Shadow}})
  • Sapient Splinter ({{cat tag|Splinters|Sapient Splinters}})
  • Construct ({{cat tag|Constructs|Construct}})
  • Hemalurgic creation ({{cat tag|Hemalurgic creations|Hemalurgic creation}})
  • Magic user ({{cat tag|Magic users|Magic user}})


Categories & Tags[edit]

Pages that make use of the {{lifeform}} template will be added to Category: Lifeforms. In addition, providing |sapient=y will add the page to Category: Sapient beings, while providing |world or |earth will add the page to a lifeforms category corresponding to that world/earth (e.g. |world=Roshar will add the page to Category: Rosharan lifeforms).


[ [Category: Infoboxes]]