Template:Roombox: Difference between revisions

From Kanthaus wiki
remove image class since now handles by descendent combinator in common.css
white-space shuffling + improve previous name entry description
 
(8 intermediate revisions by 2 users not shown)
Line 18: Line 18:
         "PreviouslyNamed": {
         "PreviouslyNamed": {
             "label": "Previously named",
             "label": "Previously named",
             "description": "List of names this room was called in the past",
             "description": "Comma-separated list of names this room was called in the past",
             "type": "string",
             "type": "string",
             "suggested": true
             "suggested": true
Line 27: Line 27:
</noinclude>
</noinclude>
<div class="infoboxOuter" style="padding:0.25rem; border:black solid 0.1rem;">  
<div class="infoboxOuter" style="padding:0.25rem; border:black solid 0.1rem;">  
   <p style="text-align: center; font-size: 1.1rem"><b>{{PAGENAME}}</b><p>
   <p style="text-align: center; font-size: 1.1rem"><b>{{PAGENAME}}</b></p>
   {{#if: {{{Photo|}}} | <div>[[File:{{{Photo}}}]]</div> |}}
   {{#if: {{{Photo|}}} | <div style="width:fit-content; margin:auto;">[[File:{{{Photo}}}]]</div> |}}
   <p>[[Room numbering|Room number]]: <b>{{{RoomNumber|K2x-x-x}}}</b></p>
   <p style="margin-top:1rem; padding:0"><b>[[Room numbering|Room number]]:</b> {{{RoomNumber|K2x-x-x}}}</p>
   {{#if: {{{PreviouslyNamed|}}} | <p>Previously named: <em>{{{PreviouslyNamed}}}</em></p> |}}
   {{#if: {{{PreviouslyNamed|}}} | <p><b>Previously named:</b> <em>{{{PreviouslyNamed}}}</em></p> |}}
</div>
</div>

Latest revision as of 20:48, 21 November 2024

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
PhotoPhoto

Photo of the room

Filesuggested
Room numberRoomNumber

See [[Room_numbering]]

Stringsuggested
Previously namedPreviouslyNamed

Comma-separated list of names this room was called in the past

Stringsuggested

Roombox

Room number: K2x-x-x