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
Line 3: Line 3:
{{#if:{{{image|}}}    |{{row/image+artist    | {{{image}}}              }}                                  }}
{{#if:{{{image|}}}    |{{row/image+artist    | {{{image}}}              }}                                  }}


<!-- properties -->
<!-- basics-->
{{#if:{{{type|}}}      |{{row/kv| Type        | {{{type}}}              }} {{info/type}}                    }}
{{#if:{{{name|}}}      |{{row/kv| Type        | {{{name}}}              }} {{info/name}}                    }}
{{#if:{{{function|}}}  |{{row/kv| Function    | {{{function}}}          }} {{info/function}}                }}
{{#if:{{{synonym|}}}  |{{row/kv| Synonym| {{{synonym}}}          }} {{info/synonym}}                }}
{{#if:{{{definition|}}}  |{{row/kv| Definition| {{{definition}}}          }} {{info/definition}}                }}
{{#if:{{{epidemiology|}}}  |{{row/kv| Epidemiology | {{{epidemiology}}}          }} {{info/epidemiology}}                }}


<!-- owner/creator/etc. -->
{{#if:{{{causes|}}}   |{{row/kv| Causes| [[{{{causes}}}]]        }} {{info/causes}}                 }}
{{#if:{{{creators|}}} |{{row/kv| Creators    | {{{creators}}}           }} {{info/creators}}               }}
{{#if:{{{pathophysiology|}}}  |{{row/kv| Pathophysiology| [[{{{pathophysiology}}}]]        }} {{info/pathophysiology}}                }}
{{#if:{{{creator|}}}  |{{row/kv| Creator    | [[{{{creator}}}]]        }} {{info/creator}}                }}
{{#if:{{{classification|}}}   |{{row/kv| Classification| [[{{{classification}}}]]       }} {{info/classification}}                 }}
{{#if:{{{owners|}}}   |{{row/kv| Owners      | {{{owners}}}            }} {{info/owners}}                  }}
{{#if:{{{owner|}}}    |{{row/kv| Owner      | [[{{{owner}}}]]         }} {{info/owner}}                   }}


<!-- world & universe -->
<!-- prevention-->
{{#if:{{{earth|}}}     |{{row/kv| World      | [[Earth ({{{earth}}})]] }} {{info/earth}}                   }}
{{#if:{{{primaryprevention|}}}   |{{row/kv| Primary Prevention| [[{{{primaryprevention}}}]]       }} {{info/primaryprevention}}                 }}
{{#if:{{{world|}}}     |{{row/kv| World      | [[{{{world}}}]]         }} {{info/world}}                   }}
{{#if:{{{secondaryprevention|}}}   |{{row/kv| Secondary Prevention| [[{{{secondaryprevention}}}]]       }} {{info/secondaryprevention}}                 }}
{{#if:{{{'world|}}}    |{{row/kv| World      | {{{'world}}}            }} {{raw/world}}                    }}
{{#if:{{{universe|}}}  |{{row/kv| Universe    | {{{universe}}}          }} {{info/universe}}                }}


{{#if:<!-- -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{universe|}}}<!--
<!-- diagnosis-->
---->|<!-- there is a location row present
{{#if:{{{riskfactors|}}}  |{{row/kv| Risk Factors| [[{{{riskfactors}}}]]        }} {{info/riskfactors}}                 }}
---->|{{infobox/no-world}}<!-- tag with missing world-location
{{#if:{{{history|}}}    |{{row/kv| History| [[{{{history}}}]]          }} {{info/history}}                   }}
-->}}
{{#if:{{{examination|}}}    |{{row/kv| Examination| [[{{{examination}}}]]          }} {{info/examination}}                   }}
{{#if:{{{tests|}}}    |{{row/kv| Tests| [[{{{tests}}}]]          }} {{info/tests}}                   }}
{{#if:{{{ddx|}}}    |{{row/kv| DDX| [[{{{ddx}}}]]          }} {{info/ddx}}                   }}


<!-- featured in    -->{{row/kv| Featured In | ''{{{books}}}''         }}<!--                            -->
<!-- treatment-->
{{#if:{{{treatment|}}}    |{{row/kv| Treatment| [[{{{treatment}}}]]         }} {{info/treatment}}                  }}


<!--
<!-- follow up-->
{{#if:{{{prognosis|}}}    |{{row/kv| Prognosis | {{{prognosis}}}            }} {{info/prognosis}}                  }}


CATS:
}}<noinclude>
-->|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.
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>
=== 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|Item}} Parameters}}
<!-- ---------- -->
<!-- ROW: image -->
<!-- ---------- -->
{{docs/image
|eg=
<code><nowiki>|image=Elhokar sunraiser.jpg</nowiki></code>
}}
<!-- --------- -->
<!-- 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>
}}
<!-- ------------- -->
<!-- ROW: function -->
<!-- ------------- -->
{{docs/row/optional
|param= function
|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>
}}
<!-- ----------------------- -->
<!-- ROW: creator / creators -->
<!-- ----------------------- -->
{{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>
}}
<!-- ------------------- -->
<!-- ROW: owner / owners -->
<!-- ------------------- -->
{{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>
}}
<!-- ------------------ -->
<!-- ROW: world / earth -->
<!-- ------------------ -->
{{docs/world}}
<!-- ------------- -->
<!-- ROW: universe -->
<!-- ------------- -->
{{docs/universe}}
<!-- ---------- -->
<!-- ROW: books -->
<!-- ---------- -->
{{docs/books}}
|}
=== Categories & Tags ===
Pages that make use of the ''{{t|item}}'' template will be added to [[:Category: Objects and Materials]].
[[Category: Infoboxes]]
== Articles using Template ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Revision as of 14:32, 27 June 2020

Condition

The {{item}} infobox template allows you to describe specific objects, as well as physical materials more generally.