Difference between revisions of "User:Lahwaacz"

From ArchWiki
Jump to navigation Jump to search
(Tasks split into User:Lahwaacz/Tasks)
m (notes moved into User:Lahwaacz/Notes)
Line 20: Line 20:
== List of discontinued pacman/AUR helpers ==
* [[Clyde]]
* [[TuPac]]
Not a pacman/AUR helper, but also discontinued:
* [[Archup]]
== Indenting multiline code blocks ==
MediaWiki does not support multiparagraph list items (and other complex scenarios):
* http://stackoverflow.com/questions/4994174/code-block-in-numbered-list-wiki-syntax
* https://bugzilla.wikimedia.org/show_bug.cgi?id=1115
* https://bugzilla.wikimedia.org/show_bug.cgi?id=1584
Basically every newline character breaks the list. As a result, multiline code blocks using [[Template:bc]] cannot be used inside lists and cannot be indented using colons, unless the content is escaped using <nowiki> tags. [[Template:hc]] breaks completely, because the template itself contains a line break -- this is another hack, need to find reference for the {{ic|The line break is needed, otherwise the wiki will generate extraneous paragraphs inside the 2nd pre block}} comment.
Another possible workaround is to use HTML-encoded characters, see [https://dansesacrale.wordpress.com/2010/07/14/mediawiki-multi-line-pre-within-list/].
Perhaps [https://www.mediawiki.org/wiki/Help:Magic_words#Miscellaneous #tag:pre] parser function could solve this? See [https://jlaska.wordpress.com/2010/10/14/embedding-mediawiki-templates-inside/#comment-287].
== Regex for replacing = codes ==
{{Warning|not tested and can be '''dangerous''', to be fixed in case it is needed in the future}}
regex (remember to select case-insensitive):
(\{\{ic)\|([a-z -_.]*)=([a-z -_.]*\}\})
substitution string:
== Interesting links ==
== Interesting links ==

Revision as of 21:27, 26 March 2014