Template:Sandbox: Difference between revisions
From Crazy-Fools.co.uk Wiki
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 23: | Line 23: | ||
--> | --> | ||
<templatedata> | |||
{ | |||
"description": "A simple template that requires two values, first value and second value", | |||
"params": { | |||
"firstValue": { | |||
"label": "The First Value", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"secondValue": { | |||
"label": "Second Value", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"paramOrder": [ | |||
"firstValue", | |||
"secondValue" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> | |||
{| class="wikitable" border="1" style="float:right; width:33%" <!-- float puts it on right side and wraps text --> | {| class="wikitable" border="1" style="float:right; width:33%" <!-- float puts it on right side and wraps text --> | ||
|style="text-align: center" <!-- center the text --> colspan="2" <!-- make title row span across columns --> | A Sample Infobox | |style="text-align: center" <!-- center the text --> colspan="2" <!-- make title row span across columns --> | A Sample Infobox |
Latest revision as of 20:22, 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
Parameter | Description | Type | Status | |
---|---|---|---|---|
The First Value | firstValue | no description | String | required |
Second Value | secondValue | no description | String | required |
A Sample Infobox | |
First Value: | {{{firstValue}}} |
Second Value: | {{{secondValue}}} |