Module:Redirect: Difference between revisions

m
multiline comment syntax is ignored by syntaxhighlight extension
(update comment)
m (multiline comment syntax is ignored by syntaxhighlight extension)
Line 1:
-- Given a single page name determines what page it redirects to and returns the target page name, or the
--[=[
Given-- a singlepassed page name determineswhen whatnot page,a ifredirect. any,The itpassed redirectspage toname andcan returnsbe thegiven targetas pageplain name,text or theas a page link.
passed-- Returns page name ifas notplain atext, redirect.or Thewhen passedthe page namebracket canparameter beis given as plain text or, as a page link. TheReturns an
is-- returnederror ifmessage when page does not exist or the redirect target cannot be determined for some reason.
returned page name is as plain text, or when the bracket parameter is given, as a page link. An error message
is returned if page does not exist or the redirect target cannot be determined for some reason.
 
-- Thus these are roughly the same:
-- [[{{#invoke:redirect|main|redirect-page-name}}]] and {{#invoke:redirect|main|redirect-page-name|bracket=yes}}
--]=]
 
p={}
Anonymous user