Template:Sandbox: Difference between revisions

From Crazy-Fools.co.uk Wiki
No edit summary
No edit summary
Line 27: Line 27:
<templatedata>
<templatedata>
{
{
    "description": "Label unsigned comments in a conversation.",
"description": "A simple template that requires two values, first value and second value",
    "params": {
"params": {
        "user": {
"First Value": {
            "label": "User's name",
"aliases": [
            "type": "wiki-user-name",
"firstValue"
            "required": true,
],
            "description": "User name of person who forgot to sign their comment.",
"label": "The First Value",
            "aliases": ["1"]
"type": "string",
        },
"required": true
        "date": {
},
            "label": "Date",
"The Second Value": {
            "suggested": true,
"aliases": [
            "description": {
"secondValue"
                "en": "Timestamp of when the comment was posted, in YYYY-MM-DD format."
],
            },
"label": "Second Value",
            "aliases": ["2"],
"description": {
            "autovalue": "{{subst:#time:Y-m-d}}"
"en": "Timestamp of when the comment was posted, in YYYY-MM-DD format."
        }
},
    }
"type": "string",
"required": true
}
},
"paramOrder": [
"First Value",
"The Second Value"
]
}
}
</templatedata>
</templatedata>

Revision as of 20:20, 31 May 2024


Look at this in source or edit view to really see how it is set up.

This template just demonstrates a really simple infobox that will show up at the right top of where the template is used. It is really just a mediawiki template that generates a right floating mediawiki table.

Template Use

To use this template, put the following text on a page, replacing the values as instructed.

{{SampleInfobox
| firstValue = replace this with first value
| secondValue = replace this with second value
}}



A simple template that requires two values, first value and second value

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
The First ValueFirst Value firstValue

no description

Stringrequired
Second ValueThe Second Value secondValue

Timestamp of when the comment was posted, in YYYY-MM-DD format.

Stringrequired


A Sample Infobox
First Value: {{{firstValue}}}
Second Value: {{{secondValue}}}