Template:MdCharLink: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><onlyinclude>{{CharLink|{{{1}}}|alias={{{alias|}}}{{{2|}}}|icon={{{icon|}}}|w=35|h=35}}</onlyinclude></includeonly><noinclude>{{documentation|content= {{MdCharLink|Shadowheart}} As Template:CharLink but sets the default size to 35 instead of 25. Category:Templates == Template data == <templatedata> { "params": { "1": { "description": "Name of the character", "required": true, "label": "name", "type": "wiki-page-name" }, "2": {...") |
(New demo template) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{CharLink|{{{1}}}| | <includeonly><onlyinclude>{{CharLink|{{{1}}}|{{{2|{{{1}}}}}}|icon={{{icon|}}}|w=30}}</onlyinclude></includeonly><noinclude> | ||
As [[Template:CharLink]] but sets the default size to 30 instead of 25. | |||
== Examples == | |||
{{Template demo | |||
| <nowiki>{{MdCharLink|Shadowheart}}</nowiki> | |||
| <nowiki>{{MdCharLink|Ethel|Auntie Ethel|icon=Portrait Ethel Human.png}}</nowiki> | |||
}} | |||
== Template data == | == Template data == | ||
Line 35: | Line 37: | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Templates]] | |||
[[Category:Icon templates]] | |||
</noinclude> |
Latest revision as of 05:44, 20 July 2024
As Template:CharLink but sets the default size to 30 instead of 25.
Examples
Markup | Renders as |
---|---|
{{MdCharLink|Shadowheart}} | Shadowheart |
{{MdCharLink|Ethel|Auntie Ethel|icon=Portrait Ethel Human.png}} | Auntie Ethel |
Template data
Inserts a link for a character.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | 1 | Name of the character | Page name | required |
alias | 2 | Alias for the link text | String | optional |
icon | icon | Specify a different icon | File | optional |