Wikia

Community Central

Need help re:template replacing links

86,602pages on
this wiki

Forum page

This Forum has been archived

Visit the new Forums
Forums: Index General Discussion Need help re:template replacing links
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 595 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


Hello. I'm admin for www.dchallofjustice.wikia.com

I need a template that condenses (for example) "[[Superman (JLU)|Superman]]" to something like "{{JLU|Superman}}". eliminating double-typing.

Can anyone help? {{SUBST:User:Dchallofjustice/Sig|16:12,8/10/2012}} 16:12, August 10, 2012 (UTC)


At w:c:dchallofjustice:Template:JLU enter

[[{{{1}}} (JLU)|{{{1}}}]]

Then you can access it as {{JLU|<Superman>}}


A more generalized version could be w:c:dchallofjustice:Template:disambiguated

[[{{{1}}} ({{{2}}})|{{{1}}}]]

Then you could access it as {{disambiguated|<Superman>|<JLU>}}

-- 70.24.247.242 06:21, August 11, 2012 (UTC)

Many thanks. I appreciate the help. {{SUBST:User:Dchallofjustice/Sig|17:14,8/22/2012}}
There is also the Pipe trick: [[Superman (JLU)|]] automatically produces [[Superman (JLU)|Superman]] when the page is saved. - Tjcool007 (Talk) 15:20, August 24, 2012 (UTC)
Advertisement | Your ad here

Around Wikia's network

Random Wiki