Template:Condition: Difference between revisions

From WikiMSK

(Created page with "{{infobox|title={{{title|{{PAGENAME}}|}}}|id=item| {{#if:{{{image|}}} |{{row/image+artist | {{{image}}} }} }} <!-- prope...")
 
No edit summary
 
(68 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{infobox|title={{{title|{{PAGENAME}}|}}}|id=item|
<noinclude>{{#template_params:name (label=Name;property=Has condition name)
 
|quality(label=quality)
{{#if:{{{image|}}}    |{{row/image+artist    | {{{image}}}              }}                                  }}
|notice(label=notice)
 
|image(label=image;property=Has condition image)
<!-- properties -->
|caption(label=caption;property=Has condition caption)
{{#if:{{{type|}}}      |{{row/kv| Type        | {{{type}}}              }} {{info/type}}                    }}
|synonym(label=synonym;property=Has condition synonym)
{{#if:{{{function|}}}  |{{row/kv| Function    | {{{function}}}          }} {{info/function}}                }}
|definition(label=definition;property=Has condition definition)
 
|epidemiology(label=epidemiology;property=Has condition epidemiology)
<!-- owner/creator/etc. -->
|causes(label=causes;property=Has condition causes)
{{#if:{{{creators|}}}  |{{row/kv| Creators    | {{{creators}}}          }} {{info/creators}}                }}
|inheritance(label=inheritance;property=Has condition inheritance)
{{#if:{{{creator|}}}  |{{row/kv| Creator    | [[{{{creator}}}]]        }} {{info/creator}}                }}
|genetics(label=genetics;property=Has condition genetics)
{{#if:{{{owners|}}}    |{{row/kv| Owners      | {{{owners}}}            }} {{info/owners}}                  }}
|pathophysiology(label=pathophysiology;property=Has condition pathophysiology)
{{#if:{{{owner|}}}    |{{row/kv| Owner      | [[{{{owner}}}]]          }} {{info/owner}}                  }}
|classification(label=classification;property=Has condition classification)
 
|primaryprevention(label=primaryprevention;property=Has condition primary prevention)
<!-- world & universe -->
|secondaryprevention(label=secondaryprevention;property=Has condition secondary prevention)
{{#if:{{{earth|}}}    |{{row/kv| World      | [[Earth ({{{earth}}})]]  }} {{info/earth}}                  }}
|riskfactors(label=riskfactors;property=Has condition risk factors)
{{#if:{{{world|}}}    |{{row/kv| World      | [[{{{world}}}]]          }} {{info/world}}                  }}
|clinicalfeatures(label=clinicalfeatures;property=Has condition clinical features)
{{#if:{{{'world|}}}    |{{row/kv| World      | {{{'world}}}            }} {{raw/world}}                    }}
|history(label=history;property=Has condition history)
{{#if:{{{universe|}}}  |{{row/kv| Universe    | {{{universe}}}          }} {{info/universe}}                }}
|examination(label=examination;property=Has condition examination)
 
|diagnosis(label=diagnosis;property=Has condition diagnosis)
{{#if:<!-- -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{universe|}}}<!--
|tests(label=tests;property=Has condition tests)
---->|<!-- there is a location row present
|ddx(label=ddx;property=Has condition ddx)
---->|{{infobox/no-world}}<!-- tag with missing world-location
|taxonomy(label=taxonomy;property=Has condition taxonomy)
-->}}
|validity(label=validity;property=Has condition validity)
 
|treatment(label=treatment;property=Has condition treatment)
<!-- featured in    -->{{row/kv| Featured In | ''{{{books}}}''          }}<!--                            -->
|prognosis(label=prognosis;property=Has condition prognosis)
 
<!--
 
CATS:
-->|default-cats=[[category: Objects and Materials]]<!--
-->|{{#if:{{{cats|}}}|<!-- -->|-}}replacement-cats={{{cats}}}<!--
 
END:
-->}}<noinclude>
 
The ''{{t|item}}'' infobox template allows you to describe specific objects, as well as physical materials more generally.
 
__TOC__
 
=== Template ===
<pre class=mw-code>
{{item
|image=
|type=
|function=
|creator= / creators=
|owner= / owners=
|world=
|universe=
|books=
}}
}}
</pre>
</noinclude><includeonly>{{#if:{{{quality|}}}|{{{{{quality}}}}}}}{{#if:{{{notice|}}}|{{{{{notice}}}}}}}
 
{| id="condition" class="infobox side noexcerpt"
=== Parameters ===
{{#if: {{{image|}}} | {{!-}}
Highlighted lines indicate '''mandatory''' parameters.
{{!}} {{#if: {{{image|}}}| colspan="2" class="infobox-image"{{!}}[[File:{{{image|}}}]]  }}
On lines with multiple parameters (e.g. <code>|world= / earth=</code>) pick only the one most appropriate.
 
{{docs|title={{t|Item}} Parameters}}
 
<!-- ---------- -->
<!-- ROW: image -->
<!-- ---------- -->
{{docs/image
|eg=
<code><nowiki>|image=Elhokar sunraiser.jpg</nowiki></code>
}}
}}
 
{{#if: {{{caption|}}} | {{!-}}
<!-- --------- -->
{{!}} {{#if: {{{caption|}}}| colspan="2" class="infobox-image"{{!}}<em><center>{{{caption|}}}</center></em>   }}
<!-- ROW: type -->
<!-- --------- -->
{{docs/row/optional
|param=type
|desc=Use this to specify the type of item being described. Apply a category (ideally with {{t|tag+}}) if possible.
|eg=
<code><nowiki>|type={{tag+|Shardblade}}</nowiki></code><br>
<code><nowiki>|type={{cat tag|Currencies|Currency}}</nowiki></code><br>
<code><nowiki>|type=Dye</nowiki></code>
}}
}}
 
|-
<!-- ------------- -->
! colspan="2" class="title"|{{PAGENAME}}
<!-- ROW: function -->
|-
<!-- ------------- -->
{{#if: {{{synonym|}}} | {{!-}}
{{docs/row/optional
! Synonym
|param= function
{{!}} {{#if: {{{synonym|}}}|[[Has condition synonym::{{{synonym}}}]]}}
|desc= Use this to briefly describe the items function if the '''type''' parameter wasn't clear enough.
|eg=
<code><nowiki>|function=Indicates rank</nowiki></code>
}}
}}
 
|-
<!-- ----------------------- -->
{{#if: {{{definition|}}} | {{!-}}
<!-- ROW: creator / creators -->
! Definition
<!-- ----------------------- -->
{{!}} {{#if: {{{definition|}}}|[[Has condition definition::{{{definition}}}]]}}
{{docs/row/optional
|'param=<code>creator</code> <br><small>or</small><br> <code>creators</code>
|desc= Use this to specify the item's creator(s).<br>
<small>'''Note:''' <code>creator</code> automatically generates a link, but <code>creators</code> does not.</small>
|eg=
<code><nowiki>|creator=Ranette</nowiki></code><br>
<code><nowiki>|creators=[[Forger]]s</nowiki></code>
}}
}}
 
|-
<!-- ------------------- -->
{{#if: {{{epidemiology|}}} | {{!-}}
<!-- ROW: owner / owners -->
! Epidemiology
<!-- ------------------- -->
{{!}} {{#if: {{{epidemiology|}}}|[[Has condition epidemiology::{{{epidemiology}}}]]}}
{{docs/row/optional
|'param=<code>owner</code> <br><small>or</small><br> <code>owners</code>
|desc= Use this to specify the item's ''current'' (or last known) owner(s).<br>
<small>'''Note:''' <code>owner</code> automatically generates a link, but <code>owners</code> does not.</small>
|eg=
<code><nowiki>|owner=Wyrn</nowiki></code><br>
<code><nowiki>|owners=[[Sand master]]s</nowiki></code>
}}
}}
 
|-
<!-- ------------------ -->
{{#if: {{{causes|}}} | {{!-}}
<!-- ROW: world / earth -->
! Causes
<!-- ------------------ -->
{{!}} {{#if: {{{causes|}}}|[[Has condition causes::{{{causes}}}]]}}
{{docs/world}}
}}
 
|-
<!-- ------------- -->
{{#if: {{{inheritance|}}} | {{!-}}
<!-- ROW: universe -->
! Inheritance
<!-- ------------- -->
{{!}} {{#if: {{{inheritance|}}}|[[Has condition inheritance::{{{inheritance}}}]]}}
{{docs/universe}}
}}
 
|-
<!-- ---------- -->
{{#if: {{{genetics|}}} | {{!-}}
<!-- ROW: books -->
! Genetics
<!-- ---------- -->
{{!}} {{#if: {{{genetics|}}}|[[Has condition genetics::{{{genetics}}}]]}}
{{docs/books}}
}}
 
|-
{{#if: {{{pathophysiology|}}} | {{!-}}
! Pathophysiology
{{!}} {{#if: {{{pathophysiology|}}}|[[Has condition pathophysiology::{{{pathophysiology}}}]]}}
}}
|-
{{#if: {{{classification|}}} | {{!-}}
! Classification
{{!}} {{#if: {{{classification|}}}|[[Has condition classification::{{{classification}}}]]}}
}}
|-
{{#if: {{{primaryprevention|}}} | {{!-}}
! Primary Prevention
{{!}} {{#if: {{{primaryprevention|}}}|[[Has condition primary prevention::{{{primaryprevention}}}]]}}
}}
|-
{{#if: {{{secondaryprevention|}}} | {{!-}}
! Secondary Prevention
{{!}} {{#if: {{{secondaryprevention|}}}|[[Has condition secondary prevention::{{{secondaryprevention}}}]]}}
}}
|-
{{#if: {{{riskfactors|}}} | {{!-}}
! Risk Factors
{{!}} {{#if: {{{riskfactors|}}}|[[Has condition risk factors::{{{riskfactors}}}]]}}
}}
|-
{{#if: {{{clinicalfeatures|}}} | {{!-}}
! Clinical Features
{{!}} {{#if: {{{clinicalfeatures|}}}|[[Has condition clinical features::{{{clinicalfeatures}}}]]}}
}}
|-
{{#if: {{{history|}}} | {{!-}}
! History
{{!}} {{#if: {{{history|}}}|[[Has condition history::{{{history}}}]]}}
}}
|-
{{#if: {{{examination|}}} | {{!-}}
! Examination
{{!}} {{#if: {{{examination|}}}|[[Has condition examination::{{{examination}}}]]}}
}}
|-
{{#if: {{{diagnosis|}}} | {{!-}}
! Diagnosis
{{!}} {{#if: {{{diagnosis|}}}|[[Has condition diagnosis::{{{diagnosis}}}]]}}
}}
|-
{{#if: {{{tests|}}} | {{!-}}
! Tests
{{!}} {{#if: {{{tests|}}}|[[Has condition tests::{{{tests}}}]]}}
}}
|-
{{#if: {{{ddx|}}} | {{!-}}
! DDX
{{!}} {{#if: {{{ddx|}}}|[[Has condition ddx::{{{ddx}}}]]}}
}}
|-
{{#if: {{{taxonomy|}}} | {{!-}}
! Taxonomy
{{!}} {{#if: {{{taxonomy|}}}|[[Has condition taxonomy::{{{taxonomy}}}]]}}
}}
|-
{{#if: {{{validity|}}} | {{!-}}
! Validity
{{!}} {{#if: {{{validity|}}}|[[Has condition validity::{{{validity}}}]]}}
}}
|-
{{#if: {{{treatment|}}} | {{!-}}
! Treatment
{{!}} {{#if: {{{treatment|}}}|[[Has condition treatment::{{{treatment}}}]]}}
}}
|-
{{#if: {{{prognosis|}}} | {{!-}}
! Prognosis
{{!}} {{#if: {{{prognosis|}}}|[[Has condition prognosis::{{{prognosis}}}]]}}
}}
|-
|}
|}
 
</includeonly><includeonly>[[Category:Conditions]]</includeonly>
 
<noinclude>
=== Categories & Tags ===
Pages that make use of the ''{{t|item}}'' template will be added to [[:Category: Objects and Materials]].
 
[[Category: Infoboxes]]
 
== Articles using Template ==
== Articles using Template ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
[[Category:Infobox Templates]]
[[Category:Infoboxes]]
</noinclude>

Latest revision as of 19:22, 5 March 2023

This is the "Condition" template.

It should be called in the following format:

{{Condition
|name=
|quality=
|notice=
|image=
|caption=
|synonym=
|definition=
|epidemiology=
|causes=
|inheritance=
|genetics=
|pathophysiology=
|classification=
|primaryprevention=
|secondaryprevention=
|riskfactors=
|clinicalfeatures=
|history=
|examination=
|diagnosis=
|tests=
|ddx=
|taxonomy=
|validity=
|treatment=
|prognosis=
}}

Edit the page to see the template text.


Articles using Template