User:Ttenbergen: Difference between revisions

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


== changing mediawiki appearance ==
== changing mediawiki appearance ==
* See where all the mediawiki pages are editable: http://ccmdb.kuality.ca/index.php?uselang=qqx
* See where all the mediawiki pages are editable: http://ccmdb.kuality.ca/index.php?uselang=qqx
* to edit them: go to http://ccmdb.kuality.ca/index.php?title=MediaWiki:<name listed above>
* to edit them: go to the Mediawiki:<name listed above> page on this wiki
== Questions for Tina ==
see [[User:Ttenbergen/questions for tina]]


== quick edit test ==
== no width space ==
* &amp;#8203; puts a no width space between the following two xs: x&#8203;x
* which makes e.g. [[M:\]]&#8203;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 ==
* manual:
** <span class="info-tooltip">always<span class="tooltip-text">hover</span></span>
* [[:Template:Tooltip]]
** {{Tooltip|always|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 ==
{| class="wikitable" border="1" align="right" width="30%"
|| title 1
|-
|  | line | 1
|}
{| class="wikitable" border="1" align="right" width="30%"
|| title 2
|-
|  | line | 2
|}
 
== 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.
 
== job queue ==
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 ==
*abra-cah-dabrah?
e.g. <nowiki>{{CURRENTYEAR}}</nowiki> to get : {{CURRENTYEAR}}
 
see https://www.mediawiki.org/wiki/Help:Magic_words
== transcluding category... ==
<!-- {{:Category:Health Sciences Center Office}}-->
Doesn't work.


== transcluding subheadings... ==
== transcluding subheadings... ==
Line 21: 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 31: Line 69:
lowercase works so hopefully so do the others...
lowercase works so hopefully so do the others...
http://en.wikipedia.org/wiki/Help:Parser_function  
http://en.wikipedia.org/wiki/Help:Parser_function  
{{lc: TrY ThIs }}
*{{lc: TrY ThIs }}
{{#if: | yes | no}}
*{{#if: | yes | no}}
{{#expr: 1 and -1 }}
*{{#expr: 1 and -1 }}
{{#if: string | yes | no}}
*{{#if: string | yes | no}}


=== Transclusion vs Substitution ===
=== Transclusion vs Substitution ===
Line 41: Line 79:
* http://www.mediawiki.org/wiki/Manual:Substitution - e.g. <nowiki>{{subst:templatename}}</nowiki>
* http://www.mediawiki.org/wiki/Manual:Substitution - e.g. <nowiki>{{subst:templatename}}</nowiki>


== tree ==
== Testing collapsing ==
Something to do with the wiki:
<div class="toccolours mw-collapsible mw-collapsed" style="width:40em">
{{#tree:
  ...test content...
*cpd_testing
</div>
**include
***neuro_lib.php
***neuroQueries.sql
***neuroQueries_010.sql
**output
***<empty:  csv files written here>
**styles
***neurohsc.css
*getcpdoutput.php
*index.php
*reset_neurohsc_ls1.php
}}
 
== location table ==
Trish, you had asked for a [[Site and Location table]]... how about this:
 
=== tbl ===
{| class="wikitable sortable"
|-
!| program
!| site
!| ward
!| designation
!| Service Type
!| collection start date (includes all patients in the unit on this date)
!| division of ward (workload mgnt) date
!| service type change date
!| note
!| end date
 
|-
||Med||VIC||[[OVER]]||VIC_[[OVER]]|| [[CTU]] or [[NTU]] || 2007-May-09 || || || Not used. The collector review charts and put in S4 if under CTU service physician or N5,S5 or S3 if admitted under a VMU service physician. ||
|-
||Med||VIC||S4||VIC_S4|| [[CTU]] || 2009-Aug-01 ||  || || Change to a CTU ||
|-
||Med||VIC||S4||VIC_S4||[[NTU]]|| 2005-Oct-01 ||  || 2009-Aug-01 || || 2009-Jul-31
|-
||Med||VIC||N4/S3||VIC_N4/S3||[[NTU]]|| 2005-Oct-01 || || || N4 was labeled as S4 from 2005-Oct-01 to 2009-Jul-31 and was an NTU. It was collected on one laptop called N4/S3 long time ago.  Medical patients would overflow from south to north side of 4th floor.  [[Site and Location#Details for Vic N4/S3 |'''N4''']]  || 2009-Jul-31
|-
||Med||GRA|| N3||GRA_N3|| [[NTU]] || 2005-Jan-01 || || 2005-Jul-01 || was previously an NTU prior to our start collection date || 2005-Jun-30
|-
||Med||GRA|| [[Site and Location#Details for Grace W3 / E3 / S3 | '''W3''']]||GRA_W3|| [[NTU]] || 2005-Jan-01 || || || [[METU]]. We call it [[Site and Location#Details for Grace W3 / E3 / S3 | '''W3''']]. W3 & E3 are referred to as: 3 South (S3) at Grace. Includes the east and west corridors on the south side of 3rd floor ||
|-
||Med||GRA|| [[EMIP]]||GRA_[[EMIP]]|| [[CTU]] || 2010-Nov-01 || || || Not used. The collector reviews charts and put in location either N5 if under NTU service physcian or N3 if under CTU service physican||
|-
||Med||GRA|| [[OVER]]||GRA_[[OVER]]|| [[CTU]] || 2007-May-09 || || || this location is not used.  The collector reviews charts and put admit location as either N5 or N3.  This depends on the Physician the patient is admitted under while overflowing onto a non med service bed. || 
|}
 
 
 
=== notes on site and location ===
I'll need to edit [[:Template:Collection Location]] to add more properties, if that's the way to go.
 
Some stuff I need to figure out:
* how to encode work load levelling designations instead of physical locations
** make own article and template; template must link to actual collection location and have start and end dates; location article can contain legacy section to explain how long its name was used for real
* add (do these need to be on template or should they just be in article, or should they stay with e.g. [[Grace_Hospital_Contacts]] or [[GRA ICU Collection Guide]] or [[GRA Medicine Collection Guide]] or [[VIC Medicine Collection Guide]]:
** contact info (goes in own separate article that can be transcluded from the various locations)
** unit profile (kinds of patients etc a lot of that is currently in the local collection guides, at least for VIC/Grace)
* maybe add some "hasnotes" and "haslegacy" or so so that that much can show in the table, but link back to the article... would need a template to make it work.


Stuff that is figured out:
== Testing colours ==
* multiple dates (see [[GRA_N3]])
https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F
** can enter multiple, but mediawiki doesn't keep it as "tuples" so likely will need to split into different articles.
* [[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 12: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 : 2025 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