Πρότυπο:Fix PAGENAME bug

From protonation
Jump to navigation Jump to search


Template properties [edit]
Template: Movie
Required extensions
{{
i
}} Template documentation [edit]


Page titles containing certain characters, such as apostrophes ' or asterisks *, may produce unexpected results (e.g. in Facebook meta tags) when handled with magic words such as {{PAGENAME}}.[1]

This template uses text replace to restore HTML-escaped strings to their originals.

Example

When shared in Facebook, page title of Carla's Song page appears as Carla's Song.

By using this template:

{{fix PAGENAME bug|Carla's Song}}

we get:

Carla's Song

See also

References