#Put URL in template and use to make hyperlink in page

7 messages · Page 1 of 1 (latest)

pulsar pawn
#

Text in page

Join the [{{Discord}} ABCDEF Discord server] and then ...

Template:Discord

https://notadiscordlink(.)gg/abcdef
<noinclude>The URL invite for the ABCDEF Discord server, update here to update everywhere!</noinclude>

Expected rendered result

Text "ABCDEF Discord server" hyperlink'd mid-sentence to the URL found in the template, as though I had entered [https://notadiscordlink(.)gg/abcdef ABCDEF Discord server] directly into the page.

Actual result:

Open square bracket followed by the literal URL. "Join the [https://notadiscordlink(.)gg/abcdef"
The rest of the paragraph's text then renders as though in a <pre> tag??

Obviously Discord invites have a tendency to be a bit transient, so having one place from which to update the link is ideal. Not sure what I'm doing wrong...

pearl kelp
#

ur problem is <noinclude> is on a new line, put it immediately after the url

pulsar pawn
#

wikitext is a strange being

#

okay that worked cool

#

Weird cos using it in the link= parameter of an image didn't cause any issues

pearl kelp
#

[[File:]] and internal links tolerate spanning multiple lines but external links dont