More languages
More actions
No edit summary |
(added parameter documentation, it all works now) |
||
Line 1: | Line 1: | ||
<!-- | |||
{{LibraryCardMini | |||
| image = | |||
| text = | |||
| name = | |||
| link = | |||
}} | |||
--> | |||
<div class="library-card-mini"> | <div class="library-card-mini"> | ||
<h6 class="library-card-mini-TOC">{{{name|}}}</h6> | <h6 class="library-card-mini-TOC">{{{name|}}}</h6> | ||
Line 6: | Line 14: | ||
</span> | </span> | ||
</div> | </div> | ||
<!-- | |||
TemplateData | |||
--> | |||
<templatestyles src="Library_card_mini/style.css" /> | <templatestyles src="Library_card_mini/style.css" /> | ||
<!-- | |||
@param image The image filename or URL, with extension (.jpg etc) | |||
@param text Any text you want to appear next to the image, takes wikilinks (within square brackets). | |||
@param name The name you want to appear in the table of contents. | |||
@param link The link you want the image to redirect to (normally same as within the text). | |||
--> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"image": { | |||
"type": "string", | |||
"required": true, | |||
"description": "The image filename or URL, with extension (.jpg etc)" | |||
}, | |||
"text": { | |||
"type": "string", | |||
"required": true, | |||
"description": "Any text you want to appear next to the image, takes wikilinks (within square brackets)." | |||
}, | |||
"name": { | |||
"type": "string", | |||
"required": true, | |||
"description": "The name you want to appear in the table of contents." | |||
}, | |||
"link": { | |||
"type": "string", | |||
"required": true, | |||
"description": "The link you want the image to redirect to (normally same as within the text)." | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 17:28, 19 July 2023
[[File:|link={{{link}}}]]
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
image | image | The image filename or URL, with extension (.jpg etc) | String | required |
text | text | Any text you want to appear next to the image, takes wikilinks (within square brackets). | String | required |
name | name | The name you want to appear in the table of contents. | String | required |
link | link | The link you want the image to redirect to (normally same as within the text). | String | required |