Wiki contribution guide/Templates: Difference between revisions
Ast3risk0ps (talk | contribs) (Create templates skeleton) |
Ast3risk0ps (talk | contribs) m (add break between admonition types) |
||
Line 205: | Line 205: | ||
{{Notice|Minecraft is cool. '''Wikitext''' and <I>HTML</i> is supported here.}} | {{Notice|Minecraft is cool. '''Wikitext''' and <I>HTML</i> is supported here.}} | ||
<nowiki>{{Notice|Your Message}}</nowiki> | <nowiki>{{Notice|Your Message}}</nowiki> | ||
<br> | |||
{{Warning|TNT is dangerous! '''Wikitext''' and <I>HTML</i> is supported here.}} | {{Warning|TNT is dangerous! '''Wikitext''' and <I>HTML</i> is supported here.}} | ||
<nowiki>{{Warning|Your Dangerous Message}}</nowiki> | <nowiki>{{Warning|Your Dangerous Message}}</nowiki> |
Revision as of 13:07, 17 October 2024
This page documents all the fun templates you can use on the wiki not covered in the style guide.
Infoboxes
These are different boxes with information that appear on the side of the page.
The basic Infobox (taken from Wikipedia) looks like this:
ℹ️ Notice: Wikitext and HTML are supported in all manual Infoboxes.
Infobox example | |
---|---|
Header label | |
Owner | Scout |
Established | 2014 |
Address | https://retromc.org |
{{Infobox | abovestyle = background:#cfc; | above = Infobox example | image = [[File:Retromcnew.png|150px]] | caption1 = [[RetroMC (server)|RetroMC]] logo. | headerstyle = background:#ccf; | header1 = Header label | labelstyle = background:#cfc; | label2 = Owner | data2 = [[Scout]] | label3 = Established | data3 = 2014 | label4 = Address | data4 = https://retromc.org }}
Town Infoboxes
You can make cool infoboxes for your towns like this (it will use the page title as the infobox title):
Wiki contribution guide/Templates | |||
---|---|---|---|
Owner | |||
Noggisoggi | |||
Town Members | |||
Noggisoggi | |||
Assistants | |||
Noggisoggi | |||
General information | |||
| |||
| |||
|
{{Infobox Town | image = [[File:Noggisoggi-bust.png]] | caption = Noggisoggi's avatar | owner = {{user|Noggisoggi}} | members = {{user|Noggisoggi}} | assistants = {{user|Noggisoggi}} | established = July 30 2023 | status = Active or Inactive | uip = No }}
ℹ️ Notice: The first (or only) image set here will be your town page's og:image
used in embeds and page previews.
You can abuse the Infobox and list multiple images, but this is not recommended.
| image = [[File:overview1.png|200px|alt=Cactus sky overview 1|Cactus sky overview 1]] [[File:overview2.png|200px|alt=Cactus sky overview 2|Cactus sky overview 2]] [[File:overview3.png|200px|alt=Cactus sky overview 3|Cactus sky overview 3]] [[File:overview4.png|200px|alt=Cactus sky overview 4|Cactus sky overview 4]]
You can list multiple members/assistants as well:
| assistants = *{{user|jcheese7}} *{{user|Pittofer}} *{{user|Krissofer}} *{{user|witorudo}} *{{user|Grassboii}} *{{user|Endeermaan}} *{{user|Vyrvin}}
User Infoboxes
ℹ️ Notice: This template is automatic. It accepts one or two variables and handles everything else for you.
To create a user infobox, use ProfileInfoboxUpdater
. It will query your JStats profile and pull the relevant information.
Ast3risk0ps | |
---|---|
Player Bust | |
Username | Ast3risk0ps |
Rank | [Wanderer] |
UUID | 3b026dd6-285b-4d28-aa12-bd5215e52eb6 |
Balance | 19.34 |
Miscellaneous Stats | |
Join Count | 18 |
Trust Level | 0 |
Player Kills | 0 |
Mob Kills | 1 |
Deaths | 0 |
Blocks Traveled | 30116 |
Blocks Placed | 141 |
Items Dropped | 148 |
Blocks Broken | 383 |
{{ProfileInfoboxUpdater|YourUsername}}
Election Infoboxes
Uhhh... | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Location | This page | |||||||||
Type | Example usage | |||||||||
Party | Party 1 | The 2nd Party | Party 3rd | Party the 4th | The Party, the 5th one | 6th Party | Party of the 7th | Party 8th | Party 9 | Party 10 |
Nominees | Noggisoggi | CruxyMC | JohnyMuffin | cakedon | thecow275 | notsui | BetaLands | RetroMC | 1blckhrt | Ade1ie |
ℹ️ Notice: Not all options here have to be used.
{{Infobox Election | image1 = [[File:Noggisoggi-bust.png|50px]] | image2 = [[File:CruxyMC-bust.png|50px]] | image3 = [[File:JohnyMuffin-bust.png|50px]] | image4 = [[File:cakedon-bust.png|50px]] | image5 = [[File:thecow275-bust.png|50px]] | image6 = [[File:notsui-bust.png|50px]] | image7 = [[File:BetaLands.png|50px]] | image8 = [[File:Retromcnew.png|50px]] | image9 = [[File:1blckhrt-bust.png|50px]] | image10 = [[File:Ade1ie-bust.png|50px]] | election = Uhhh... | location = This page | type = Example usage | party1 = Party 1 | party2 = The 2nd Party | party3 = Party 3rd | party4 = Party the 4th | party5 = The Party, the 5th one | party6 = 6th Party | party7 = Party of the 7th | party8 = Party 8th | party9 = Party 9 | party10 = Party 10 | nominee1 = {{user|Noggisoggi}} | nominee2 = {{user|CruxyMC}} | nominee3 = {{user|JohnyMuffin}} | nominee4 = {{user|cakedon}} | nominee5 = {{user|thecow275}} | nominee6 = {{user-nonwiki|notsui}} | nominee7 = [[BetaLands]] | nominee8 = [[RetroMC (server)|RetroMC]] | nominee9 = {{user-nonwiki|1blckhrt}} | nominee10 = {{user-nonwiki|Ade1ie}} }}
Other components
Admonitions
ℹ️ Notice: Minecraft is cool. Wikitext and HTML is supported here.
{{Notice|Your Message}}
⚠️ Warning: TNT is dangerous! Wikitext and HTML is supported here.
{{Warning|Your Dangerous Message}}