Jump to content

Template:Cladist: Difference between revisions

m
Missing row break
m (Add documentation.)
m (Missing row break)
 
(10 intermediate revisions by 2 users not shown)
Line 6: Line 6:
{{#if: {{{image|}}} | {{pipe escape |
{{#if: {{{image|}}} | {{pipe escape |
! colspan{{=}}"2" | [[File:{{{image}}}|frameless]]
! colspan{{=}}"2" | [[File:{{{image}}}|frameless]]
|-
}}}}
{{#if: {{{source|}}} | {{pipe escape |
! colspan{{=}}"2" style{{=}}"font-weight: normal; font-size: 95%;" | Source: {{{source}}}
|-
|-
}}}}
}}}}
Line 37: Line 41:
{{#if: {{{downtree|}}} | {{pipe escape |
{{#if: {{{downtree|}}} | {{pipe escape |
! Down-Tree
! Down-Tree
| {{{downtree}}}
| [[{{{downtree}}}]]
|-
|-
}}}}
}}}}
{{#if: {{{downtree|}}} | {{pipe escape |
{{#if: {{{uptrees|}}} | {{pipe escape |
! Up-Trees
! Up-Trees
|
|
{{{uptrees}}}
{{{uptrees}}}
|-
}}}}
{{#if: {{{works|}}} | {{pipe escape |
! Notable works
|
{{{works}}}
}}}}
}}}}
|}</onlyinclude></includeonly>
|}
[[Category:Cladists]]</onlyinclude></includeonly>


== Usage ==
= Usage =
Displays a table of basic information about a cladist to the right of the page. Only <code>name</code> and <code>pronouns</code> are required.
Displays a table of basic information about a cladist to the right of the page. Only <code>name</code> and <code>pronouns</code> are required.
<pre><nowiki>
<pre><nowiki>
{{Cladist
{{Cladist
| name = <name>
| name     = <name>
| pronouns = <pronouns>
| pronouns = <pronouns>
| image = <image>
| image   = <image>
| clade = <clade>
| source  = <source>
| forked = <forked>
| clade   = <clade>
| forked   = <forked>
| uploaded = <uploaded>
| uploaded = <uploaded>
| quit = <quit>
| quit     = <quit>
| crashed = <crashed>
| crashed = <crashed>
| downtree = <downtree>
| downtree = <downtree>
| uptrees = <uptrees>
| uptrees =
* <first uptree>
* <first uptree>
* <second uptree>
* <second uptree>
* <...>
| works =
* <notable work>
* <notable work>
* <...>
* <...>
}}
}}
Line 68: Line 84:
<code>image</code> must be the filename and its extension, not a <code><nowiki>[[File:filename.ext|options]]</nowiki></code> substitution.
<code>image</code> must be the filename and its extension, not a <code><nowiki>[[File:filename.ext|options]]</nowiki></code> substitution.


== Example ==
= Example =
{{Cladist
{{Cladist
| name    = Dear
| name    = Dear
| pronouns = it/its
| pronouns = it/its
| image    = Dear forking.png
| image    = Dear forking.png
| source  = [[Iris Jay]]
| clade    = [[The Ode clade]]
| clade    = [[The Ode clade]]
| forked  = {{Systime|2173|2|14}}
| forked  = {{Systime|2173|2|14}}
Line 80: Line 97:
* [[Dear Castor|Dear#Castor]]
* [[Dear Castor|Dear#Castor]]
* [[Warmth In Fire]]
* [[Warmth In Fire]]
| works =
* Simien Fang capstone exhibition
}}
}}


Line 86: Line 105:
| pronouns = it/its
| pronouns = it/its
| image    = Dear forking.png
| image    = Dear forking.png
| source  = [[Iris Jay]]
| clade    = [[The Ode clade]]
| clade    = [[The Ode clade]]
| forked  = {{Systime|2173|2|14}}
| forked  = {{Systime|2173|2|14}}
Line 93: Line 113:
* [[Dear Castor|Dear#Castor]]
* [[Dear Castor|Dear#Castor]]
* [[Warmth In Fire]]
* [[Warmth In Fire]]
| works =
* Simien Fang capstone exhibition
}}</nowiki></pre>
}}</nowiki></pre>
= Parameters =
<templatedata>
{
"description": "Displays a table of basic information about a cladist to the right of the page.",
"params": {
"name": {"label": "Name", "required": true, "example": "True Name", "type": "line", "description": "The short, common name of the cladist."},
"pronouns": {"label": "Pronouns", "required": true, "example": "Ey/Em, They/Them, She/Her, It/Its", "type": "line", "description": "The cladist's preferred pronouns."},
"image": {"label": "Image", "example": "Dear_forking.png", "type": "wiki-file-name", "description": "An image depicting the cladist."},
"source": {"label": "Image Source", "example": "[https://irisjay.net/ Iris Jay]", "type": "line", "description": "The source of the image, ideally a direct link to the artist's gallery displaying the original image."},
"clade": {"label": "Clade", "example": "[[The Ode clade]]", "type": "line", "description": "The cladist's clade identifier."},
"forked": {"label": "Forked Timestamp", "example": "{{Systime|2173|2|14}}", "type": "line", "description": "The time at which the cladist forked."},
"uploaded": {"label": "Uploaded Timestamp", "example": "{{Systime|2173|2|14}}", "type": "line", "description": "The time at which the cladist uploaded."},
"quit": {"label": "Quit Timestamp", "example": "{{Systime|2173|2|14}}", "type": "line", "description": "The time at which the cladist quit."},
"crashed": {"label": "Crash Timestamp", "example": "{{Systime|2173|2|14}}", "type": "line", "description": "The time at which the cladist crashed."},
"downtree": {"label": "Direct Down-tree", "suggested": true, "example": "Rye", "type": "wiki-page-name", "description": "The cladist's direct down-tree."},
"uptrees": {"label": "Up-trees", "example": "* [[Codrin Bălan]]\n* [[Aurel Bălan]]", "type": "content", "description": "A list of the cladist's up-trees."},
"works": {"label": "Notable works", "example": "* [[On the Perils of Memory]]\n* [[An Expanded History of Our World]]\n* [[Individuation & Reconciliation]]", "type": "content", "description": "A list of the cladist's notable in-universe works, if any."}
},
"sets": [
{"label": "Image", "params": ["image", "source"]}
]
}
</templatedata>