Actions

Template

Stripref

From NEC Retro

Revision as of 11:47, 28 December 2021 by Black Squirrel (talk | contribs) (Created page with "<includeonly>{{#replace:{{{1}}}|aaa|aaa}}</includeonly><noinclude>This template removes references from a string. ==Usage== <pre>{{stripref|123{{ref|http://sega.com}}}}</pre>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template removes references from a string.

Usage

{{stripref|123{{ref|http://sega.com}}}}

returns:

123


{{stripref|123{{magref|egm|1|1}}}}

returns:

123Template:Magref


{{stripref|123{{fileref|bums.pdf|page=3}}}}

returns:

123


{{stripref|123 456{{fileref|GoldenAxe2 MD EU Box.jpg}}}}

returns:

123 456


{{stripref|123{{intref|bums}}}}

returns:

123

Warning: Don't repeatedly use for the same string, because each usage is listed in the references section. Instead, store the string to a variable and use that.