Template:Sandbox: Difference between revisions
From Crazy-Fools.co.uk Wiki
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
</noinclude> | </noinclude> | ||
<templatedata> | |||
{ | |||
"description": "Label unsigned comments in a conversation.", | |||
"params": { | |||
"user": { | |||
"label": "User's name", | |||
"type": "wiki-user-name", | |||
"required": true, | |||
"description": "User name of person who forgot to sign their comment.", | |||
"aliases": ["1"] | |||
}, | |||
"date": { | |||
"label": "Date", | |||
"suggested": true, | |||
"description": { | |||
"en": "Timestamp of when the comment was posted, in YYYY-MM-DD format." | |||
}, | |||
"aliases": ["2"], | |||
"autovalue": "{{subst:#time:Y-m-d}}" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
{| 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 --> |
Revision as of 20:18, 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 }}
Label unsigned comments in a conversation.
Parameter | Description | Type | Status | |
---|---|---|---|---|
User's name | user 1 | User name of person who forgot to sign their comment. | User | required |
Date | date 2 | Timestamp of when the comment was posted, in YYYY-MM-DD format.
| Unknown | suggested |
A Sample Infobox | |
First Value: | {{{firstValue}}} |
Second Value: | {{{secondValue}}} |