Difference between revisions of "Template:Category"

From Dwarf Fortress Wiki
Jump to: navigation, search
m (testing syntax)
m (clean up)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>This is a test template to reformat [[Special:Categories|Category]] tags so that they properly segment existing categories into version specific areas using the page's namespace, and to properly organize them alphabetically by page name <s>unless specified differently by the editor</s> (removed this functionality as it was not working properly when category was assigned through another template).<br>
+
<noinclude>{{documentation}}
 
+
'''Usage:'''<pre><nowiki>{{Category|Category Name}}</nowiki></pre>
+
 
+
 
[[Category:Version templates|Category]]
 
[[Category:Version templates|Category]]
</noinclude>
+
</noinclude><includeonly>{{#if:{{{ns|}}}|[[Category:{{ucfirst:{{{ns}}}}}:{{ucfirst:{{{1}}}}}|{{{2|{{PAGENAME}}}}}]]|{{#switch: {{NAMESPACE}}
 
+
|23a
<!--
+
|40d
[[Category:{{NAMESPACE}}:{{{1}}}|{{#if:{{{2}}}|{{{2}}}|{{PAGENAME}}}}]]
+
|v0.31
 
+
|v0.34
[[Category:{{NAMESPACE}}:{{{1}}}|{{{2|{{PAGENAME}}}}}]]
+
|DF2014
/-->
+
|Masterwork=[[Category:{{NAMESPACE}}:{{ucfirst:{{{1}}}}}|{{{2|{{PAGENAME}}}}}]]
 
+
|Template=
<includeonly>
+
|#default=[[Category:{{ucfirst:{{{1}}}}}|{{{2|{{PAGENAME}}}}}]]
[[Category:{{NAMESPACE}}:{{{1}}}|{{{2|{{PAGENAME}}}}}]]
+
}}}}</includeonly>
<!--[[Category:{{NAMESPACE}}:{{{1}}}|{{PAGENAME}}]]/-->
+
</includeonly>
+

Latest revision as of 02:28, 24 August 2014

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Advertisement