20,137
edits
Changes
Creating new template as an experiment
<div style="display:inline-block; vertical-align:middle"><div style="display:table-row;">{{{1|kw}}},</div><div style="display:table-cell"> </div><div style="display:table-cell; vertical-align:middle">[[{{{1|Item name}}}]]</div></div></div>
{{ #switch: {{FULLPAGENAME}}
| {{ #if: {{{kw|}}} | [[Category:Items/{{{kw}}}]] }}
}}
|}<noinclude>
{{clear}}__NOTOC__
==Syntax==
<pre>
{{kw|kw}}
}}
</pre>
==Parameters==
; kw
: Required. Must be a word. This word should be found in the Keywords section of the items json.
==Description==
Returns the input keyword, and adds a matching 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 ====
<pre>
{{kw|BottledItem}}
</pre>
{{kw|BottledItem}}
[[Category:Formatting templates|TOWN infobox]]
</noinclude>
{{ #switch: {{FULLPAGENAME}}
| {{ #if: {{{kw|}}} | [[Category:Items/{{{kw}}}]] }}
}}
|}<noinclude>
{{clear}}__NOTOC__
==Syntax==
<pre>
{{kw|kw}}
}}
</pre>
==Parameters==
; kw
: Required. Must be a word. This word should be found in the Keywords section of the items json.
==Description==
Returns the input keyword, and adds a matching 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 ====
<pre>
{{kw|BottledItem}}
</pre>
{{kw|BottledItem}}
[[Category:Formatting templates|TOWN infobox]]
</noinclude>