By doing this, we will be able to generate an easier to style HTML for the readiness markers.
The problem with using readiness markers from inside a wiki page is that we have to style the marker with absolute positioning to make it be visible on the side
Using absolute positioning in our case "works" but has some issues — see #18. A better way to do it would be to get the HTML markup right from the PHP and have the HTML closer to the <body>.
Objective of this task is to improve the HTML render responsible of the Readiness markers by leveraging existing Semantic MediaWiki properties, but from PHP itself.
By doing this, we will be able to generate an easier to style HTML for the readiness markers.
The problem with using readiness markers from inside a wiki page is that we have to style the marker with absolute positioning to make it be visible on the side
Using absolute positioning in our case "works" but has some issues — see #18. A better way to do it would be to get the HTML markup right from the PHP and have the HTML closer to the
<body>
.Objective of this task is to improve the HTML render responsible of the Readiness markers by leveraging existing Semantic MediaWiki properties, but from PHP itself.
Path to a solution
Look which hooks to use, OutputPageParserOutput, ArticleAfterFetchContent?SkinTemplate
str_replace($readiness_state_string, ' ', '_');
as is. (/)Expected output:
Notes
Here is a PoC that reads readiness state from an instance of
SkinTemplate
.Then, use the global $wgParser (in a hook?), and mimick/use what’s done in http://docs.webplatform.org/wiki/Property:State and http://docs.webplatform.org/wiki/Template:Flags
Related mailing-list messages
Reference
SMW\MediaWiki\Search\Search::searchTitle
extensions/SemanticMediaWiki/includes/api/ApiAsk.php
includes/OutputPage.php
includes/SkinTemplate.php
includes/api/ApiBase.php
includes/api/ApiMain.php
includes/WebRequest.php