Difference between revisions of "User:Argent/templates/Template:Lifeform"
(Created page with "{{infobox |title={{{name|{{PAGENAME}}}}}|id=Lifeform| {{#if:{{{image|}}} |{{row/image+artist | {{{image}}}<!-- -->}}|}} <!-- about --> {{#if:{{{type|}...") |
m |
||
Line 12: | Line 12: | ||
<!-- location --> |
<!-- location --> |
||
{{#if:{{{native|}}} |{{row/kv| Native to | {{{native}}}<!-- -->}}|}} |
{{#if:{{{native|}}} |{{row/kv| Native to | {{{native}}}<!-- -->}}|}} |
||
− | {{#if:{{{earth|}}} |{{row/kv| World | |
+ | {{#if:{{{earth|}}} |{{row/kv| World |[[Earth ({{{earth}}})]]<!-- -->}}|}} |
− | {{#if:{{{world|}}} |{{row/kv| World | |
+ | {{#if:{{{world|}}} |{{row/kv| World |[[{{{world}}}]]<!-- -->}}|}} |
− | {{#if:{{{ |
+ | {{#if:{{{'world|}}} |{{row/kv| World |{{{'world}}} {{raw/world}}<!-- -->}}|}} |
+ | {{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}}<!-- -->}}|}} |
||
− | <!-- featured in -->{{row/kv| Featured In | |
+ | <!-- featured in -->{{row/kv| Featured In |''{{{books}}}''<!-- -->}} |
}}<includeonly><!-- |
}}<includeonly><!-- |
||
+ | # Categories |
||
-->[[category: lifeforms]]<!-- |
-->[[category: lifeforms]]<!-- |
||
− | -->{{#if:{{{world |
+ | -->{{#if: {{{world|}}} | [[Category: {{demonym|{{{world}}}|}} lifeforms]] | }}<!-- |
--></includeonly><noinclude> |
--></includeonly><noinclude> |
||
Line 28: | Line 30: | ||
This template is to be used on articles discussing any distinct group of beings; including plants, animals, magical creatures, magical creations, etc. |
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> |
<pre class=mw-code> |
||
− | {{lifeform |
+ | {{lifeform |
|image= |
|image= |
||
|type= |
|type= |
||
Line 38: | Line 41: | ||
|sapient= |
|sapient= |
||
|native= |
|native= |
||
− | |earth= |
+ | |earth= / world= |
− | |world= |
||
|universe= |
|universe= |
||
|books= |
|books= |
||
Line 45: | Line 47: | ||
</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}} |
− | * 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 |
||
− | [ [ |
+ | [ [Category: Infoboxes]] |
Revision as of 01:28, 12 December 2019
Argent/templates/Template:Lifeform | |
---|---|
Featured In | {{{books}}} |
This template is to be used on articles discussing any distinct group of beings; including plants, animals, magical creatures, magical creations, etc.
Template
{{lifeform |image= |type= |abilities= |use= |sapient= |native= |earth= / world= |universe= |books= }}
Parameters
Highlighted lines indicate mandatory parameters.
On lines with multiple parameters (e.g. |world= / earth=
) pick only the one most appropriate.
Parameter | Description | Examples |
---|---|---|
image
|
Use this to display a relevant image hosted on the Coppermind.
See Help:Infoboxes for further details. |
|
type
|
Use this to specify the type of lifeform being described. |
|
abilities
|
Use this to specify any unusual abilities the lifeform might have. |
|
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. |
|
sapient
|
Use this to specify whether the lifeform is sapient. Note: Only include this parameter if the lifeform is sapient. |
|
native
|
Use this to specify the location this lifeform is originates from or is native to. |
|
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 |
|
universe
|
Use this to indicate the (connected) universe where the argent/templates/template:lifeform can be found.
See Help: Infoboxes for further details. |
|
Categories & Tags
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]]