Jump to content

Template:COinS safe/doc

From Wikipedia

Description

[edit source]

Dis template dey show whether e safe to use inside citation templates or not. By default, e dey show say the template safe to use.

When the template dey set as "not safe", the page go enter Category:Templates not safe for use in citation templates. To stop categorization, use parameter |nocat=true.

How to use am

[edit source]

To show say one template fit safely be used inside citation templates:

{{COinS safe}}

To show say one template NO suppose be used inside citation templates:

{{COinS safe|n}}

To add extra information after the normal message:

|addtext=

Examples

[edit source]
CodeResult
{{COinS safe}}
{{COinS safe|n}}
{{COinS safe|addtext=Here is the extra info.}}
{{COinS safe|n|addtext=Here is the extra info.}}

Explain COinS issues

[edit source]

Citation templates like Citation Style 1 and Template:Cs2 dey create COinS metadata. If one template dey used inside a citation template field, e fit put HTML inside the metadata.

Compare the rendered HTML for {{cite book}} with |author= when no template dey used and when {{smallcaps}} dey used.

Template:Markup

The author metadata dey inside the rft.aulast field. For dis case, e dey percent-encoded and e render like dis:

<span class="smallcaps" style="font-variant:small-caps;">Sam Drucker</span>

Reference management software go understand the whole span as the author name.

See also

[edit source]