User:Ttenbergen: Difference between revisions
Ttenbergen (talk | contribs) mNo edit summary |
Ttenbergen (talk | contribs) m Text replacement - "[[Category: " to "[[Category:" |
||
(34 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== 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 | * to edit them: go to the Mediawiki:<name listed above> page on this wiki | ||
== 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 == | |||
* manual: | |||
** <span class="info-tooltip">always<span class="tooltip-text">hover</span></span> | |||
* [[:Template:Tooltip]] | |||
** {{Tooltip|always|hover}} | |||
== SMW stuff == | == SMW stuff == | ||
Line 68: | 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 98: | Line 73: | ||
*{{#expr: 1 and -1 }} | *{{#expr: 1 and -1 }} | ||
*{{#if: string | yes | no}} | *{{#if: string | yes | no}} | ||
=== Transclusion vs Substitution === | === Transclusion vs Substitution === | ||
Line 110: | 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"> | ||
...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 12:11, 30 July 2025
- Also see: p:Tina Tenbergen
changing mediawiki appearance
- See where all the mediawiki pages are editable: http://ccmdb.kuality.ca/index.php?uselang=qqx
- to edit them: go to the Mediawiki:<name listed above> page on this wiki
Questions for Tina
see User:Ttenbergen/questions for tina
no width space
- ​ puts a no width space between the following two xs: xx
- 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
- manual:
- alwayshover
- Template:Tooltip
- alwayshover
SMW stuff
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
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
- Transclusion of an article: {{:articlename}}
- emailing lists: 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:
- <!-- This is a comment, too -->
- table generator: File:Wiki_Tables.xls, originally from here
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.
- http://www.mediawiki.org/wiki/Transclusion - e.g. {{templatename}}
- http://www.mediawiki.org/wiki/Manual:Substitution - e.g. {{subst:templatename}}
Testing collapsing
...test content...