(Create template) |
m (Use pronoun template in example) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><infobox> | <onlyinclude><includeonly><infobox> | ||
<title source="name"><default>{{PAGENAME}}</default></title> | <title source="name"><default>{{PAGENAME}}</default></title> | ||
<group> | |||
<header>{{#if:{{{subline|}}}|{{float right|{{{subline}}}}}<div style="clear: both;"></div>|}}</header> | |||
<data source="subline"><format> </format></data> <!-- dummy value to get the header to show --> | |||
</group> | |||
<image source="image" /> | <image source="image" /> | ||
<data source="real-name"><label>Real name</label></data> | <data source="real-name"><label>Real name</label></data> | ||
Line 7: | Line 11: | ||
<header>Profiles</header> | <header>Profiles</header> | ||
<group row-items="2"> | <group row-items="2"> | ||
<data source="tasvideos"><label>TASVideos</label><format> | <data source="tasvideos"><label>TASVideos</label><format>{{TASVideosU|{{{tasvideos}}}}}</format></data> | ||
<data source="tasbot-wiki"><label>This wiki</label><format>[[User:{{{tasbot-wiki}}}]]</format></data> | <data source="tasbot-wiki"><label>This wiki</label><format>[[User:{{{tasbot-wiki}}}]] ([[Special:Contributions/{{{tasbot-wiki}}}|contribs]])</format></data> | ||
</group> | </group> | ||
<group row-items="2"> | <group row-items="2"> | ||
Line 20: | Line 24: | ||
<data source="discord"><label>Discord</label></data> | <data source="discord"><label>Discord</label></data> | ||
<group row-items="2"> | <group row-items="2"> | ||
<data source="instagram"><label>Instagram</label><format>[https://instagram.com/{{{instagram}}} @{{{instagram}}}]</format></data> | |||
<data source="twitter"><label>Twitter</label><format>[https://twitter.com/{{{twitter}}} @{{{twitter}}}]</format></data> | <data source="twitter"><label>Twitter</label><format>[https://twitter.com/{{{twitter}}} @{{{twitter}}}]</format></data> | ||
<data source="website"><format>[{{{website}}} Personal site]</format></data> | <data source="website"><format>[{{{website}}} Personal site]</format></data> | ||
</group> | </group> | ||
</infobox></includeonly></onlyinclude> | </infobox></includeonly></onlyinclude> | ||
{{infobox individual | {{infobox individual | ||
|name= | |name=Cool_DooD | ||
|contribs=* Console verifier | |subline=he/him {{national flag|I|E}} | ||
|real-name=Trusty McCoolGuy | |||
|contribs= | |||
* Console verifier | |||
* Published TASer | * Published TASer | ||
|day-job=Software Engineer at Company | |day-job=Software Engineer at Company | ||
|tasvideos= | |tasvideos=Cool_DooD | ||
|github= | |github=Cool_DooD | ||
|discord= | |discord=cool_dood | ||
}} | }} | ||
Infobox usage: The example infobox shown on this page is the result of the following template call: | Infobox usage: | ||
The example infobox shown on this page is the result of the following template call: | |||
<pre><nowiki> | <pre><nowiki> | ||
{{infobox individual | {{infobox individual | ||
|name= | |name=Cool_DooD | ||
|contribs=* Console verifier | |subline={{p|Cool_DooD|they}}/{{p|Cool_DooD|them}} {{national flag|I|E}} | ||
|real-name=Trusty McCoolGuy | |||
|contribs= | |||
* Console verifier | |||
* Published TASer | * Published TASer | ||
|day-job=Software Engineer at Company | |day-job=Software Engineer at Company | ||
|tasvideos= | |tasvideos=Cool_DooD | ||
|github= | |github=Cool_DooD | ||
|discord= | |discord=cool_dood | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
Parameters: | Parameters: | ||
* <code>name</code> (optional): Top header text. Defaults to page title if omitted. | * <code>name</code> (optional): Top header text. Defaults to page title if omitted, though unfortunately it doesn't respect <code>DISPLAYTITLE</code>. | ||
* <code>image</code> (optional): Filename for image. | * <code>image</code> (optional): Filename for image. | ||
* <code>real-name</code> (optional): Self-explanatory. | * <code>real-name</code> (optional): Self-explanatory. | ||
* <code>contribs</code>: List of contributions/ | * <code>contribs</code> (optional): List of contributions/specialities. If more than 1, you can use bullet points. | ||
* <code>day-job</code> (optional): Self-explanatory. | * <code>day-job</code> (optional): Self-explanatory. | ||
* Profiles (include at least one because the header doesn't auto-hide!): | * Profiles (include at least one because the header doesn't auto-hide!): | ||
Line 60: | Line 73: | ||
** <code>twitch</code> (optional): Twitch username. | ** <code>twitch</code> (optional): Twitch username. | ||
** <code>discord</code> (optional): Discord username. | ** <code>discord</code> (optional): Discord username. | ||
** <code>instagram</code> (optional): Instagram handle, omitting '@'. | |||
** <code>twitter</code> (optional): Twitter handle, omitting '@'. | ** <code>twitter</code> (optional): Twitter handle, omitting '@'. | ||
** <code>website</code> (optional): Address of personal site (just the link, not wikitext). | ** <code>website</code> (optional): Address of personal site (just the address, not the wikitext for a link, and make sure you include <code>https://</code>). | ||
{{TemplateData preamble}}<templatedata> | |||
{ | |||
"params": { | |||
"tasvideos": { | |||
"label": "TASVideos.org Username", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"tasbot-wiki": { | |||
"label": "TASBot Wiki Username", | |||
"description": "omit \"User:\"", | |||
"type": "wiki-user-name" | |||
}, | |||
"gitlab": { | |||
"label": "GitLab Username", | |||
"description": "omit '@'", | |||
"type": "string" | |||
}, | |||
"github": { | |||
"label": "GitHub Username", | |||
"description": "omit '@'", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"youtube": { | |||
"label": "YouTube Handle", | |||
"description": "omit '@'", | |||
"type": "string" | |||
}, | |||
"twitch": { | |||
"label": "Twitch Username", | |||
"type": "string" | |||
}, | |||
"instagram": { | |||
"label": "Instagram Handle", | |||
"description": "omit '@'", | |||
"type": "string" | |||
}, | |||
"twitter": { | |||
"label": "X (Twitter) Handle", | |||
"description": "omit '@'", | |||
"type": "string" | |||
}, | |||
"website": { | |||
"label": "Personal Site", | |||
"description": "not wikitext, just address, including protocol+domain", | |||
"type": "url" | |||
}, | |||
"name": { | |||
"label": "Name/Pseudonym", | |||
"description": "top header text", | |||
"type": "string", | |||
"default": "{{PAGENAME}} (title of containing page)" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "omit \"File:\"", | |||
"type": "wiki-file-name" | |||
}, | |||
"real-name": { | |||
"label": "Real Name", | |||
"type": "string" | |||
}, | |||
"contribs": { | |||
"label": "Contributions/specialities", | |||
"description": "if more than 1, you can use bullet points", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"day-job": { | |||
"label": "Day Job", | |||
"type": "string" | |||
}, | |||
"discord": { | |||
"label": "Discord Username", | |||
"type": "string", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "An infobox for pages dedicated to individual people associated with the TASBot community.", | |||
"paramOrder": [ | |||
"name", | |||
"image", | |||
"real-name", | |||
"contribs", | |||
"day-job", | |||
"tasvideos", | |||
"tasbot-wiki", | |||
"gitlab", | |||
"github", | |||
"youtube", | |||
"twitch", | |||
"discord", | |||
"instagram", | |||
"twitter", | |||
"website" | |||
], | |||
"format": "{{_\n|_=_\n}}\n" | |||
} | |||
</templatedata> | |||
[[Category:General-use_block_templates]] |
Latest revision as of 08:25, 10 August 2024
{{infobox individual |name=Cool_DooD |subline={{p|Cool_DooD|they}}/{{p|Cool_DooD|them}} {{national flag|I|E}} |real-name=Trusty McCoolGuy |contribs= * Console verifier * Published TASer |day-job=Software Engineer at Company |tasvideos=Cool_DooD |github=Cool_DooD |discord=cool_dood }}
Parameters:
name
(optional): Top header text. Defaults to page title if omitted, though unfortunately it doesn't respectDISPLAYTITLE
.image
(optional): Filename for image.real-name
(optional): Self-explanatory.contribs
(optional): List of contributions/specialities. If more than 1, you can use bullet points.day-job
(optional): Self-explanatory.- Profiles (include at least one because the header doesn't auto-hide!):
tasvideos
(optional): Username for TASVideos.org.tasbot-wiki
(optional): Username for this wiki, omitting "User:".gitlab
(optional): Username for GitLab.com, omitting '@'.github
(optional): Username for GitHub.com, omitting '@'.youtube
(optional): YouTube user handle, omitting '@'.twitch
(optional): Twitch username.discord
(optional): Discord username.instagram
(optional): Instagram handle, omitting '@'.twitter
(optional): Twitter handle, omitting '@'.website
(optional): Address of personal site (just the address, not the wikitext for a link, and make sure you includehttps://
).
The below documentation is automatically generated from JSON. It can be changed by editing this page, but note that it's only the documentation (for the visual editor)—the actual template part must also be edited, manually.
An infobox for pages dedicated to individual people associated with the TASBot community.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name/Pseudonym | name | top header text
| String | optional |
Image | image | omit "File:" | File | optional |
Real Name | real-name | no description | String | optional |
Contributions/specialities | contribs | if more than 1, you can use bullet points | Content | suggested |
Day Job | day-job | no description | String | optional |
TASVideos.org Username | tasvideos | no description | String | suggested |
TASBot Wiki Username | tasbot-wiki | omit "User:" | User | optional |
GitLab Username | gitlab | omit '@' | String | optional |
GitHub Username | github | omit '@' | String | suggested |
YouTube Handle | youtube | omit '@' | String | optional |
Twitch Username | twitch | no description | String | optional |
Discord Username | discord | no description | String | suggested |
Instagram Handle | instagram | omit '@' | String | optional |
X (Twitter) Handle | twitter | omit '@' | String | optional |
Personal Site | website | not wikitext, just address, including protocol+domain | URL | optional |