Fandom

Community Central

Need help re:template replacing links

Forum page

19,011pages on
this wiki
Add New Page
Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

This Forum has been archived

Visit the new Forums
Forums: Index General Discussion Need help re:template replacing links
Fandom'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 192 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?  Dchallofjustice  Talk  PR/SS  KR  JLU/DCUC  MH  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.  Dchallofjustice  Talk  PR/SS  KR  JLU/DCUC  MH  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)

Also on Fandom

Random Wiki