User:Ttenbergen: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
mNo edit summary
m Text replacement - "[[Category: " to "[[Category:"
 
(250 intermediate revisions by 2 users not shown)
Line 1: Line 1:
*Also see: [[Tina Tenbergen]]
*Also see: [[p:Tina Tenbergen]]
== FP test ==
 
<!--        BANNER ACROSS TOP OF PAGE        -->
== changing mediawiki appearance ==
{| id="mp-topbanner" style="width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;"
* See where all the mediawiki pages are editable: http://ccmdb.kuality.ca/index.php?uselang=qqx
| style="width:61%; color:#000;" |
* to edit them: go to the Mediawiki:<name listed above> page on this wiki
<!--        "WELCOME TO WIKIPEDIA" AND ARTICLE COUNT        -->
== Questions for Tina ==
{| style="width:280px; border:none; background:none;"
see [[User:Ttenbergen/questions for tina]]
| style="width:280px; text-align:center; white-space:nowrap; color:#000;" |
 
<div style="font-size:162%; border:none; margin:0; padding:.1em; color:#000;">Welcome to [[Wikipedia]],</div>
== no width space ==
<div style="top:+0.2em; font-size:95%;">the [[free content|free]] [[encyclopedia]] that [[Wikipedia:Introduction|anyone&nbsp;can&nbsp;edit]].</div>
* &amp;#8203; puts a no width space between the following two xs: x&#8203;x
<div id="articlecount" style="font-size:85%;">[[Special:Statistics|{{NUMBEROFARTICLES}}]] articles in [[English language|English]]</div>
* 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
<!--        PORTAL LIST ON RIGHT-HAND SIDE        -->
 
| style="width:13%; font-size:95%;" |
== hover ==
* [[Portal:Arts|Arts]]
* manual:
* [[Portal:Biography|Biography]]
** <span class="info-tooltip">always<span class="tooltip-text">hover</span></span>
* [[Portal:Geography|Geography]]
* [[:Template:Tooltip]]
| style="width:13%; font-size:95%;" |
** {{Tooltip|always|hover}}
* [[Portal:History|History]]
 
* [[Portal:Mathematics|Mathematics]]
== SMW stuff ==
* [[Portal:Science|Science]]
full text search link
| style="width:13%; font-size:95%;" |
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
* [[Portal:Society|Society]]
 
* [[Portal:Technology|Technology]]
== table side by side vs right justified ==
* '''[[Portal:Contents/Portals|All&nbsp;portals]]'''
{| class="wikitable" border="1" align="right" width="30%"
|}
|| title 1
<!--        MAIN PANEL        -->
{| id="mp-upper" style="width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;"
<!--        LEFT PANEL - MANUAL NEWS        -->
| class="MainPageBG" style="width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;" |
{| id="mp-left" style="vertical-align:top; background:#f5fffa;"
! style="padding:2px;" | <h2 id="mp-tfa-h2" style="margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;">
<!--        LEFT PANEL TOP HEADER -->
boo?
</h2>
|-
|-
| style="color:#000;" | <div id="mp-tfa" style="padding:2px 5px">
| | line | 1
<!--        LEFT PANEL CONTENT -->
hoo?
</div>
|-
! style="padding:2px;" | <h2 id="mp-dyk-h2" style="margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;">
<!--        LEFT PANEL SECOND HEADER    -->
Did you know...</h2>
|-
| style="color:#000; padding:2px 5px 5px;" | <div id="mp-dyk">
<!--        LEFT PANEL SECOND CONTENT    -->
dichaknowwhat?
</div>
|}
|}
| style="border:1px solid transparent;" |
{| class="wikitable" border="1" align="right" width="30%"
| class="MainPageBG" style="width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top;"|
|| title 2
{| id="mp-right" style="width:100%; vertical-align:top; background:#f5faff;"
! style="padding:2px;" | <h2 id="mp-itn-h2" style="margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">
<!--        RIGHT PANEL FIRST HEADER    -->
Recent Changes...</h2>
|-
| style="color:#000; padding:2px 5px;" | <div id="mp-itn">
<!--        RIGHT PANEL FIRST CONTENT    -->
recent changes tags
</div>
|-
! style="padding:2px;" | <h2 id="mp-otd-h2" style="margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">
<!--        RIGHT PANEL SECOND HEADER-->
2nd header </h2>
|-
|-
| style="color:#000; padding:2px 5px 5px;" | <div id="mp-otd">
| | line | 2
<!--        RIGHT PANEL SECOND CONTENT    -->
second content...
</div>
|}
|}
|}
<!-- __NOTOC____NOEDITSECTION__ -->


== 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.


== Parser Testing ==
== job queue ==
{{#if: string | yes | no}}
http://ccmdb.kuality.ca/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm


== Wiki Table Generator ==
== Cargo holds ==
A wiki table generator can be found at [http://de.wikipedia.org/wiki/Wikipedia:Textverarbeitung/EXCEL-Tabellenumwandlung here].
{{#cargo_query:
It is also available at  [[:Image:Wiki_Tables.xls]].
tables=Reports
|fields=_pageName=Data Element
|where=DataDependencies HOLDS 'Age'
}}


==Comments on the wiki==
== Magic words ==
To put comments into the markup that will not show up in the wiki article, use the syntax below:
e.g. <nowiki>{{CURRENTYEAR}}</nowiki> to get : {{CURRENTYEAR}}
<nowiki><!-- *************************************************************
see https://www.mediawiki.org/wiki/Help:Magic_words
This is the comment
************************************************************* -->


<!-- This is a comment, too -->
== transcluding subheadings... ==
</nowiki>
<!-- {{:Requested_CCMDB_changes_for_the_next_version#Bug_Fixes}}-->


==File Server Links==
Doesn't work, sucks in whole article
=== UNC Template Test ===
{{UNC|\\sbghnwfs0102\NSSVOL1\shared\ICU_DATA_COLLECTION\Vacation_Planner|Vacation Planner}}


=== Reg_Server_UNC Test ===
== wiki testing, syntax and tricks ==
{{Reg Server UNC|Vacation_Planner|Vacation Planner }}
* Transclusion of an article: <nowiki>{{:articlename}}</nowiki>
* 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]]
* file/UNC linking doesn't work because browsers disallow it as unsafe
* comments in wiki articles that won't show in normal view, only edit:
** <nowiki><!-- This is a comment, too --></nowiki>
* table generator: [[:File:Wiki_Tables.xls]], originally from [http://de.wikipedia.org/wiki/Wikipedia:Textverarbeitung/EXCEL-Tabellenumwandlung here]


==Non-Image file links to the wiki==
===Parser Functions===
* <nowiki>[[</nowiki> '''Media''':Greensheet_ACCOUNTING_TAB_PDA_&_CCMDB.pdf | this link<nowiki>]]</nowiki>
lowercase works so hopefully so do the others...
becomes
http://en.wikipedia.org/wiki/Help:Parser_function
* [[Media:Greensheet_ACCOUNTING_TAB_PDA_&_CCMDB.pdf | this link]]
*{{lc: TrY ThIs }}
*{{#if: | yes | no}}
*{{#expr: 1 and -1 }}
*{{#if: string | yes | no}}


Advantage of linking this way is that the page
=== Transclusion vs Substitution ===
* [[Image:Greensheet_ACCOUNTING_TAB_PDA_%26_CCMDB.pdf]]
Transclusion is ''calling'' content from a page or template, substitution is copying it.
will list the linking page, whereas a full external linking (e.g. [http://ltc.umanitoba.ca/wikis/ccmdb/images/c/c1/Greensheet_FORM.pdf  '''Green Sheet''']) is not tracked. This allows tracking, version control, maintenance and clean-up of uploaded files.
* http://www.mediawiki.org/wiki/Transclusion  - e.g. <nowiki>{{templatename}}</nowiki>
* http://www.mediawiki.org/wiki/Manual:Substitution - e.g. <nowiki>{{subst:templatename}}</nowiki>


==Parser Functions==
== Testing collapsing ==
lowercase works so hopefully so do the others...
<div class="toccolours mw-collapsible mw-collapsed" style="width:40em">
http://en.wikipedia.org/wiki/Help:Parser_function
...test content...
{{lc: TrY ThIs }}
</div>
{{#if: | yes | no}}
 
{{#expr: 1 and -1 }}
== 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 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