User:Ttenbergen: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
m Text replacement - "[[Category: " to "[[Category:"
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
*Also see: [[p:Tina Tenbergen]]
*Also see: [[p:Tina Tenbergen]]


== Imagemap test ==
== changing mediawiki appearance ==
<imagemap>
* See where all the mediawiki pages are editable: http://ccmdb.kuality.ca/index.php?uselang=qqx
Image:CCMDB Description.png|alt=Description of CCMDB sources and outputs
* to edit them: go to the Mediawiki:<name listed above> page on this wiki
rect 9 104 141 128 [[Demographics]] 
== Questions for Tina ==
rect 9 132 141 155 [[ADT]] 
see [[User:Ttenbergen/questions for tina]]
rect 9 158 141 182 [[APACHE_II]] 
rect 9 188 141 211 [[Admit_Diagnosis]] 
rect 9 215 141 237 [[Category:Surgical_Procedure]]
rect 9 244 141 266 [[Acquired_Diagnosis_/_Complication]]
rect 8 269 142 293 [[Pharmacy_collection]]
rect 75 297 139 379 [[TISS]] 
 
rect 8 384 143 407 [[Projects]] 
rect 15 404 138 427 [[QA_Infection_CLI]] 
rect 14 428 137 452 [[QA_Infection_VAP]] 
 
rect 49 533 141 556 [[DSM_Lab_Extract]] 
rect 5 563 140 604 [[Validation_against_Patient_Registry_Data]] 
 
rect 168 209 228 366 [[Data_Collector]] 
rect 319 245 377 322 [[Data_Processor]]
rect 282 330 379 356 [[Data_Processing]] 
rect 438 245 496 322 [[Statistician]] 
rect 437 330 497 356 [[Statistical_Analysis]] 
 
rect 481 68 649 91 [[Postal_Code_field#Data_Use]]
rect 528 96 582 120 [[Age]] 
rect 538 137 664 161 [[LOS]] 
rect 670 137 766 160 [[Bed_occupancy]] 
rect 643 168 809 190 [[Re-admission]] 
rect 577 197 676 218 [[ARO]] 
rect 679 197 811 218 [[Ulcers_-_Decubitus_only]] 
rect 629 222 777 245 [[Central_Line_Count]] 
rect 596 250 715 272 [[Confusion_Assessment_Method]] 
rect 626 302 715 325 [[QA_Infection_CLI]] 
rect 717 320 814 343 [[QA_Infection_VAP]] 
rect 610 344 734 367 [[CRRT]] 
 
rect 679 374 790 437 [[Reporting]] 
rect 709 446 794 509 [[Statistical_Analysis]]
rect 468 547 562 641 [[Database_Request_Process]] 
rect 347 569 439 649 [[Critical_Care_Vital_Sign_Monitor]]
rect 233 535 318 615 [[Manitoba_Centre_for_Health_Policy]]
rect 238 624 337 646 [[Publications]]
</imagemap>


=== code ===
== no width space ==
<pre>
* &amp;#8203; puts a no width space between the following two xs: x&#8203;x
<img id="Image-Maps-Com-image-maps-2017-06-07-015434" src="https://ccmdb.kuality.ca/images/3/3d/CCMDB_Description.png" border="0" width="814" height="660" orgWidth="814" orgHeight="660" usemap="#image-maps-2017-06-07-015434" alt="" />
* which makes e.g. [[M:\]]&#8203;zzzz look continuous but stops the link
<map name="image-maps-2017-06-07-015434" id="ImageMapsCom-image-maps-2017-06-07-015434">
* when you paste that into an editor it makes you arrow over it twice to get past it, but explorer treats it correctly
<area  alt="" title="CCVSM" href="https://ccmdb.kuality.ca/index.php?title=Critical_Care_Vital_Sign_Monitor" shape="rect" coords="347,569,439,649" style="outline:none;" target="_self"    />
<area  alt="Manitoba Centre for Health Poiicy" title="MCHP" href="https://ccmdb.kuality.ca/index.php?title=Manitoba_Centre_for_Health_Policy" shape="rect" coords="233,535,318,615" style="outline:none;" target="_self"    />
<area  alt="Central Line Infection Project" title="CLI" href="https://ccmdb.kuality.ca/index.php?title=QA_Infection_CLI" shape="rect" coords="15,404,138,427" style="outline:none;" target="_self"    />
<area  alt="Ventilator Associated Pneumonia" title="VAP" href="https://ccmdb.kuality.ca/index.php?title=QA_Infection_VAP" shape="rect" coords="14,428,137,452" style="outline:none;" target="_self"    />
<area  alt="DSM Labs Extract" title="DSM Labs Extract" href="https://ccmdb.kuality.ca/index.php?title=DSM_Lab_Extract" shape="rect" coords="49,533,141,556" style="outline:none;" target="_self"    />
<area  alt="Publications" title="Publications" href="https://ccmdb.kuality.ca/index.php?title=Publications" shape="rect" coords="238,624,337,646" style="outline:none;" target="_self"    />
<area  alt="TISS" title="TISS" href="https://ccmdb.kuality.ca/index.php?title=TISS" shape="rect" coords="75,297,139,379" style="outline:none;" target="_self"    />
<area  alt="APACHE II" title="APACHE II" href="https://ccmdb.kuality.ca/index.php?title=APACHE_II" shape="rect" coords="9,158,141,182" style="outline:none;" target="_self"    />
<area  alt="Antibiotic Resistant Organisms" title="ARO" href="https://ccmdb.kuality.ca/index.php?title=ARO" shape="rect" coords="577,197,676,218" style="outline:none;" target="_self"    />
<area  alt="Age" title="Age" href="https://ccmdb.kuality.ca/index.php?title=Age" shape="rect" coords="528,96,582,120" style="outline:none;" target="_self"    />
<area  alt="Length of Stay" title="LOS" href="https://ccmdb.kuality.ca/index.php?title=LOS" shape="rect" coords="538,137,664,161" style="outline:none;" target="_self"    />
<area  alt="Pharmacy" title="Pharmacy" href="https://ccmdb.kuality.ca/index.php?title=Pharmacy_collection" shape="rect" coords="8,269,142,293" style="outline:none;" target="_self"    />
<area  alt="Demographics" title="Demographics" href="https://ccmdb.kuality.ca/index.php?title=Demographics" shape="rect" coords="8,104,142,128" style="outline:none;" target="_self"    />
<area  alt="Admit Discharge Transfer" title="ADT" href="https://ccmdb.kuality.ca/index.php?title=ADT" shape="rect" coords="9,132,141,155" style="outline:none;" target="_self"    />
<area  alt="Diagnosis" title="Diagnosis" href="https://ccmdb.kuality.ca/index.php?title=Admit_Diagnosis" shape="rect" coords="6,188,143,211" style="outline:none;" target="_self"    />
<area  alt="Complications" title="Complications" href="https://ccmdb.kuality.ca/index.php?title=Acquired_Diagnosis_/_Complication" shape="rect" coords="10,244,143,266" style="outline:none;" target="_self"    />
<area  alt="Procedures" title="Procedures" href="https://ccmdb.kuality.ca/index.php?title=Category:Surgical_Procedure" shape="rect" coords="10,215,140,237" style="outline:none;" target="_self"    />
<area  alt="Statistical Analysis" title="Statistical Analysis" href="https://ccmdb.kuality.ca/index.php?title=Statistical_Analysis" shape="rect" coords="437,330,497,356" style="outline:none;" target="_self"    />
<area  alt="Data Processing" title="Data Processing" href="https://ccmdb.kuality.ca/index.php?title=Data_Processing" shape="rect" coords="282,330,379,356" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Data_Processor" shape="rect" coords="319,245,377,322" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Statistician" shape="rect" coords="438,245,496,322" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Data_Collector" shape="rect" coords="168,209,228,366" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Reporting" shape="rect" coords="679,374,790,437" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Statistical_Analysis" shape="rect" coords="709,446,794,509" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Database_Request_Process" shape="rect" coords="468,547,562,641" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Validation_against_Patient_Registry_Data" shape="rect" coords="5,563,140,604" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Ulcers_-_Decubitus_only" shape="rect" coords="679,197,811,218" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Re-admission" shape="rect" coords="643,168,809,190" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Bed_occupancy" shape="rect" coords="670,137,766,160" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Postal_Code_field#Data_Use" shape="rect" coords="481,68,649,91" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Central_Line_Count" shape="rect" coords="629,222,777,245" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Confusion_Assessment_Method" shape="rect" coords="596,250,715,272" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=QA_Infection_CLI" shape="rect" coords="626,302,715,325" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=QA_Infection_VAP" shape="rect" coords="717,320,814,343" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=CRRT" shape="rect" coords="610,344,734,367" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://ccmdb.kuality.ca/index.php?title=Projects" shape="rect" coords="8,384,143,407" style="outline:none;" target="_self"    />
<area shape="rect" coords="812,658,814,660" alt="Image Map" style="outline:none;" title="Image Map" href="http://www.image-maps.com/index.php?aff=mapped_users_0" />
</map>


</pre>
== hover ==
* manual:
** <span class="info-tooltip">always<span class="tooltip-text">hover</span></span>
* [[:Template:Tooltip]]
** {{Tooltip|always|hover}}


== changing mediawiki appearance ==
== SMW stuff ==
* See where all the mediawiki pages are editable: http://ccmdb.kuality.ca/index.php?uselang=qqx
full text search link
* to edit them: go to http://ccmdb.kuality.ca/index.php?title=MediaWiki:<name listed above>
https://ccmdb.kuality.ca/index.php?title=Special%3AAsk&q=%5B%5BCategory%3AICD10+Diagnosis%5D%5D%0D%0A%5B%5B%7E%7Epneumothorax%5D%5D&po=&eq=yes&p%5Bformat%5D=broadtable&sort_num=&order_num=ASC&p%5Blimit%5D=500&p%5Boffset%5D=&p%5Blink%5D=all&p%5Bsort%5D=&p%5Bheaders%5D=show&p%5Bmainlabel%5D=&p%5Bintro%5D=&p%5Boutro%5D=&p%5Bsearchlabel%5D=...+further+results&p%5Bdefault%5D=&p%5Bclass%5D=sortable+wikitable+smwtable&p%5Bsep%5D=&eq=yes


== table side by side vs right justified ==
== table side by side vs right justified ==
Line 111: Line 36:
== ReplaceText ==
== ReplaceText ==
[[Special:ReplaceText]]
[[Special:ReplaceText]]
Can use [https://en.wikipedia.org/wiki/Regular_expression regExps] if you check '''use regular expressions''' such as <nowiki>[[Category: ?TISS76 ?]]</nowiki> to allow spaces or not.
Can use [https://en.wikipedia.org/wiki/Regular_expression regExps] if you check '''use regular expressions''' such as <nowiki>[[Category:?TISS76 ?]]</nowiki> to allow spaces or not.


== job queue ==
== job queue ==
http://ccmdb.kuality.ca/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm
http://ccmdb.kuality.ca/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm
== Cargo holds ==
{{#cargo_query:
tables=Reports
|fields=_pageName=Data Element
|where=DataDependencies HOLDS 'Age'
}}


== Magic words ==
== Magic words ==
Line 127: Line 59:
== wiki testing, syntax and tricks ==
== wiki testing, syntax and tricks ==
* Transclusion of an article: <nowiki>{{:articlename}}</nowiki>
* Transclusion of an article: <nowiki>{{:articlename}}</nowiki>
* emailing lists: [mailto:dccc@hsc.mb.ca email the CC data collectors] (see also [[:Category:Critical Care Data Collectors]])
* emailing lists: [mailto:dccc@hsc.mb.ca email the CC data collectors] (see also [[p:Category:Critical Care Data Collectors]])
* sorted table: see [[Drugs Collected]]
* sorted table: see [[Drugs Collected]]
* file/UNC linking doesn't work because browsers disallow it as unsafe
* file/UNC linking doesn't work because browsers disallow it as unsafe
Line 141: Line 73:
*{{#expr: 1 and -1 }}
*{{#expr: 1 and -1 }}
*{{#if: string | yes | no}}
*{{#if: string | yes | no}}
=== Viki ===
As from Cindy Cicalese:
[{{fullurl:VIKI}}?page={{FULLPAGENAMEE}} Graph This Page]


=== Transclusion vs Substitution ===
=== Transclusion vs Substitution ===
Line 153: Line 81:
== Testing collapsing ==
== Testing collapsing ==
<div class="toccolours mw-collapsible mw-collapsed" style="width:40em">
<div class="toccolours mw-collapsible mw-collapsed" style="width:40em">
  {{ #viki:pageTitles={{FULLPAGENAME}} }}
  ...test content...
</div>
</div>
== Testing colours ==
https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F
* [[ICD10|<span style="color:#8806CE">foo</span>]] "french violet" for followed links
* [[ICD10|<span style="color:#00BFFF">foo</span>]] "capri" for unlikely contrast

Latest revision as of 11:11, 30 July 2025

changing mediawiki appearance

Questions for Tina

see User:Ttenbergen/questions for tina

no width space

  • &#8203; puts a no width space between the following two xs: x​x
  • which makes e.g. M:\​zzzz look continuous but stops the link
  • when you paste that into an editor it makes you arrow over it twice to get past it, but explorer treats it correctly

hover

SMW stuff

full text search link https://ccmdb.kuality.ca/index.php?title=Special%3AAsk&q=%5B%5BCategory%3AICD10+Diagnosis%5D%5D%0D%0A%5B%5B%7E%7Epneumothorax%5D%5D&po=&eq=yes&p%5Bformat%5D=broadtable&sort_num=&order_num=ASC&p%5Blimit%5D=500&p%5Boffset%5D=&p%5Blink%5D=all&p%5Bsort%5D=&p%5Bheaders%5D=show&p%5Bmainlabel%5D=&p%5Bintro%5D=&p%5Boutro%5D=&p%5Bsearchlabel%5D=...+further+results&p%5Bdefault%5D=&p%5Bclass%5D=sortable+wikitable+smwtable&p%5Bsep%5D=&eq=yes

table side by side vs right justified

title 1
line | 1
title 2
line | 2

ReplaceText

Special:ReplaceText Can use regExps if you check use regular expressions such as [[Category:?TISS76 ?]] to allow spaces or not.

job queue

http://ccmdb.kuality.ca/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm

Cargo holds

Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HOLDS 'Age' ORDER BY `mw_cargo__Reports`.`_pageID`,`_pageName` LIMIT 100' at line 1

Function: CargoSQLQuery::run Query: SELECT `mw_cargo__Reports`.`_pageID` AS `cargo_backlink_page_id_Reports`,`_pageName` AS `Data Element` FROM `mw_cargo__Reports` WHERE DataDependencies HOLDS 'Age' ORDER BY `mw_cargo__Reports`.`_pageID`,`_pageName` LIMIT 100

Magic words

e.g. {{CURRENTYEAR}} to get : 2026 see https://www.mediawiki.org/wiki/Help:Magic_words

transcluding subheadings...

Doesn't work, sucks in whole article

wiki testing, syntax and tricks

Parser Functions

lowercase works so hopefully so do the others... http://en.wikipedia.org/wiki/Help:Parser_function

  • try this
  • no
  • 1
  • yes

Transclusion vs Substitution

Transclusion is calling content from a page or template, substitution is copying it.

Testing collapsing

...test content...

Testing colours

https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F

  • foo "french violet" for followed links
  • foo "capri" for unlikely contrast