Wikia

WoWWiki

Talk:Template

102,281pages on
this wiki

Back to page

How do I search for articles containing a specific template? --Umbra 09:42, 18 July 2006 (EDT)

Open the template page, then click "What links here" in the toolbox on the left. --Mikk 15:31, 18 July 2006 (EDT)

New enchant template? Edit

So I was bored a couple days ago, and noticing that the entries for Enchants was rather plain, I made a template for them. However, I didn't create a Template: page for it or change any of the enchant pages yet, because I wasn't sure if it should be made as a main template or a sub, or if others thought that the enchant pages needed it. The template itself is located at User:Ceilí/Sandbox and I have an example page at User:Ceilí/test. Comments, suggestions? --Ceilí 00:37, 20 July 2006 (EDT)

I personally think it looks good. Though I suspect it'd be your job to implement it in already-existing pages :-) --Mikk 14:23, 20 July 2006 (EDT)

Updates reflecting new MediaWiki version forthcoming? Edit

Since the MediaWiki version was updated recently, can we expect this page to be updated to reflect any changes to templates? For example, these two subsections of "Tips and tricks" could probably use a review (I don't know enough about our wiki version to do it myself): "Categories in templates" and "Automatic subtemplate selection." Tuhljin 17:37, 30 September 2006 (EDT)

Yup. It's on my to-do list.   --Mikk (T) 04:13, 1 October 2006 (EDT)
Done. I expanded a bit on template parameters, yanked warnings about stuff not working in mw 1.5. Some touchups here and there.   --Mikk (T) 20:19, 6 October 2006 (EDT)

Topic titleEdit

Is there any way to include the title of the page itself into a template? For example, if you put the edit on Example, then Template:Pagetitlehere puts in the name of Example. I want to know this because it'd make the editing of disambiguation pages really fast (like in: * You want to know more about the US Server, go to [[Server:Template:Pagetitlehere US]]

I hope you understand what I mean :| --Tinkerer 14:42, 6 October 2006 (EDT)

EDIT: Read it through better and saw the bit about {{PAGENAME}}. Can it be used already? --Tinkerer 14:45, 6 October 2006 (EDT)
Yes. It even worked in your question since you didn't put >nowiki> tags around it. However the problem is that the name of the server pages isn't e.g. "Bloodhoof", it's "Server:Bloodhoof", so you're pretty much stumped in getting the server name out of there. If there had been a a namespace called "Server:", it'd have been another thing, but they're just regular pages in the main namespace that happen to have a colon in them.   --Mikk (T) 19:58, 6 October 2006 (EDT)
Hrrm. I think I found something to make it work, then :> --Tinkerer 03:48, 7 October 2006 (EDT)

URLs & spaces in templates Edit

I'm attempting to create a template that builds a link to the Warcraft Armory site. The links are getting mangled though if the parameter includes a white space (common in guildnames). See [1] for an example. Look to the Sleepless Knights link. I created a new template called Usertable/row04 based on row02. Is there a way to substitue the whitespace for anther character?

If you substitute %20 (percent sign, twenty) for the white space the link works properly. However, it displays as percent-twenty on the page instead of using a space.. You can also use & nbsp; (ampersand-n-b-s-p-semicolon, no space between the ampersand and the N), which makes it display properly on the page, but the link doesn't work. Sorry, those are the only tricks I could think of involving spaces. --Tuhljin 17:23, 13 March 2007 (EDT)

Avoiding categories Edit

Is there any way of including a template, but not the categories? For example, User:Kaso/LootBoxTest appears in various categories because it's a test page for the templates but it shouldn't really be in those cats. PhilHibbs 16:03, 17 June 2007 (UTC)

There is a way because it was done on Template:Creatures before I removed it (there was no need for the category at all on that template). I'm not sure how it was implemented though. Here's the template before I changed it creature template. There are many templates that would benefit from this option. -- Mordsith - (talk|contr) 16:06, 24 February 2009 (UTC)

What is & How to use {{#if:...}}? Edit

I've seen something like Contentcontentcontent in some template pages. Is {{#if}} a special template? And how should I use it? --Wyvernoid 13:06, 7 November 2007 (UTC)

It is a Parser Function. --Sky (t · c · w) 23:54, 7 November 2007 (UTC)

Say whaaaat? Edit

Ok great, this page has told me how to link templates, how to show people they exist, how to write them... but how do I apply *insert long sophisticated WoWwiki code here* to a {{X}} command? ~Don't say Retnoob, say Peregrine 02:01, 23 November 2007 (UTC)

Around Wikia's network

Random Wiki