Template:NamedRef: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "<includeonly>{{#invoke:References|namedref}}</includeonly><noinclude>{{/doc}}</noinclude>")
 
(No difference)

Latest revision as of 00:38, 17 October 2024

Template documentation
This documentation is transcluded from Template:NamedRef/doc. [edit] [history] [purge]
Template:NamedRef invokes function namedref in Module:References using Lua.
Template:NamedRef invokes Module:References using Lua.

This template is used to quickly re-use a named reference. This works with references named using any method, be that a Cite template, or using ref tags normally.

Usage

Basic

The syntax is:

{{NamedRef|name}}

You must name a reference before inserting this template or it will trigger an error message.

Groups

If you want to refer to a named reference that is part of a group, you can use the second parameter:

{{NamedRef|name|group}}

See here for more on reference groups.

Named parameters

If you prefer, you can use named parameters instead - to make it clearer which parameter is which, etc.

{{NamedRef|name=name|group=group}}