User:Ttenbergen: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
No edit summary
m Text replacement - "[[Category: " to "[[Category:"
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
see [[User:Ttenbergen/questions for tina]]
see [[User:Ttenbergen/questions for tina]]


== no width space fun ==
== no width space ==
x(`<nowiki>&#8203;</nowiki>`)x
* &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 ==
== SMW stuff ==
Line 28: 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 ==

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