Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

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|}}} | definition short  | {{{definition short|}}}                                                        }}<!--
 
-->{{#ifeq: {{{display|}}} | definition long  | {{{definition long|}}}                                                          }}<!--
 
-->{{#ifeq: {{{display|}}} | examples short    | {{{examples short|}}}                                                          }}<!--
 
-->{{#ifeq: {{{display|}}} | examples long    | {{{examples long|}}}                                                            }}<!--
 
 
-->{{#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|}}} | glossary category | [[:Category:{{{glossary category|}}}|{{{glossary category|}}}]]                 }}<!--
+
-->{{#ifeq: {{{display|}}} | taxonomy          | [[:Category:{{{taxonomy|}}}|{{{taxonomy|}}}]]                                   }}<!--
-->{{#ifeq: {{{display|}}} | property         | [[Property:{{{property|}}}|{{{property|}}}]]                                    }}<!--
+
-->{{#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:
 
}}
 
}}
  
<!-- Definition short -->
+
<!-- Glossary nav -->
{{#if: {{{definition short|}}} |
 
 
<tr>
 
<tr>
<th class="template-infobox-header" colspan="2">Definition (short)</th>
+
<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>
<tr>
 
<td class="template-infobox-info template-infobox-glossary template-infobox-glossary plainlinks" colspan="2">
 
{{{definition short}}}</td>
 
</tr>
 
}}
 
 
<!-- Definition long -->
 
{{#if: {{{definition long|}}} |
 
<tr>
 
<th class="template-infobox-header" colspan="2">Definition (long)</th>
 
</tr>
 
<tr>
 
<td class="template-infobox-info template-infobox-glossary plainlinks" colspan="2">
 
{{{definition long}}}</td>
 
</tr>
 
}}
 
 
<!-- List -->
 
{{#if: {{{list|}}} |
 
<tr>
 
<th class="template-infobox-header" colspan="2">List</th>
 
</tr>
 
<tr>
 
<td class="template-infobox-info template-infobox-glossary plainlinks" colspan="2">[[{{{list|}}}|{{{list}}}]]</td>
 
</tr>
 
}}
 
  
<!-- Property-->
+
<!-- Taxonomy -->
{{#if: {{{property|}}} |
+
{{#if: {{{taxonomy|}}} |
 
<tr>
 
<tr>
<th class="template-infobox-header" colspan="2">Property</th>
+
<th class="template-infobox-header" colspan="2">Taxonomy</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info template-infobox-glossary plainlinks" colspan="2">[[Property:{{{property|}}}|{{{property|}}}]]</td>
+
<td class="template-infobox-info glossary-row plainlinks" colspan="2">
 +
[[:Category:{{{taxonomy|}}}|{{{taxonomy|}}}]]</td>
 
</tr>
 
</tr>
 
}}
 
}}
  
<!-- Category -->
 
{{#if: {{{category|}}} |
 
<tr>
 
<th class="template-infobox-header" colspan="2">Category</th>
 
</tr>
 
<tr>
 
<td class="template-infobox-info template-infobox-glossary plainlinks" colspan="2">[[:Category:{{{category|}}}|{{{category|}}}]]</td>
 
</tr>
 
}}
 
  
<!-- Glossary category -->
+
<!-- Definition -->
{{#if: {{{glossary category|}}} |
+
{{#if: {{{definition|}}} |
 
<tr>
 
<tr>
<th class="template-infobox-header" colspan="2">Glossary category</th>
+
<th class="template-infobox-header" colspan="2">Definition</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info template-infobox-glossary plainlinks" colspan="2">[[:Category:{{{glossary category|}}}|{{{glossary category|}}}]]</td>
+
<td class="template-infobox-info glossary-row plainlinks" colspan="2">
 +
{{{definition}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
  
<!-- Examples short -->
+
<!-- Examples -->
{{#if: {{{examples short|}}} |
+
{{#if: {{{examples|}}} |
 
<tr>
 
<tr>
<th class="template-infobox-header" colspan="2">Examples (short)</th>
+
<th class="template-infobox-header" colspan="2">Examples</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info template-infobox-glossary plainlinks" colspan="2">
+
<td class="template-infobox-info glossary-row plainlinks" colspan="2">
{{{examples short}}}</td>
+
{{{examples}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
  
<!-- Examples long -->
+
<!-- Notes -->
{{#if: {{{examples long|}}} |
+
{{#if: {{{notes|}}} |
 
<tr>
 
<tr>
<th class="template-infobox-header" colspan="2">Examples (long)</th>
+
<th class="template-infobox-header" colspan="2">Notes</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td class="template-infobox-info template-infobox-glossary plainlinks" colspan="2">
+
<td class="template-infobox-info glossary-row plainlinks" colspan="2">
{{{examples long}}}</td>
+
{{{notes}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
  
<!-- Icons -->
 
{{#if: {{{list|}}} |
 
<tr>
 
<td class="template-infobox-icons" colspan="2"><!--
 
-->{{#if: {{{list|}}} | <div title="{{{list}}}" class="plainlinks template-infobox-icon template-infobox-glossary-icon svg-icon project-list-of-lists">[[{{{list|}}}|&nbsp;]]</div>}}
 
</td>
 
</tr>
 
}}
 
 
<!-- Template + edit links -->
 
<tr>
 
<td class="template-infobox-info template-infobox-glossary plainlinks" colspan="2"><small><em>[{{fullurl:Template:{{{name|}}}}} T], [{{fullurl:Template:{{{name|}}}|action=edit}} E]</em></small></td>
 
</tr>
 
 
</table>
 
</table>
 
}}<!-- end of display: box
 
}}<!-- end of display: box

Revision as of 06:57, 25 April 2020