Community Central
Community Central
No edit summary
No edit summary
Line 34: Line 34:
   
 
::I saw them in WoWwiki http://www.wowwiki.com/Template:Npcbox and sorry I still don't get what's going on. I read the article but it's so vague. [[User:Dem0n Hunter|Dem0n Hunter]] 22:23, April 20, 2012 (UTC)
 
::I saw them in WoWwiki http://www.wowwiki.com/Template:Npcbox and sorry I still don't get what's going on. I read the article but it's so vague. [[User:Dem0n Hunter|Dem0n Hunter]] 22:23, April 20, 2012 (UTC)
  +
  +
:::The special notation tells the Semantic Media Wiki part of the wiki to store extra information with the page where the template is used. In the example given it associates pages where the template is used with specific NPC titles (like "Mining Supplies") or NPC gender (female/male) so the various pages can be listed based on those properties.
  +
:::WoWWiki isn't a great example of SMW usage, because although it sets lots of properties, there are very few examples of where SMW features are actually used.
  +
:::Maybe someone who has used SMW more deeply can explain more clearly. --&nbsp;[[User:Fandyllic|<span style="border-bottom:1px dotted; cursor:help;" title="Who?">Fandyllic</span>]]<small> ([[User talk:Fandyllic|talk]] &middot; [[Special:Contributions/Fandyllic|contr]])</small> 20 Apr 2012 4:38 PM Pacific

Revision as of 00:38, 21 April 2012

Forums: Index Support Requests What is this function?
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.
Archive
Note: This topic has been unedited for 4381 days. It is considered archived - the discussion is over. Information in this thread may be out of date. Do not add to unless it really needs a response.


So I've come accross a few fuctions that I can get my head around them and I can't find them by googling.

[[Title::{{{title}}}]] and

<ref></ref> and [[Gender::{{{sex|}}}]]

What does the double colon in general mean?

thanks in advance

Dem0n Hunter 09:32, April 20, 2012 (UTC)

Those are used in templates. For example, if [[File:{{imagename}}]] is included in a template, then it means that you can insert {{templatename|filename}} to insert a picture Sam Wang 09:50, April 20, 2012 (UTC)
No no I mean the double colon part. Sorry if it was vague but I asked at the end. and do you know what <ref> is? I googled and it didn't find anything Dem0n Hunter 09:56, April 20, 2012 (UTC)
I'm not really sure of the double colon (it might be just a page name with two colons). For the <ref> & </ref> tags, they mean "reference" Sam Wang 11:30, April 20, 2012 (UTC)
Yea, what confuses me is that I know we have [[File:filename]] for images but I don't know where [[Title::]] or [[Gender::]] came from which is weird.Dem0n Hunter 12:40, April 20, 2012 (UTC)

(Reset indent) Double colons are often used with various features of the Semantic MediaWiki extension. If you give a link to where you've seen them, I could tell you if it's indeed SMW that utilizes them there. Sovq 14:33, April 20, 2012 (UTC)

That looks like code for a semantic template design. In SMW-wikis, [[Gender::{{{sex|}}}]] means that, for a specific page that uses our template, the Attribute:Gender is set with whatever is given with the "sex" parameter of the template call. Read up more on smw:Help:Semantic templates.--PedroM 17:13, April 20, 2012 (UTC)

Also, Help:Cite.--PedroM 21:51, April 20, 2012 (UTC)
I saw them in WoWwiki http://www.wowwiki.com/Template:Npcbox and sorry I still don't get what's going on. I read the article but it's so vague. Dem0n Hunter 22:23, April 20, 2012 (UTC)
The special notation tells the Semantic Media Wiki part of the wiki to store extra information with the page where the template is used. In the example given it associates pages where the template is used with specific NPC titles (like "Mining Supplies") or NPC gender (female/male) so the various pages can be listed based on those properties.
WoWWiki isn't a great example of SMW usage, because although it sets lots of properties, there are very few examples of where SMW features are actually used.
Maybe someone who has used SMW more deeply can explain more clearly. -- Fandyllic (talk · contr) 20 Apr 2012 4:38 PM Pacific