Template:Keyword: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#cargo_query:tables=Glossary|fields=term,definition|where=term HOLDS '{{{1}}}'|format=template|template=Tt}}</includeonly><noinclude>{{clear}}{{doc}}</noinclude>
<includeonly>{{#cargo_query:tables=Glossary,Glossary__term|join on=Glossary._ID=Glossary__term._rowID|fields=term,definition|where=term HOLDS '{{{1}}}'|format=template|template=Tt}}</includeonly><noinclude>{{clear}}{{doc}}</noinclude>

Revision as of 16:45, 15 August 2021

A template which fetches a definition for a given term from our Glossary and displays it on mouse-over.

Example

plain text:

{{keyword|f-shiki}} is used in your {{keyword|B&Bs|term=B&B}} to implement {{keyword|abare}} as a type of {{keyword|okizeme}} which involves {{keyword|yomi}}.

renders:

Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'HOLDS 'f-shiki' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIM...' at line 1

Function: CargoSQLQuery::run Query: SELECT `cargo__Glossary`.`_pageID` AS `cargo_backlink_page_id_Glossary`,`term` AS `term`,`definition` AS `definition` FROM `cargo__Glossary` LEFT OUTER JOIN `cargo__Glossary__term` ON ((`cargo__Glossary`.`_ID`=`cargo__Glossary__term`.`_rowID`)) WHERE term HOLDS 'f-shiki' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIMIT 100

is used in your
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'HOLDS 'B&Bs' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIMIT 100' at line 1

Function: CargoSQLQuery::run Query: SELECT `cargo__Glossary`.`_pageID` AS `cargo_backlink_page_id_Glossary`,`term` AS `term`,`definition` AS `definition` FROM `cargo__Glossary` LEFT OUTER JOIN `cargo__Glossary__term` ON ((`cargo__Glossary`.`_ID`=`cargo__Glossary__term`.`_rowID`)) WHERE term HOLDS 'B&Bs' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIMIT 100

to implement
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'HOLDS 'abare' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIMIT...' at line 1

Function: CargoSQLQuery::run Query: SELECT `cargo__Glossary`.`_pageID` AS `cargo_backlink_page_id_Glossary`,`term` AS `term`,`definition` AS `definition` FROM `cargo__Glossary` LEFT OUTER JOIN `cargo__Glossary__term` ON ((`cargo__Glossary`.`_ID`=`cargo__Glossary__term`.`_rowID`)) WHERE term HOLDS 'abare' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIMIT 100

as a type of
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'HOLDS 'okizeme' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIM...' at line 1

Function: CargoSQLQuery::run Query: SELECT `cargo__Glossary`.`_pageID` AS `cargo_backlink_page_id_Glossary`,`term` AS `term`,`definition` AS `definition` FROM `cargo__Glossary` LEFT OUTER JOIN `cargo__Glossary__term` ON ((`cargo__Glossary`.`_ID`=`cargo__Glossary__term`.`_rowID`)) WHERE term HOLDS 'okizeme' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIMIT 100

which involves
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'HOLDS 'yomi' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIMIT 100' at line 1

Function: CargoSQLQuery::run Query: SELECT `cargo__Glossary`.`_pageID` AS `cargo_backlink_page_id_Glossary`,`term` AS `term`,`definition` AS `definition` FROM `cargo__Glossary` LEFT OUTER JOIN `cargo__Glossary__term` ON ((`cargo__Glossary`.`_ID`=`cargo__Glossary__term`.`_rowID`)) WHERE term HOLDS 'yomi' ORDER BY `cargo__Glossary`.`_pageID`,`term`,`definition` LIMIT 100

.