Atomic Redirect

From igeek2
Jump to navigation Jump to search

Normally a redirect is just that #Redirect [[Main Page]] would make a page redirect you to the Main Page (making the source page an alias for the target page).

Well, I want something more powerful... so I created my Atomic Redirect.

If you create a page: Atom:Income_Inequality with the contents:

{{DEFAULTSORT:Income Inequality, Atom}}
< noinclude>
{{#set:Redirect=[[Income_inequality,_vanishing_middle_class,_and_other_scams|Income Inequality]]}}
[[Category:Terms]]
< /noinclude>

It did a few things:

  1. The {{#set:Redirect=[[Income_inequality,_vanishing_middle_class,_and_other_scams|Income Inequality]]}} creates a link that shows as [Income Inequality[ and links to a page named [Income_inequality,_vanishing_middle_class,_and_other_scams]
  2. If you use {{Show List 3col|[[Category:Terms]]}} it runs each return item though a filter that will substitute my link (atomic redirect) for the list item.
  3. What this does is allow me to write an article like this, that has multiple things "Income Inequality", "Vanishing Middle Class" can each show as a result elsewhere -- but direct the user to the correct compound article.
  4. DEFATULTSORT does what it always does... but since this would show up under "A's" for "Atom:Income Inequality" in search results. This fixes that to the proper position, as if it was named "Income Inequality".


File:GeekPirate.small.png


🔗 More[edit source]


Template:Show Categories2