User:Noa T'Nessa Levinson/Sandbox6: Difference between revisions
Jump to navigation
Jump to search
(Testing templateData) |
(Adding the rest of param types in to the templatedata) |
||
Line 7: | Line 7: | ||
"format": "\n{{_|_=_}}\n", | "format": "\n{{_|_=_}}\n", | ||
"params": { | "params": { | ||
"unknown": { | |||
"label": "unknown param type", | |||
"description": "Uh, yes.", | |||
"type": "unknown" | |||
}, | |||
"string": { | |||
"label": "Plain string param", | |||
"description": "Sure!", | |||
"type": "string" | |||
}, | |||
"line": { | |||
"label": "Single line param", | |||
"description": "Obviously.", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"Never gonna give you up", | |||
"Never gonna let you down", | |||
"Never gonna run around", | |||
"And desert you" | |||
] | |||
}, | |||
"content": { | "content": { | ||
"label": "Wikitext param", | "label": "Wikitext param", | ||
Line 47: | Line 68: | ||
"type": "boolean", | "type": "boolean", | ||
"autovalue": "0" | "autovalue": "0" | ||
}, | |||
"date": { | |||
"label": "Date param", | |||
"description": "Huh. How does it work with our Stardates?", | |||
"type": "date" | |||
}, | |||
"url": { | |||
"label": "URL param", | |||
"description": "Sim URLs! They might just go here!", | |||
"type": "url" | |||
} | } | ||
} | } | ||
} | } | ||
</templatedata>[[Category:Adingo]]</noinclude> | </templatedata>[[Category:Adingo]]</noinclude> |
Revision as of 22:13, 6 February 2023
Supposed to work with sandboxes 5 and 7 for testing structure. Displays the content/wikitext parameter if given.
Template Data
Hi! This is a test. If you're seeing this outside of the TemplateData table, then you're using something incorrectly!
Parameter | Description | Type | Status | |
---|---|---|---|---|
unknown param type | unknown | Uh, yes. | Unknown | optional |
Plain string param | string | Sure! | String | optional |
Single line param | line | Obviously.
| Line | optional |
Wikitext param | content | Woah! | Content | optional |
Unbalanced wikitext param | unbalanced-wikitext | For all your unclosed <div> tags! | Unbalanced wikitext | optional |
Wiki page name param | wiki-page-name | Probably self-explanatory. | Page name | optional |
File name param | wiki-file-name | Yep. | File | optional |
Template name param | wiki-template-name | Mmhm. | Template | optional |
Wiki username param | wiki-user-name | Woohoo! | User | optional |
Numerical param | number | Uhhhh, beep boop 1 2 3? | Number | optional |
Boolean param | boolean | But does it add a checkbox?
| Boolean | optional |
Date param | date | Huh. How does it work with our Stardates? | Date | optional |
URL param | url | Sim URLs! They might just go here! | URL | optional |