Difference between revisions of "Template:Glossary"
From PCGamingWiki, the wiki about fixing PC games
m (fixed syntax) |
(Changes to template, added classes, removed icon, edit links, added glossary nav bar) |
||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
-->{{#ifeq: {{{display|}}} | abbr | [[{{{name|}}}|<abbr title="{{{definition short|}}}" >{{{name|}}}</abbr>]] }}<!-- | -->{{#ifeq: {{{display|}}} | abbr | [[{{{name|}}}|<abbr title="{{{definition short|}}}" >{{{name|}}}</abbr>]] }}<!-- | ||
− | |||
− | |||
− | |||
− | |||
-->{{#ifeq: {{{display|}}} | image | {{{image|}}} }}<!-- | -->{{#ifeq: {{{display|}}} | image | {{{image|}}} }}<!-- | ||
-->{{#ifeq: {{{display|}}} | article | [[{{{article|}}}]] }}<!-- | -->{{#ifeq: {{{display|}}} | article | [[{{{article|}}}]] }}<!-- | ||
-->{{#ifeq: {{{display|}}} | list | [[{{{list|}}}]] }}<!-- | -->{{#ifeq: {{{display|}}} | list | [[{{{list|}}}]] }}<!-- | ||
+ | -->{{#ifeq: {{{display|}}} | cargo | [[Special:CargoTables/{{{cargo|}}}|{{{cargo|}}}]] }}<!-- | ||
-->{{#ifeq: {{{display|}}} | category | [[:Category:{{{category|}}}|{{{category|}}}]] }}<!-- | -->{{#ifeq: {{{display|}}} | category | [[:Category:{{{category|}}}|{{{category|}}}]] }}<!-- | ||
− | -->{{#ifeq: {{{display|}}} | | + | -->{{#ifeq: {{{display|}}} | taxonomy | [[:Category:{{{taxonomy|}}}|{{{taxonomy|}}}]] }}<!-- |
− | -->{{#ifeq: {{{display|}}} | | + | -->{{#ifeq: {{{display|}}} | definition | {{{definition|}}} }}<!-- |
− | --><!-- | + | -->{{#ifeq: {{{display|}}} | examples | {{{examples|}}} }}<!-- |
+ | -->{{#ifeq: {{{display|}}} | notes | {{{notes|}}} }}<!-- | ||
+ | --><!-- | ||
Line 23: | Line 22: | ||
-->{{#ifeq: {{{display|}}} | box | | -->{{#ifeq: {{{display|}}} | box | | ||
− | <table class="vertical-navbox template-infobox" id="infobox-non-game"> | + | <table class="vertical-navbox template-infobox glossary-table" id="infobox-non-game"> |
<caption class="template-infobox-title">{{{name|}}}</caption> | <caption class="template-infobox-title">{{{name|}}}</caption> | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
Line 31: | Line 30: | ||
}} | }} | ||
− | <!-- | + | <!-- Glossary nav --> |
− | |||
<tr> | <tr> | ||
− | < | + | <td class="glossary-navigation" colspan="2"> |
+ | <ul><!-- | ||
+ | -->{{#if: {{{article|}}} | <li>[[{{{article|}}}|Article]]}}<!-- | ||
+ | -->{{#if: {{{list|}}} | <li>[[{{{list|}}}|List]] }}<!-- | ||
+ | -->{{#if: {{{category|}}} | <li>[[:Category:{{{category|}}}|Category]]}}<!-- | ||
+ | -->{{#if: {{{glossary|}}} | <li>[[Glossary:{{{glossary|}}}|Glossary]]}}<!-- | ||
+ | -->{{#if: {{{cargo|}}} | <li>[[{{{cargo|}}}|Cargo]] }} | ||
+ | </ul> | ||
+ | </td> | ||
</tr> | </tr> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <!-- | + | <!-- Taxonomy --> |
− | {{#if: {{{ | + | {{#if: {{{taxonomy|}}} | |
<tr> | <tr> | ||
− | <th class="template-infobox-header" colspan="2"> | + | <th class="template-infobox-header" colspan="2">Taxonomy</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td class="template-infobox-info | + | <td class="template-infobox-info glossary-row plainlinks" colspan="2"> |
+ | [[:Category:{{{taxonomy|}}}|{{{taxonomy|}}}]]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <!-- | + | <!-- Definition --> |
− | {{#if: {{{ | + | {{#if: {{{definition|}}} | |
<tr> | <tr> | ||
− | <th class="template-infobox-header" colspan="2"> | + | <th class="template-infobox-header" colspan="2">Definition</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td class="template-infobox-info | + | <td class="template-infobox-info glossary-row plainlinks" colspan="2"> |
+ | {{{definition}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
− | <!-- Examples | + | <!-- Examples --> |
− | {{#if: {{{examples | + | {{#if: {{{examples|}}} | |
<tr> | <tr> | ||
− | <th class="template-infobox-header" colspan="2">Examples | + | <th class="template-infobox-header" colspan="2">Examples</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td class="template-infobox-info | + | <td class="template-infobox-info glossary-row plainlinks" colspan="2"> |
− | {{{examples | + | {{{examples}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
− | <!-- | + | <!-- Notes --> |
− | {{#if: {{{ | + | {{#if: {{{notes|}}} | |
<tr> | <tr> | ||
− | <th class="template-infobox-header" colspan="2"> | + | <th class="template-infobox-header" colspan="2">Notes</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td class="template-infobox-info | + | <td class="template-infobox-info glossary-row plainlinks" colspan="2"> |
− | {{{ | + | {{{notes}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</table> | </table> | ||
}}<!-- end of display: box | }}<!-- end of display: box |