Template:SmallLink/doc: Difference between revisions

Template page
Created page with "==Usage== <code><nowiki>{{Spell</nowiki></code><br> <code><nowiki>|</nowiki></code><br> <code><nowiki>}}</nowiki></code> ==Optional== <code><nowiki>|link=</nowiki></code> override the link, to point to this instead. <code><nowiki>|hr=1</nowiki></code> adds a line beneath the link and add appropriate styling to the line. ==Example== ::<code><nowiki>{{SmallLink</nowiki></code><br> ::<code><nowiki>|</nowiki>small link beep boop</code><br> ::<code><nowiki>}}</nowiki></code>"
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:


==Example==
==Example==
'''Example 1:'''<br>
::<code><nowiki>{{SmallLink</nowiki></code><br>
::<code><nowiki>{{SmallLink</nowiki></code><br>
::<code><nowiki>|</nowiki>small link beep boop</code><br>
::<code><nowiki>|</nowiki>small link beep boop</code><br>
::<code><nowiki>}}</nowiki></code>
::<code><nowiki>}}</nowiki></code>
'''Output:'''
{{SmallLink|small link beep boop}}
'''Example 2:'''<br>
::<code><nowiki>{{SmallLink</nowiki></code><br>
::<code><nowiki>|this is the name, but not the actual link</nowiki></code><br>
::<code><nowiki>|link=this is the actual link</nowiki></code><br>
::<code><nowiki>|hr=1</nowiki></code><br>
::<code><nowiki>}}</nowiki></code>
'''Output:'''
{{SmallLink|this is the name, but not the actual link|link=this is the actual link|hr=1}}

Latest revision as of 18:36, 13 March 2024

Usage

{{Spell
|
}}

Optional

|link= override the link, to point to this instead.

|hr=1 adds a line beneath the link and add appropriate styling to the line.

Example

Example 1:

{{SmallLink
|small link beep boop
}}

Output:

→ small link beep boop

Example 2:

{{SmallLink
|this is the name, but not the actual link
|link=this is the actual link
|hr=1
}}

Output:

→ this is the name, but not the actual link