More actions
dustloop>Wakeup720 mNo edit summary |
dustloop>Wakeup720 Adding a bit more functionality. Now, if there is no universal term, and if the rootpage/game specifier does not match an existing game-specific entry, the tooltip will direct them to the Glossary page |
||
| Line 3: | Line 3: | ||
-->{{#cargo_query:tables=Glossary<!-- | -->{{#cargo_query:tables=Glossary<!-- | ||
--> |fields=definition<!-- | --> |fields=definition<!-- | ||
--> |where=term="{{{term|{{{1}}}}}}" and gameSpecifier HOLDS "{{{gameSpecifier|{{ | --> |where=term="{{{term|{{{1}}}}}}" and gameSpecifier HOLDS "{{{gameSpecifier|{{SUBPAGENAME}}}}}"|<!-- | ||
--> |no html<!-- | --> |no html<!-- | ||
--> |default=<!-- | --> |default=<!-- | ||
--> {{#cargo_query:tables=Glossary<!-- | --> {{#cargo_query:tables=Glossary,Glossary__gameSpecifier<!-- | ||
--> |join on=Glossary._ID = Glossary__gameSpecifier._rowID<!-- | |||
--> |fields=definition<!-- | --> |fields=definition<!-- | ||
--> |where=term="{{{term|{{{1}}}}}}"<!-- | --> |where=term="{{{term|{{{1}}}}}}" and Glossary__gameSpecifier._value IS NULL<!-- | ||
--> |default=This keyword does not have an entry in the [[Glossary|Glossary]]<!-- | |||
--> }}<!-- | --> }}<!-- | ||
--> }}|<!-- | --> }}|<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><noinclude>{{clear}}{{doc}}</noinclude> | --></includeonly><noinclude>{{clear}}{{doc}}</noinclude> | ||