Jump to content

Template:OOO-LinkExternal: Difference between revisions

From Out of Ore Wiki
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<span class="ooo-extlink">
<includeonly>
<a href="{{{url}}}" target="_blank" rel="noopener noreferrer" class="external">{{{title}}}</a>
<span class="ooo-extlink">[{{{url}}} {{{title}}}]</span>
</span>
</span>
</includeonly>


<noinclude>
<noinclude>
Line 32: Line 33:
<templatedata>
<templatedata>
{
{
"description": "Styled external link used across the OOO wiki.",
  "description": "Styled external link used across the OOO wiki.",
"params": {
  "params": {
"url": {
    "url": {
"label": "URL",
      "label": "URL",
"description": "External website address.",
      "description": "External website address.",
"type": "url",
      "type": "url",
"required": true
      "required": true
},
    },
"title": {
    "title": {
"label": "Link title",
      "label": "Link title",
"description": "Text displayed for the link.",
      "description": "Text displayed for the link.",
"type": "string",
      "type": "string",
"required": true
      "required": true
}
    }
}
  }
}
}
</templatedata>
</templatedata>

Latest revision as of 20:12, 6 March 2026



Usage

Creates a styled external link.

Example:

{{OOO-LinkExternal
|url=https://outofore.com
|title=Official Website
}}

Result:


Official Website



Parameters

  • url – external link
  • title – text shown to users

Styled external link used across the OOO wiki.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
URLurl

External website address.

URLrequired
Link titletitle

Text displayed for the link.

Stringrequired