Template:Info: Difference between revisions
From HUIJIA FUN
PlurimodSU (talk | contribs) m Index size of the image |
PlurimodSU (talk | contribs) Updated style |
||
| Line 1: | Line 1: | ||
{| class="infobox" | <includeonly><table class="infobox vgr-infobox {{{class|}}}" style="{{#if:{{{background|}}}|background-color:{{{background}}};}}"><!-- | ||
--><tr><th colspan="2" class="vgr-infobox-title">{{{title|{{PAGENAME}}}}}</th></tr><!-- | |||
-->{{#if:{{{file|}}}{{{file2|}}}{{{description|}}}|<tr class="vgr-infobox-media"><td colspan="2">{{#if:{{{file|}}}|[[File:{{{file}}}|{{{size|260px}}}]]}}{{{file2|}}}{{#if:{{{description|}}}|<div class="vgr-infobox-desc">{{{description}}}</div>}}</td></tr>}}<!-- | |||
-->{{#if:{{{title1|}}}|<tr class="vgr-infobox-group"><th colspan="2">{{{title1}}}</th></tr>}}<!-- | |||
-->{{#if:{{{1|}}}|<tr><th scope="row">{{{1}}}</th><td>{{{T1|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{2|}}}|<tr><th scope="row">{{{2}}}</th><td>{{{T2|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{3|}}}|<tr><th scope="row">{{{3}}}</th><td>{{{T3|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{4|}}}|<tr><th scope="row">{{{4}}}</th><td>{{{T4|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{5|}}}|<tr><th scope="row">{{{5}}}</th><td>{{{T5|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{6|}}}|<tr><th scope="row">{{{6}}}</th><td>{{{T6|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{7|}}}|<tr><th scope="row">{{{7}}}</th><td>{{{T7|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{8|}}}|<tr><th scope="row">{{{8}}}</th><td>{{{T8|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{9|}}}|<tr><th scope="row">{{{9}}}</th><td>{{{T9|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{10|}}}|<tr><th scope="row">{{{10}}}</th><td>{{{T10|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{11|}}}|<tr><th scope="row">{{{11}}}</th><td>{{{T11|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{12|}}}|<tr><th scope="row">{{{12}}}</th><td>{{{T12|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{13|}}}|<tr><th scope="row">{{{13}}}</th><td>{{{T13|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{14|}}}|<tr><th scope="row">{{{14}}}</th><td>{{{T14|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{15|}}}|<tr><th scope="row">{{{15}}}</th><td>{{{T15|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{16|}}}|<tr><th scope="row">{{{16}}}</th><td>{{{T16|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{17|}}}|<tr><th scope="row">{{{17}}}</th><td>{{{T17|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{18|}}}|<tr><th scope="row">{{{18}}}</th><td>{{{T18|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{19|}}}|<tr><th scope="row">{{{19}}}</th><td>{{{T19|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{20|}}}|<tr><th scope="row">{{{20}}}</th><td>{{{T20|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{title2|}}}|<tr class="vgr-infobox-group"><th colspan="2">{{{title2}}}</th></tr>}}<!-- | |||
-->{{#if:{{{21|}}}|<tr><th scope="row">{{{21}}}</th><td>{{{T21|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{22|}}}|<tr><th scope="row">{{{22}}}</th><td>{{{T22|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{23|}}}|<tr><th scope="row">{{{23}}}</th><td>{{{T23|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{24|}}}|<tr><th scope="row">{{{24}}}</th><td>{{{T24|}}}</td></tr>}}<!-- | |||
-->{{#if:{{{25|}}}|<tr><th scope="row">{{{25}}}</th><td>{{{T25|}}}</td></tr>}}<!-- | |||
--></table></includeonly><noinclude> | |||
An infobox with custom field names, shown on the right of an article. Its look comes from <code>.vgr-infobox</code> in <code>MediaWiki:Common.css</code>; colors read the current theme's variables, so it works under Theme-HJ, Theme-STR and Theme-VGR. On phones it becomes full width and stops floating. | |||
== Origin == | |||
Author: [[Marina Malinti]] | |||
== Parameters == | |||
Every parameter is optional; empty rows are not shown. | |||
{| class="wikitable" | |||
! Parameter !! Description | |||
|- | |- | ||
| <code>title</code> || Name at the top of the box; defaults to the page name | |||
|- | |- | ||
| | | <code>file</code> || Image file name (without <code>File:</code>) | ||
|- | |- | ||
| <code>size</code> || Image width, default <code>260px</code> | |||
|- | |- | ||
| <code>file2</code> || Any content below the image, such as a second image or tabs | |||
| | |- | ||
| <code>description</code> || Image caption | |||
|- | |||
| <code>title1</code> || Subheading for the first group, shown above rows 1–20; hidden when empty | |||
< | |- | ||
| <code>1</code>–<code>20</code>, <code>T1</code>–<code>T20</code> || First group: <code>1</code> is the field name, <code>T1</code> its value, and so on | |||
|- | |||
| <code>title2</code> || Subheading for the second group, shown above rows 21–25; hidden when empty | |||
< | |- | ||
| <code>21</code>–<code>25</code>, <code>T21</code>–<code>T25</code> || Second group | |||
|- | |||
| <code>background</code> || Kept for old pages; overrides the theme background. A custom light background makes text unreadable under dark themes, so avoid it on new pages | |||
< | |- | ||
| <code>class</code> || Extra CSS classes | |||
< | |||
|} | |} | ||
* A row only appears when its field name (<code>1</code>, <code>2</code>, ...) is filled in. | |||
* Worldview and Canon pages: write dates in S.C. or O., not the Gregorian calendar. | |||
* Real people in the Archive Area: no birthdays, social accounts or other personal details; school-level information only. | |||
== Example == | |||
<pre> | <pre> | ||
{{info | {{info | ||
|title=Plurimod Student Union | |title=Plurimod Student Union | ||
|file=PSU.jpg | |file=PSU.jpg | ||
|description=The | |description=The logo of Plurimod Student Union | ||
|title1=Information | |title1=Information | ||
|1=Alias | |1=Alias | ||
| Line 132: | Line 81: | ||
|T3=[[User:PlurimodSU|Marina Malinti (PlurimodSU account operator)]] | |T3=[[User:PlurimodSU|Marina Malinti (PlurimodSU account operator)]] | ||
|4=Founder | |4=Founder | ||
|T4=[[User:PlurimodSU|Marina Malinti]] | |T4=[[User:PlurimodSU|Marina Malinti]], Akatsuki0702 | ||
|5= | |5=Founded | ||
|T5=2023-06-07 | |T5=2023-06-07 | ||
|title2= | |title2=Relations | ||
|21= | |21=Allied group | ||
|T21=[[Huijia | |T21=[[Beijing Huijia Private School]] | ||
}} | }} | ||
</pre> | </pre> | ||
{{info | {{info | ||
|title=Plurimod Student Union | |title=Plurimod Student Union | ||
|file=PSU.jpg | |file=PSU.jpg | ||
|description=The | |description=The logo of Plurimod Student Union | ||
|title1=Information | |title1=Information | ||
|1=Alias | |1=Alias | ||
| Line 153: | Line 101: | ||
|T3=[[User:PlurimodSU|Marina Malinti (PlurimodSU account operator)]] | |T3=[[User:PlurimodSU|Marina Malinti (PlurimodSU account operator)]] | ||
|4=Founder | |4=Founder | ||
|T4=[[User:PlurimodSU|Marina Malinti]] | |T4=[[User:PlurimodSU|Marina Malinti]], Akatsuki0702 | ||
|5= | |5=Founded | ||
|T5=2023-06-07 | |T5=2023-06-07 | ||
|title2= | |title2=Relations | ||
|21= | |21=Allied group | ||
|T21=[[Huijia | |T21=[[Beijing Huijia Private School]] | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:18, 12 October 2026
An infobox with custom field names, shown on the right of an article. Its look comes from .vgr-infobox in MediaWiki:Common.css; colors read the current theme's variables, so it works under Theme-HJ, Theme-STR and Theme-VGR. On phones it becomes full width and stops floating.
Origin
Author: Marina Malinti
Parameters
Every parameter is optional; empty rows are not shown.
| Parameter | Description |
|---|---|
title |
Name at the top of the box; defaults to the page name |
file |
Image file name (without File:)
|
size |
Image width, default 260px
|
file2 |
Any content below the image, such as a second image or tabs |
description |
Image caption |
title1 |
Subheading for the first group, shown above rows 1–20; hidden when empty |
1–20, T1–T20 |
First group: 1 is the field name, T1 its value, and so on
|
title2 |
Subheading for the second group, shown above rows 21–25; hidden when empty |
21–25, T21–T25 |
Second group |
background |
Kept for old pages; overrides the theme background. A custom light background makes text unreadable under dark themes, so avoid it on new pages |
class |
Extra CSS classes |
- A row only appears when its field name (
1,2, ...) is filled in. - Worldview and Canon pages: write dates in S.C. or O., not the Gregorian calendar.
- Real people in the Archive Area: no birthdays, social accounts or other personal details; school-level information only.
Example
{{info
|title=Plurimod Student Union
|file=PSU.jpg
|description=The logo of Plurimod Student Union
|title1=Information
|1=Alias
|T1=Chinese: Plurimod学生会
|2=Scale
|T2=Over ten members
|3=Leader
|T3=[[User:PlurimodSU|Marina Malinti (PlurimodSU account operator)]]
|4=Founder
|T4=[[User:PlurimodSU|Marina Malinti]], Akatsuki0702
|5=Founded
|T5=2023-06-07
|title2=Relations
|21=Allied group
|T21=[[Beijing Huijia Private School]]
}}
| Plurimod Student Union | |
|---|---|
The logo of Plurimod Student Union | |
| Information | |
| Alias | Chinese: Plurimod学生会 |
| Scale | Over ten members |
| Leader | Marina Malinti (PlurimodSU account operator) |
| Founder | Marina Malinti, Akatsuki0702 |
| Founded | 2023-06-07 |
| Relations | |
| Allied group | Beijing Huijia Private School |
