Difference between revisions of "Template:KW"

From Project: Gorgon Wiki
Jump to: navigation, search
(Updated to include links.)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="display:inline-block; vertical-align:middle"><div style="display:table-row;">{{{1|kw}}},</div>&nbsp;</div>
+
[[:Category:Items/{{{1}}}|{{{1}}}]],  
 +
 
 
{{ #switch: {{FULLPAGENAME}}
 
{{ #switch: {{FULLPAGENAME}}
| {{ #if: {{{KW|1}}} | [[Category:Items/{{{kw}}}]] }}
+
| {{ #if: {{{1}}} | [[Category:Items/{{{1}}}]] }}
 
}}
 
}}
 
<noinclude>
 
<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 14:01, 7 August 2019

[[:Category:Items/{{{1}}}|{{{1}}}]],

[[Category:Items/{{{1}}}]]

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Syntax

{{KW|kw}}

Parameters

kw
Required. Must be a word. This word should be found in the Keywords section of the items json.

Description

Adds an Items/kw category to whatever page it is used on.

Notes

This template will be used in an upcoming revision of the item infobox.

Examples

The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name):

Disease example

{{KW|BottledItem}}
BottledItem,
The above text is transcluded from Template:KW/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:KW/doc. (View all subpages of this page.)