Template:Shortcut: Difference between revisions

From Perplex City Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
! Shortcut<br />{{{1}}}
! Shortcut<br />{{{1}}}
|-
|-
|}<noinclude>
|}
 
<noinclude>
==Usage==
==Usage==
This template is primarily used on Wikipedia guideline and policy pages to show the shortest alias of a given page. For example, [[WP:V]] redirects to [[Wikipedia:Verification]]
''AH! I see! the link given is simply a redirect!  ok!  duh!''
 
This template is taken fFrom Wikipedia and is used to show the shortest alias of a given page. For example, [[WP:V]] redirects to [[Wikipedia:Verification]]
 
Usage is this:
 
in your main page, you place the fFollowing:
 
<nowiki>{{shortcut|[[XXX]]}}</nowiki>
 
Where XXX is the shortcut name you want to use.  XXX will then be a link.  Then you need to go to your new blank page XXX and create a redirect.  That is done like this:
 
<nowiki>#REDIRECT [[My Original Page With A Very Long Name]]</nowiki>


Please '''do not use''' this template on other templates, e.g. to state that the shortcut to [[Template:Foo]] is in fact <nowiki>{{Foo}}</nowiki>. There's no need to state the obvious like that, '''each''' template uses its own name as a shortcut, by default.
Then you may always use the shortened page name XXX as a valid page, and you will have a swanky little grey box on the side of your page pointing people towards that shortcut.




This text was stolen straight out of http://en.wikipedia.org/w/index.php?title=Template:Shortcut&action=edit -- I'll edit it fFor use if i can make it work.  so fFar, not working.  Hm, it doesnt terribly like the use of the syntax or something.  Looks like wikipedia uses {{{  }}} by default to identify shortcuts, and then there's a nice page which describes how that fFormats.  But the parsing seems to be pretty much a build thing.  i think.
</noinclude>
</noinclude>

Revision as of 20:15, 1 March 2006

Shortcut
{{{1}}}


Usage

AH! I see! the link given is simply a redirect! ok! duh!

This template is taken fFrom Wikipedia and is used to show the shortest alias of a given page. For example, WP:V redirects to Wikipedia:Verification

Usage is this:

in your main page, you place the fFollowing:

{{shortcut|[[XXX]]}}

Where XXX is the shortcut name you want to use. XXX will then be a link. Then you need to go to your new blank page XXX and create a redirect. That is done like this:

#REDIRECT [[My Original Page With A Very Long Name]]

Then you may always use the shortened page name XXX as a valid page, and you will have a swanky little grey box on the side of your page pointing people towards that shortcut.