Template:MdCharLink: Difference between revisions

From bg3.wiki
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": {...")
 
(Updated documentation)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{CharLink|{{{1}}}|alias={{{alias|}}}{{{2|}}}|icon={{{icon|}}}|w=35|h=35}}</onlyinclude></includeonly><noinclude>{{documentation|content=
<includeonly><onlyinclude>{{CharLink|{{{1}}}|{{{2|{{{1}}}}}}|icon={{{icon|}}}|w=30}}</onlyinclude></includeonly><noinclude>
{{MdCharLink|Shadowheart}}
As [[Template:CharLink]] but sets the default size to 30 instead of 25.


As [[Template:CharLink]] but sets the default size to 35 instead of 25.
== Examples ==
 
{|class="wikitable"
[[Category:Templates]]
! Code !! Result
|-
| <code><nowiki>{{MdCharLink|Shadowheart}}</nowiki></code>
| {{MdCharLink|Shadowheart}}
|-
| <code><nowiki>{{MdCharLink|Ethel|Auntie Ethel|icon=Portrait Ethel Human.png}}</nowiki></code>
| {{MdCharLink|Ethel|Auntie Ethel|icon=Portrait Ethel Human.png}}
|}


== Template data ==
== Template data ==
Line 35: Line 42:
}
}
</templatedata>
</templatedata>
}}</noinclude>
[[Category:Templates]]
[[Category:Icon templates]]
</noinclude>

Revision as of 00:45, 10 July 2024

As Template:CharLink but sets the default size to 30 instead of 25.

Examples

Code Result
{{MdCharLink|Shadowheart}} Shadowheart Shadowheart
{{MdCharLink|Ethel|Auntie Ethel|icon=Portrait Ethel Human.png}} Ethel Auntie Ethel

Template data

Inserts a link for a character.

Template parameters

ParameterDescriptionTypeStatus
name1

Name of the character

Page namerequired
alias2

Alias for the link text

Stringoptional
iconicon

Specify a different icon

Fileoptional