Lingua:Graphs: Difference between revisions
Jump to navigation
Jump to search
AdminIsidore (talk | contribs) |
AdminIsidore (talk | contribs) No edit summary |
||
Line 59: | Line 59: | ||
# Edit a glossary term page (e.g., [[Lingua:TestTerm]]). | # Edit a glossary term page (e.g., [[Lingua:TestTerm]]). | ||
# In the `Definition` parameter of `{{GlossaryEntry}}`, mention another term (e.g., "This term relates to Dictum and Scriptum"). | # In the `Definition` parameter of `{{GlossaryEntry}}`, mention another term (e.g., "This term relates to Dictum and Scriptum"). | ||
<syntaxhighlight lang="wikitext"> | |||
{{GlossaryEntry | |||
|Term=TestTerm | |||
|Definition=This is a test term mentioning Dictum and Scriptum. | |||
}} | |||
</syntaxhighlight> | |||
# Save and purge the page by appending `?action=purge` to the URL (e.g., [[Lingua:TestTerm?action=purge]]). | # Save and purge the page by appending `?action=purge` to the URL (e.g., [[Lingua:TestTerm?action=purge]]). | ||
# The graph will update to show an edge to the mentioned term (e.g., from [[Lingua:TestTerm]] to [[Lingua:Dictum]]). | # The graph will update to show an edge to the mentioned term (e.g., from [[Lingua:TestTerm]] to [[Lingua:Dictum]]). | ||
# To make connections bidirectional, ensure terms mention each other (e.g., add "TestTerm" to [[Lingua:Dictum]]’s definition). | # To make connections bidirectional, ensure terms mention each other (e.g., add "TestTerm" to [[Lingua:Dictum]]’s definition). | ||
<syntaxhighlight lang="wikitext"> | |||
{{GlossaryEntry | |||
|Term=Dictum | |||
|Definition=Dictum is the smallest unit of Actus within a Scriptum, enabling Fabricatio by an Artifex in AetherOS’s flux. Mentions TestTerm. | |||
}} | |||
</syntaxhighlight> | |||
== Interpreting the Graphs == | == Interpreting the Graphs == | ||
Line 74: | Line 86: | ||
* Check the browser console (F12 > Console) for "SMW API error details." | * Check the browser console (F12 > Console) for "SMW API error details." | ||
* Verify the SMW API is working by running: | * Verify the SMW API is working by running: | ||
<syntaxhighlight lang="bash"> | |||
curl "https://www.ooda.wiki/api.php?action=askargs&conditions=Category:Glossary%20Entries&printouts=Glossary-Term|Glossary-Definition¶meters=limit=50&format=json&formatversion=2" | curl "https://www.ooda.wiki/api.php?action=askargs&conditions=Category:Glossary%20Entries&printouts=Glossary-Term|Glossary-Definition¶meters=limit=50&format=json&formatversion=2" | ||
</syntaxhighlight> | |||
* Ensure the gadgets are enabled in [[Special:Preferences#mw-prefsection-gadgets]]. | * Ensure the gadgets are enabled in [[Special:Preferences#mw-prefsection-gadgets]]. | ||
* '''Graph Shows "No connections found"''': | * '''Graph Shows "No connections found"''': | ||
Line 83: | Line 95: | ||
* '''Labels Missing or Styling Incorrect''': | * '''Labels Missing or Styling Incorrect''': | ||
* Ensure [[MediaWiki:Common.css]] includes: | * Ensure [[MediaWiki:Common.css]] includes: | ||
<syntaxhighlight lang="css"> | |||
@font-face { | @font-face { | ||
font-family: "IBMPlexMono"; | font-family: "IBMPlexMono"; | ||
Line 101: | Line 113: | ||
font-family: "IBMPlexMono", "Courier New", monospace; | font-family: "IBMPlexMono", "Courier New", monospace; | ||
} | } | ||
</syntaxhighlight> | |||
* Purge [[MediaWiki:Common.css]] | * Purge [[MediaWiki:Common.css]] by appending `?action=purge` to the URL. | ||
* '''Graph Not Updating''': | * '''Graph Not Updating''': | ||
* Purge the affected page (e.g., [[Lingua:Dictum?action=purge]]). | * Purge the affected page (e.g., [[Lingua:Dictum?action=purge]]). | ||
* Run maintenance scripts (as admin): | * Run maintenance scripts (as admin): | ||
<syntaxhighlight lang="bash"> | |||
php maintenance/run.php runJobs | php maintenance/run.php runJobs | ||
php maintenance/run.php refreshLinks | php maintenance/run.php refreshLinks | ||
php extensions/SemanticMediaWiki/maintenance/rebuildData.php | php extensions/SemanticMediaWiki/maintenance/rebuildData.php | ||
</syntaxhighlight> | |||
* If issues persist, contact an admin with console errors and debug logs: | * If issues persist, contact an admin with console errors and debug logs: | ||
<syntaxhighlight lang="bash"> | |||
cat /var/www/mediawiki/debug.log | tail -n 50 | cat /var/www/mediawiki/debug.log | tail -n 50 | ||
</syntaxhighlight> | |||
== Enhancing the Glossary == | == Enhancing the Glossary == | ||
Line 122: | Line 134: | ||
# Edit those terms’ pages to add mentions of other terms in their `Glossary-Definition`. | # Edit those terms’ pages to add mentions of other terms in their `Glossary-Definition`. | ||
# Example: To connect [[Lingua:TestTerm]], edit its definition: | # Example: To connect [[Lingua:TestTerm]], edit its definition: | ||
<syntaxhighlight lang="wikitext"> | |||
< | |||
{{GlossaryEntry | {{GlossaryEntry | ||
|Term=TestTerm | |Term=TestTerm | ||
|Definition=This is a test term mentioning Dictum and Scriptum. | |Definition=This is a test term mentioning Dictum and Scriptum. | ||
}} | }} | ||
</ | </syntaxhighlight> | ||
# Purge the page and check [[Lingua:Global Glossary Graph]] for updated connections. | # Purge the page and check [[Lingua:Global Glossary Graph]] for updated connections. | ||
<includeonly>[[Category:Documentation]]</includeonly> | <includeonly>[[Category:Documentation]]</includeonly> |