From Brotato Wiki

(INITIAL \o/)
 
(`DLC_Link` > `DLCLink`)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><!--
<onlyinclude><includeonly><!--
--><span class="dlc-link"><!--
--><span class="dlc-link"><!--
--><span class="dlc-link-item">[[{{{link|{{{1|}}}}}}|{{{text|{{{2|}}}}}}]]</span><!--
--><span class="dlc-link-item">[[{{{link|{{{1|}}}}}}|{{{text|{{{2|{{{link|{{{1|}}}}}}}}}}}}]]</span><!--
--><span class="dlc-link-badge">DLC</span></span><!--
-->{{DLCBadge}}<!--
--></span><!--
--></span><!--
--></onlyinclude><noinclude>
--></includeonly></onlyinclude><noinclude>


Add a "DLC" text badge to a link. Accepts a link as the first parameter, and optional text. If no text is specified, the link will be used as the text.
Add a "DLC" text badge to a link. Accepts a link as the first parameter, and optional text. If no text is specified, the link will be used as the text.


{{DLC_Link|Curse}}
{| class="wikitable"
{{DLC_Link|Curse|View the Curse Page}}
!Code
!Result
|-
|<code><nowiki>{{DLCLink|Curse}}</nowiki></code>
|{{DLCLink|Curse}}
|-
|<code><nowiki>{{DLCLink|Curse|View the Curse Page}}</nowiki></code>
|{{DLCLink|Curse|View the Curse Page}}
|}


</noinclude>
 
<templatedata>
{
"params": {
"link": {
"aliases": [
"1"
],
"label": "Link (Page Name)",
"type": "string",
"required": true
},
"text": {
"aliases": [
"2"
],
"label": "Text Override",
"description": "By default, the link's text matches the page name. Use this option to override the text",
"type": "string",
"suggested": true
}
}
}
</templatedata></noinclude>

Latest revision as of 23:07, 3 November 2024


Add a "DLC" text badge to a link. Accepts a link as the first parameter, and optional text. If no text is specified, the link will be used as the text.

Code Result
{{DLCLink|Curse}} Curse(DLC)
{{DLCLink|Curse|View the Curse Page}} View the Curse Page(DLC)


No description.

Template parameters

ParameterDescriptionTypeStatus
Link (Page Name)link 1

no description

Stringrequired
Text Overridetext 2

By default, the link's text matches the page name. Use this option to override the text

Stringsuggested