Content deleted Content added
→Why am I confused?: new section |
No edit summary |
||
Line 11:
:<code>---- This module accepts the name of a single page. It determines if the page is a redirect; if so it looks up the page, extracts the target, and returns the target name as text.</code>
So, why, he asks, are there two parameters? In the example you gave both <code>main</code> and <code>WP:AFC</code>. I tried your module with the redirect page from the WT:VPT conversation:
Line 20 ⟶ 21:
—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 17:12, 18 March 2013 (UTC)
:It occurred to me to also wonder if the first parameter could be empty:
::<code><nowiki>[[{{#invoke:redirect||RNAS_Kirkwall}}]]</nowiki></code> → [[{{#invoke:redirect||RNAS_Kirkwall}}]]
:Apparently not. So what about meaningless text?
::<code><nowiki>[[{{#invoke:redirect|sdjadrsgjlk|RNAS_Kirkwall}}]]</nowiki></code> → [[{{#invoke:redirect|sdjadrsgjlk|RNAS_Kirkwall}}]]
:Again, apparently not. So what about the name of a real article?
::<code><nowiki>[[{{#invoke:redirect|UP Aerospace|RNAS_Kirkwall}}]]</nowiki></code> → [[{{#invoke:redirect|UP Aerospace|RNAS_Kirkwall}}]]
:Nope. Is "main" some sort of secret word?
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 17:34, 18 March 2013 (UTC)
|