Template:movinganchor

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
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}}}{{#if:{{{3|}}}|#{{{3}}}|}}|{{{2}}}{{#if:{{{3|}}}|#{{{3}}}|}}}}<noinclude>
+
{{#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 where anchor will be archived in the future.
    • current — The current page where anchor resides.
    • anchor — The section/anchor name. (Optional)

Example

Personal tools