Template:movinganchor
From Homestar Runner Wiki
(Difference between revisions)
m (→Usage: Another reword. This doesn't create a link, it just returns the text to be used in a link/piped link.) |
m (Looks like that {{#if:}} didn't work out so well. Eh, a blank anchor never hurt anybody, right?) |
||
Line 1: | Line 1: | ||
- | {{#ifexist:{{{1}}}|{{{1}}} | + | {{#ifexist:{{{1}}}|{{{1}}}#{{{3|}}}|{{{2}}}#{{{3|}}}}}<noinclude> |
---- | ---- | ||
=== Usage === | === Usage === |
Revision as of 23:40, 20 January 2011
{{{2}}}#
Usage
Links to current, specific sections on pages like Talk:Main Page will break after that content has been archived as usually done. In order for these links to work for future readers, create the link using this template rather than hard-coding it.
Syntax
{{movinganchor|archive|current|anchor}}
archive
— The page whereanchor
will be archived in the future.current
— The current page whereanchor
resides.anchor
— The section/anchor name. (Optional)
Example
[[{{{movinganchor|HRWiki:Main Page Talk Archive 40|Talk:Main Page|Wiki image}}]]
→ HRWiki:Main Page Talk Archive 40#Wiki image