Help:Categories and semantic fields: Difference between revisions
PopsiclePete (talk | contribs) No edit summary |
PopsiclePete (talk | contribs) No edit summary |
||
Line 33: | Line 33: | ||
**''Missiles'' | **''Missiles'' | ||
**''Others'' | **''Others'' | ||
Line 45: | Line 47: | ||
To make a completely invisible semantic tag, use the #set command: <pre>{{#set:fieldname=value}}</pre> | To make a completely invisible semantic tag, use the #set command: <pre>{{#set:fieldname=value}}</pre> | ||
==Semantic queries== | ==Semantic queries== | ||
Line 64: | Line 69: | ||
<pre>{{#ask: [[manufacturer::Douglas Aerospace]] |format=count}}</pre> | <pre>{{#ask: [[manufacturer::Douglas Aerospace]] |format=count}}</pre> | ||
{{#ask: [[manufacturer::Douglas Aerospace]] |format=count}} | {{#ask: [[manufacturer::Douglas Aerospace]] |format=count}} | ||
Here is another example, this time using '''two''' criterias; the first is the category of the article, the second is a semantic tag value. Also note the usage of <nowiki>{{PAGENAME}}</nowiki>. (the example result points to the Wing Commander III page). | |||
<pre>{{#ask: [[Category:Confederation Fighter Class Names]] [[Appears in WC Product::{{PAGENAME}}]] | format=category }}</pre> | |||
{{#ask: [[Category:Confederation Fighter Class Names]] [[Appears in WC Product::Wing Commander III: Heart of the Tiger]] | format=category }} | |||
--[[User:PopsiclePete|PopsiclePete]] 14:24, 23 January 2011 (CST) |
Revision as of 20:24, 23 January 2011
List of Categories that could have subcategories and Pete's thoughts on the categories in general:
- Bases and Installations - This should not have any subcategories, instead it's articles should be tagged by factions and type
- Behind the scenes (real life) - This should have the following subcategories
- Games
- Novels
- Other products
- Interviews
- Production personnel (bios of people who made the WC products)
- Books - Ok, I guess the LaFong thing does deserves it's own subcategory, but books should itself be a subcategory for Media
- Characters - This should not have any subcategories, instead it's articles should be tagged by races
- Fictional Characters - should be a category on it's own, not a subcategory of Characters
- Equipement - Make subcategories as needed.
- Factions - This one is a mess, pointing to sub-sub-sub-sub-categories. Scrap all that, and make subcategories for subfactions as needed, but only if the subcategory page contains information. For example, make the Terran Confederation article a Category page with the actual article in the top and the list of subfactions as subcategories at the bottom (i.e. the Belisarius Group).
- Fleet Organization - I guess we can leave that one be
- Kilrathi society and culture - Why not make this a subcategory list within the Kilrathi "Race" article ?
- Languages - This category should contain actual languages (+"slang") category-articles, which could then use any subcategory needed ("words", "Character sets", etc)
- Locations - What exactly is that ??? It only contains a subcategory for places within the Tiger's Claw... this should simply be put into the Tiger's Claw article instead ???
- Media
- Books should be ported here
- Magazines should be ported here
- Holovids should be ported here
- Periodicals should be ported here
- Infobursts, perhaps ???
- News bulletin - for those bulletin board news and Priv2 things
- Missions - It's fine the way it is now - the missions listed in there can't be from two different WC Products so using semantic tags here would be pointless.
- Ships - Another messy one. Scrap all the current subcategories. The ships articles should be tagged for faction(s), WC Product(s) they appear in, manufacturer(s), etc.
- Fighters
- Capital ships
- Non-combatant
- Weapons
- Guns
- Missiles
- Others
Semantic tags
To make a semantic tag:
[[fieldname:=value]]
This will also make "value" a clikable link to the wiki article of that name.
To make a semantic tag that will be shown but will not link to a wiki article, add a pipe and a space ("| ") after the value:
[[fieldname:=value| ]]
The pipe actually serves to show an alternate text, so you can use that to that purpose, too.
To make a completely invisible semantic tag, use the #set command:
{{#set:fieldname=value}}
Semantic queries
To make a semantic query, you use the "#ask command".
Examples:
{{#ask: [[manufacturer::Douglas Aerospace]] |format=ul}}
- Arrow Eclipse
- Arrow Guardian
- Arrow Scout
- F-103 Excalibur
- F-104 Bearcat
- F-27 Arrow V
- HF-66 Thunderbolt VII
- Hellcat V
{{#ask: [[manufacturer::Douglas Aerospace]] |format=list |sep=,_}}
Arrow Eclipse,_Arrow Guardian,_Arrow Scout,_F-103 Excalibur,_F-104 Bearcat,_F-27 Arrow V,_HF-66 Thunderbolt VII,_Hellcat V
{{#ask: [[manufacturer::Douglas Aerospace]] |format=category}}
{{#ask: [[manufacturer::Douglas Aerospace]] |format=table}}
Arrow Eclipse |
Arrow Guardian |
Arrow Scout |
F-103 Excalibur |
F-104 Bearcat |
F-27 Arrow V |
HF-66 Thunderbolt VII |
Hellcat V |
{{#ask: [[manufacturer::Douglas Aerospace]] |format=count}}
8
Here is another example, this time using two criterias; the first is the category of the article, the second is a semantic tag value. Also note the usage of {{PAGENAME}}. (the example result points to the Wing Commander III page).
{{#ask: [[Category:Confederation Fighter Class Names]] [[Appears in WC Product::{{PAGENAME}}]] | format=category }}
--PopsiclePete 14:24, 23 January 2011 (CST)