Template:Roombox: Difference between revisions

From Kanthaus wiki
No edit summary
Add description
 
(29 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<templatedata>
<templatedata>
{
{
     "description": "",
     "description": "This template adds an Infobox specific for Rooms",
     "params": {
     "params": {
         "CommonName": {
         "Photo": {
             "label": "CommonName",
             "label": "Photo",
             "description": "The most common name of the room",
             "description": "Photo of the room",
            "type": "wiki-file-name",
            "suggested": true
        },
        "RoomNumber": {
            "label": "Room number",
            "description": "See [[Room_numbering]]",
             "type": "string",
             "type": "string",
             "suggested": true
             "suggested": true
         },
         },
         "Photo": {
         "PreviouslyNamed": {
             "label": "Photo",
             "label": "Previously named",
             "description": "Photo of the room",
             "description": "Comma-separated list of names this room was called in the past",
             "type": "content",
             "type": "string",
             "suggested": true
             "suggested": true
         }
         }
Line 20: Line 26:
</templatedata>
</templatedata>
</noinclude>
</noinclude>
<div style="width: 200px; float:right; padding:0.25rem; margin:1rem 1rem 1.5rem 1rem; border:black solid 0.1rem; clear:both; overflow: clip;">  
<div class="infoboxOuter" style="padding:0.25rem; border:black solid 0.1rem;">
   <p><b>{{{CommonName}}}</b><p>
  <p style="text-align: center; font-size: 1.1rem"><b>{{PAGENAME}}</b></p>
  <div>{{{Photo|200px}}}</div>
  {{#if: {{{Photo|}}} | <div style="width:fit-content; margin:auto;">[[File:{{{Photo}}}]]</div> |}}
   <p style="margin-top:1rem; padding:0"><b>[[Room numbering|Room number]]:</b> {{{RoomNumber|K2x-x-x}}}</p>
  {{#if: {{{PreviouslyNamed|}}} | <p><b>Previously named:</b> <em>{{{PreviouslyNamed}}}</em></p> |}}
</div>
</div>

Latest revision as of 20:17, 14 April 2025

This template adds an Infobox specific for Rooms

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