It is possible to customise using CSS or source code to make the number text as Supverscrit instead of normal text ?
Extension talk:NumerAlpha
Appearance
The extension works great. Thank you. However, I am trying to discover how I can create "inline" auto-numbering and this extension would work well for this if I could find a way to supress the the <br/> suffix that shows up with every <in />. Thanks!
solved with {{#counter:listcount}}
Can we customise it with CSS to remove the <br/> instead of using {{#counter:listcount}} ?
Prefer to use inline tag without the <br/> afterwards.
I almost can't imagine MediaWiki wouldn't have a solution for something so fundamental. It may be worth having a look at the Cite extension, which is another extension that needs to assign numbers sequentially, but has been rewritten to make it Parsoid-proof in the future.
Edit: I went ahead and created a task: https://phabricator.wikimedia.org/T337319
anyone else seeing the following error:
Notice: Undefined index: full level prefix in /opt/htdocs/mediawiki/extensions/NumerAlpha/NumerAlpha.class.php on line 266
where line 266 of NumerAlpha.class.php
is:
return htmlspecialchars( $list['full level prefix'] . $list[ 'prefix' ] . $counterValue . $list[ 'suffix' ] );
This works for me.
$fulL_level_prefix = (isset($list['full level prefix'])) ? $list['full level prefix'] : "";
$prefix = (isset($list['prefix'])) ? $list['prefix'] : "";
$suffix = (isset($list['suffix'])) ? $list['suffix'] : "";
return htmlspecialchars( $fulL_level_prefix . $prefix . $counterValue . $suffix);
I saw this warning also, and I +1 the fix for full level prefix
defaulting to an empty string (it’s the default value defined in extractListOptions
), but it’s not necessary to apply the same for prefix
and suffix
since the only calling functions are renderCounter
and render(Numeral|Alpha|Roman)Tag
and in both cases these other keys are provided.
I wrote a patch here, not exactly like proposed above, but similar: I defined the key 'full level prefix' when the functions are called.
I get the following error message with the newest Mediawiki beta:
Warning: Parameter 3 to ExtNumerAlpha::NumeralRender() expected to be a reference, value given in /var/www/mediawiki/includes/parser/Parser.php on line 3305
Changing
function AlphaRender($text,$argv,&$parser){
to
function AlphaRender($text,$argv,$parser){
and the other two alike solves this issue for me. Thanks for this extension!
This post was posted by Kghbln, but signed as Christoph Burgmer.
I have a simple semantic query such as
{{#ask: [[Category:Foo]] |?format=template |?template=orderedtable }}
where the template used the <in />
to enumerate the results.
Question is how does one "reset" the counter on the page so that the next inline query, say
{{#ask: [[Category:Bar]] |?format=template |?template=orderedtable }}
starts with "1". Thanks!
by using
<span style="display:none;visibility:hidden;">{{#counter:listcount|type=numeral|set=0}}</span> {{#ask: [[Category:Bar]] |?format=template |?template=orderedtable }}
and {{#counter:listcount}}
in the template called by SRF, the best I can get is for each list in the page to start at "2".
There are no older topics