Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 18:33, 23 October 2024 by Devonnn (talk | contribs) (update template documentation. underscores no longer required for template to work)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for Template:Wiki

Usage

A template for links to Wikipedia, provides a distinct color to discriminate from wikilinks (like Destiny) and other external links (like Destiny).

Any questions regarding this template can be directed to User:Devonnn at User talk:Devonnn or in the #dgg-wiki channel in the Destiny discord.

{{wiki|1|2|3}}
{{wiki|url|alternate name|non linked}}

Parameters 2 and 3 are optional and do not need a pipe (|) if not in use (i.e. {{wiki|bat}} rather than {{wiki|bat||}}.)

Parameters

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Wikipedia page name1

The Wikipedia page you are linking to. THIS FIELD IS CASE SENSITIVE.

Example
Destiny (streamer)
Page namerequired
Display name2

An optional display name for the link you are about to create.

Example
Destiny
Contentoptional
Non-linked characters. 3

Used for periods, commas, etc. so that they are not colored.

Contentoptional

Examples

If the article has a space, make it an underscore and set parameter 2 to be the actual name you want (or if you want a different name entirely. For example,

{{wiki|Destiny (streamer)|Destiny}} will output Destiny Wikipedia


And carries over for something like

{{wiki|Destiny (streamer)|Wiki-warrior number 1}} will output Wiki-warrior number 1 Wikipedia


If you dont include a 2nd parameter, it will look as entered (it will set the shortened name of the link to the last part of the hyperlink, e.g.

{{wiki|Destiny streamer)}} will output Destiny (streamer) Wikipedia

This works fine for single word articles.


The third parameter can be used for any required punctuation, as to not have the Wikipedia logo awkwardly separate the logo.

Additionally someone like {{wiki|Destiny (streamer)|Destiny|,}} an advocate for peace in the middle east, would not support waffle ice cream cones.

would result in the following:

Additionally someone like Destiny, Wikipedia an advocate for peace in the middle east, would not support waffle ice cream cones.


However, when using something like an em dash (—) it will probably be better to skip the 3rd parameter.

Additionally someone like {{wiki|Destiny (streamer)|Destiny}}—an advocate for peas in the middle east—would not support the shipment of lima beans into the Gaza strip.

would result in the following:

Additionally someone like Destiny Wikipedia—an advocate for peas in the middle east—would not support the shipment of lima beans into the Gaza strip.