Difference between revisions of "Template:Infobox"
Jump to navigation
Jump to search
m (no cap) |
m (Reverted edits by Vidyut Arvind (talk) to last revision by Kevin Wang) Tag: Rollback |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 7: | Line 7: | ||
{{!-}} | {{!-}} | ||
{{!}} style="border-top-width:0" align=center colspan=2 style="border-top-width:0" {{!}} [[Image:{{{Image}}}|200px]]<!-- | {{!}} style="border-top-width:0" align=center colspan=2 style="border-top-width:0" {{!}} [[Image:{{{Image}}}|200px]]<!-- | ||
− | -->{{#if:{{{Caption|}}}|<br>{{{Caption}}}|}} | + | -->{{#if:{{{Caption|}}}|<br>{{{Caption}}}|}}{{c|Infoboxes using images}} |
{{!-}} | {{!-}} | ||
}} | }} | ||
|- | |- | ||
− | {{if|test={{{Subjects|}}}|then= | + | {{if|test={{{Subjects|}}}{{{subjects|}}}|then= |
{{!-}} | {{!-}} | ||
− | {{!}} width="96" {{!}} '''Noted subjects'''{{!!}} {{{Subjects}}} | + | {{!}} width="96" {{!}} '''Noted subjects'''{{!!}} {{{Subjects|}}}{{{subjects|}}} |
{{!-}} | {{!-}} | ||
}} | }} | ||
Line 48: | Line 48: | ||
|- | |- | ||
{{#if:{{{forums|}}}| | {{#if:{{{forums|}}}| | ||
− | {{!}}'''[[HSQB]] profile{{!!}}{{{forums}}} | + | {{!}}'''[[HSQB]] profile'''{{!!}}{{{forums}}} |
+ | }} | ||
+ | |- | ||
+ | {{#if:{{{pronouns|}}}| | ||
+ | {{!}}'''Pronouns'''{{!!}}{{{pronouns}}} | ||
}} | }} | ||
|- | |- | ||
Line 87: | Line 91: | ||
}} | }} | ||
|- | |- | ||
− | |} | + | |}<!-- |
− | [[Category:People]]</includeonly> | + | -->[[Category:People]]</includeonly><!-- |
− | <noinclude> | + | --><noinclude> |
{{Infobox | {{Infobox | ||
|Name = Full Name | |Name = Full Name | ||
Line 103: | Line 107: | ||
|lastname = Name | |lastname = Name | ||
|naqtstats = naqtstats (optional) | |naqtstats = naqtstats (optional) | ||
+ | |pronouns = they/them | ||
}} | }} | ||
Usage:<pre>{{Infobox | Usage:<pre>{{Infobox | ||
Line 114: | Line 119: | ||
|elementaryschool = elementaryschool (optional) | |elementaryschool = elementaryschool (optional) | ||
|forums = forums (optional) | |forums = forums (optional) | ||
+ | |pronouns = pronouns (optional) | ||
|firstname = Full (optional) | |firstname = Full (optional) | ||
|lastname = Name (optional) | |lastname = Name (optional) | ||
|naqtstats = naqtstats (optional) | |naqtstats = naqtstats (optional) | ||
|nostats = optional | |nostats = optional | ||
+ | |pronouns = they/them | ||
}}</pre> | }}</pre> | ||
Line 126: | Line 133: | ||
''nostats'' removes the entire stats section of the infobox. Using ''nostats'' requires setting it to any non-whitespace value (e.g. not " " or ""). | ''nostats'' removes the entire stats section of the infobox. Using ''nostats'' requires setting it to any non-whitespace value (e.g. not " " or ""). | ||
+ | {| class="wikitable" | ||
+ | ! Input | ||
+ | ! Output | ||
+ | |- | ||
+ | |Minimal box | ||
+ | <pre>{{Infobox | ||
+ | |Name = Full Name | ||
+ | }}</pre> | ||
+ | | | ||
{{Infobox | {{Infobox | ||
|Name = Full Name | |Name = Full Name | ||
}} | }} | ||
− | + | |- | |
+ | |Box with firstname/lastname but no naqtstats: | ||
<pre>{{Infobox | <pre>{{Infobox | ||
|Name = Full Name | |Name = Full Name | ||
+ | |firstname = Full | ||
+ | |lastname = Name | ||
}}</pre> | }}</pre> | ||
− | + | |{{Infobox | |
− | {{Infobox | ||
|Name = Full Name | |Name = Full Name | ||
|firstname = Full | |firstname = Full | ||
|lastname = Name | |lastname = Name | ||
}} | }} | ||
− | Box with firstname/lastname | + | |- |
+ | |Box with naqtstats but no firstname/lastname: | ||
<pre>{{Infobox | <pre>{{Infobox | ||
|Name = Full Name | |Name = Full Name | ||
− | | | + | |naqtstats = naqtstats |
− | |||
}}</pre> | }}</pre> | ||
− | + | |{{Infobox | |
− | {{Infobox | ||
|Name = Full Name | |Name = Full Name | ||
|naqtstats = naqtstats | |naqtstats = naqtstats | ||
}} | }} | ||
− | Box with | + | |- |
+ | |Box with full name passed in anonymous parameters. | ||
<pre>{{Infobox | <pre>{{Infobox | ||
− | | | + | |Full|Name |
− | |||
}}</pre> | }}</pre> | ||
− | + | |{{Infobox | |
− | {{Infobox | ||
|Full|Name | |Full|Name | ||
}} | }} | ||
− | Box with full name passed in anonymous parameters. | + | |- |
+ | |Box with full name + middle name passed in anonymous parameters. | ||
<pre>{{Infobox | <pre>{{Infobox | ||
− | |Full|Name | + | |Full|Middle Initials|Name |
}}</pre> | }}</pre> | ||
− | + | |{{Infobox | |
− | {{Infobox | ||
|Full|Middle Initials|Name | |Full|Middle Initials|Name | ||
}} | }} | ||
− | Box with full | + | |- |
+ | |Box with full name passed in anonymous parameters and also manually specified. | ||
<pre>{{Infobox | <pre>{{Infobox | ||
− | |Full | + | |Name=Explicitly specified full name |
+ | |Full|Name | ||
}}</pre> | }}</pre> | ||
− | + | |{{Infobox | |
− | {{Infobox | ||
|Name=Explicitly specified full name | |Name=Explicitly specified full name | ||
|Full|Name | |Full|Name | ||
}} | }} | ||
− | Box with full name passed in anonymous parameters and | + | |- |
+ | |Box with full name passed in anonymous parameters and naqtstats. | ||
<pre>{{Infobox | <pre>{{Infobox | ||
− | |||
|Full|Name | |Full|Name | ||
+ | |naqtstats = naqtstats | ||
}}</pre> | }}</pre> | ||
− | + | |{{Infobox | |
− | {{Infobox | ||
|Full|Name | |Full|Name | ||
|naqtstats = naqtstats | |naqtstats = naqtstats | ||
}} | }} | ||
− | Box with full name passed in anonymous parameters and | + | |- |
+ | |Box with full name passed in anonymous parameters and stats. | ||
<pre>{{Infobox | <pre>{{Infobox | ||
|Full|Name | |Full|Name | ||
− | | | + | |stats = stats |
}}</pre> | }}</pre> | ||
− | + | |{{Infobox | |
− | {{Infobox | ||
|Full|Name | |Full|Name | ||
|stats = stats | |stats = stats | ||
}} | }} | ||
− | + | |} | |
− | + | ||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 15:37, 11 August 2023
Full Name | |
200px | |
Noted subjects | Subjects (optional) |
Current college | schoolcur (optional) |
Past colleges | schoolpast (optional) |
High school | highschool (optional) |
Middle school | middleschool (optional) |
Elem. school | elementaryschool (optional) |
HSQB profile | forums (optional) |
Pronouns | they/them |
Stats | HDWhite • naqtstats (optional) |
Usage:
{{Infobox |Name = Full Name |Image = Image (optional) |Subjects = Subjects (optional) |schoolcur = schoolcur (optional) |schoolpast = schoolpast (optional) |highschool = highschool (optional) |middleschool = middleschool (optional) |elementaryschool = elementaryschool (optional) |forums = forums (optional) |pronouns = pronouns (optional) |firstname = Full (optional) |lastname = Name (optional) |naqtstats = naqtstats (optional) |nostats = optional |pronouns = they/them }}
firstname and lastname should be their first and last name as it appears in stats and is used to look up the name on HDWhite. If an explicit link to naqt stats is not provided via naqtstats, it will use the firstname and lastname to search them up on NAQT's player search.
An alternative to firstname/lastname is {{{1}}}/{{{2}}}, the first two anonymous parameters. All named parameters will take precedence over these anonymous parameters, though.
nostats removes the entire stats section of the infobox. Using nostats requires setting it to any non-whitespace value (e.g. not " " or "").
Input | Output | ||||
---|---|---|---|---|---|
Minimal box
{{Infobox |Name = Full Name }} |
| ||||
Box with firstname/lastname but no naqtstats:
{{Infobox |Name = Full Name |firstname = Full |lastname = Name }} |
| ||||
Box with naqtstats but no firstname/lastname:
{{Infobox |Name = Full Name |naqtstats = naqtstats }} |
| ||||
Box with full name passed in anonymous parameters.
{{Infobox |Full|Name }} |
| ||||
Box with full name + middle name passed in anonymous parameters.
{{Infobox |Full|Middle Initials|Name }} |
| ||||
Box with full name passed in anonymous parameters and also manually specified.
{{Infobox |Name=Explicitly specified full name |Full|Name }} |
| ||||
Box with full name passed in anonymous parameters and naqtstats.
{{Infobox |Full|Name |naqtstats = naqtstats }} |
| ||||
Box with full name passed in anonymous parameters and stats.
{{Infobox |Full|Name |stats = stats }} |
|