Jump to content

Template:Infobox: Difference between revisions

From Deffcon
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(48 intermediate revisions by the same user not shown)
Line 5: Line 5:
    
    
   <div class="infobox-image">
   <div class="infobox-image">
     [[File:{{{image|Default.png}}}|250px|alt={{{alt|Image}}}]]
     {{#if:{{{image|}}}
      | [[File:{{{image}}}|250px|alt={{{alt|Image}}}]]
      | [[File:Default.png|250px|alt=No image available]]
    }}
   </div>
   </div>
    
    
Line 12: Line 15:
       <th>Description</th>
       <th>Description</th>
       <td>{{{description|No description available}}}</td>
       <td>{{{description|No description available}}}</td>
    </tr>
    <tr>
      <th>Date</th>
      <td>{{{date|Unknown}}}</td>
    </tr>
    <tr>
      <th>Location</th>
      <td>{{{location|Not specified}}}</td>
    </tr>
    <tr>
      <th>Category</th>
      <td>{{{category|None}}}</td>
    </tr>
    <tr>
      <th>Additional Info</th>
      <td>{{{info|None}}}</td>
     </tr>
     </tr>
     {{#if:{{{website|}}}|
     {{#if:{{{website|}}}|
Line 37: Line 24:
   </table>
   </table>
</div>
</div>
 
<noinclude>
<templatedata>
<templatedata>
{
{
    "description": "An infobox template for displaying structured data.",
"params": {
    "params": {
"title": {
        "title": {
"type": "string"
            "label": "Title",
},
            "description": "The title of the infobox",
"image": {
            "type": "string",
"type": "wiki-file-name"
            "required": true
},
        },
"description": {},
        "image": {
"website": {
            "label": "Image",
"type": "url"
            "description": "The name of the image file",
}
            "type": "file",
},
            "required": false
"description": "Infobox with picture upload"
        },
        "description": {
            "label": "Description",
            "description": "A short description",
            "type": "string",
            "required": false
        },
        "date": {
            "label": "Date",
            "description": "A relevant date",
            "type": "string",
            "required": false
        },
        "location": {
            "label": "Location",
            "description": "Location of the event or entity",
            "type": "string",
            "required": false
        },
        "category": {
            "label": "Category",
            "description": "The category of the subject",
            "type": "string",
            "required": false
        },
        "info": {
            "label": "Additional Info",
            "description": "Any extra information",
            "type": "string",
            "required": false
        },
        "website": {
            "label": "Website",
            "description": "A related website link",
            "type": "url",
            "required": false
        }
    }
}
}
</templatedata>
</templatedata>
</noinclude>

Latest revision as of 17:23, 13 December 2025

   Infobox Title
Description No description available

Infobox with picture upload

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

no description

Stringoptional
imageimage

no description

Fileoptional
descriptiondescription

no description

Unknownoptional
websitewebsite

no description

URLoptional