Spr1ggs test: Difference between revisions

From [STAGING] Destiny Wiki
Jump to navigation Jump to search
(#kick/jaydr Whiplash Live in 5)
 
No edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Testing new extensions
Testing new extensions
=== Popups ===
https://www.mediawiki.org/wiki/Extension:Popups
Displays page and reference previews when hovering over a link to an article or respectively to a reference. The former consists of summaries of an article's content, the latter shows the full content of the reference.
:[[Soy-Ups]]
:[[Huffdaddy]]
<pre style="color: red">
NOTE: broken templates or other unnecessary info in bio/top of page will also show up in pop-up preview
</pre>
=== MissedPages ===
The MissedPages extension tracks every time a site visitor tries to go to a wiki page that doesn't exist, and gives site editors a easy-to-use form with which to track the most popular missed pages and also to redirect these to existing pages
https://www.mediawiki.org/wiki/Extension:MissedPages
[[test]]
https://wiki.omniliberal.dev/view/Special:MissedPages
<pre style="color: red">NOTE: works as expected, needs admin for edit</pre>
=== SpamBlacklist ===
prevents edits that contain URLs whose domains match regular expression patterns defined in specified files or wiki pages and registration by users using specified email addresses.
https://www.mediawiki.org/wiki/Extension:SpamBlacklist
(link to test if blocked https://tetr.io/ )
<pre style="color: red">NOTE: works as expected, needs admin for edit</pre>
=== EmbedVideo ===
https://www.mediawiki.org/wiki/Extension:EmbedVideo_(fork)
{{#ev:youtube|https://www.youtube.com/watch?v=Euq7uTeYCP0|200px|right| '''Painstiny LULW'''}}
{{#ev:twitch|https://www.twitch.tv/xqc|200px|left| '''juicer live stream'''}}
{{#ev:soundcloud|https://soundcloud.com/10o3bolit/comfyee|150x150px|center| '''comfYEE'''}}
<youtube> https://www.youtube.com/watch?v=80BwqQQY31w}} </youtube>
{|class="mw-collapsible mw-collapsed wikitable"
! |...embed video in collapsible table
|-
|<youtube>https://youtu.be/iN9-7wLVUgg?t=27s</youtube>
|-
|let
|-
|them
|-
|eat
|-
|cake
|-
|}
{| class="wikitable"
|-
|<youtube>https://www.youtube.com/watch?v=tJjhObngcxI</youtube>
|-
|im
|-
|begging
|-
|you
|-
|}
{{#ev:kick|https://kick.com/video/89c2450b-b301-4133-860a-267d424d1760
|200px|left| '''Cenk Debate'''}}
-not surprising but noted
<pre style="color: red">
NOTE: video timestamps/clips may not work on embed, embed window size/alignment with:
{{#ev=|||}} parser. 150px+ for usability
</pre>
=== Template Data ===
<templatedata>
{
    "description": "Label unsigned comments in a conversation.",
    "params": {
        "user": {
            "label": "User's name",
            "type": "wiki-user-name",
            "required": true,
            "description": "User name of person who forgot to sign their comment.",
            "aliases": ["1"]
        },
        "date": {
            "label": "Date",
            "suggested": true,
            "description": {
                "en": "Timestamp of when the comment was posted, in YYYY-MM-DD format."
            },
            "aliases": ["2"],
            "autovalue": "{{subst:#time:Y-m-d}}"
        },
        "year": {
            "label": "Year",
            "type": "number"
        },
        "month": {
            "label": "Month",
            "inherits": "year"
        },
        "day": {
            "label": "Day",
            "inherits": "year"
        },
        "comment": {
            "required": false
        }
    },
    "sets": [
        {
            "label": "Date",
            "params": ["year", "month", "day"]
        }
    ],
    "maps": {
        "ExampleConsumer": {
            "foo": "user",
            "bar": ["year", "month", "day"],
            "quux": [
                "date",
                ["day", "month"],
                ["month", "year"],
                "year"
            ]
        }
    }
}
</templatedata>
<pre style="color: red">
NOTE: works as expected.
</pre>
=== Parser functions ===
https://workingwithmediawiki.com/book/chapter11.html
https://portability.fandom.com/wiki/Parser_function
Whereas a tag extension is expected to take unprocessed text and return HTML to the browser, a parser function can 'interact' with other wiki elements in the page. For example, the output of a parser function could be used as a template parameter or in the construction of a link.
syntax: {{ #functionname: param1 | param2 | param3 }}
{{#if:{{{height|}}}|The height is {{{height|}}}.|No height entered.}}
Seasons:
{{#switch: {{{Season|}}} | Summer = How nice, it's summer! | Winter = Brr, it's winter! | It's some other season! }}
{{#titleparts: *Popups/*MissedPages/*SpamBlacklist/*EmbedVideo/*ParserFunctions | | 5}}
{{#ifexpr: 1 < 0 | yes | no }}
{{#if: not empty=yes | yes | no }}
{{#if:  | yes | no }}
{{#if:  | yes | <pre style="color: red">no</pre> }}
<pre style="color: red">
NOTE: works as expected. *not sure if it solves issues Kizmut had.
</pre>
=== Category Tree ===
The CategoryTree extension provides a dynamic view of the wiki's category structure as a tree. It uses AJAX to load parts of the tree on demand.
:::*<categorytree mode="pages">DGG_Chat</categorytree>
;<categorytree mode="pages">Person</categorytree>
<pre style="color: red">
NOTE: works as expected.
</pre>
=== SimpleToolTip ===
The SimpleTooltip extension adds support for basic tooltips. It uses the Tooltipster Library to do so.
https://www.mediawiki.org/wiki/Extension:SimpleTooltip_(Universal-Omega)
the is a test for the {{#tip-text: tooltip | obamna}}
{{#tip-text: Destiny| Steven Kenneth Bonnell the Second}} is my {{#tip-text: bestfriend.| He don't know you lil bro. }}
{{#tip-text: <pre style="color: green">Destiny</pre>| Steven Kenneth Bonnell the Second}} is my {{#tip-text: bestfriend.| He don't know you lil bro. }}
<pre style="color: red">
NOTE: color text issues when paired with tooltip.
NOTE: tooltip function displays after saving.
Page preview during editing does not show the tooltip alt text until published.
</pre>
<span title="LULW"><span style="color: green">'''Obamna'''</pre></span>
^fixes color issue, but not as visually appealing help/tip pop up
(works already on the live wiki with no extension)

Latest revision as of 02:31, 3 February 2024

Testing new extensions

Popups

https://www.mediawiki.org/wiki/Extension:Popups

Displays page and reference previews when hovering over a link to an article or respectively to a reference. The former consists of summaries of an article's content, the latter shows the full content of the reference.

Soy-Ups
Huffdaddy
NOTE: broken templates or other unnecessary info in bio/top of page will also show up in pop-up preview

MissedPages

The MissedPages extension tracks every time a site visitor tries to go to a wiki page that doesn't exist, and gives site editors a easy-to-use form with which to track the most popular missed pages and also to redirect these to existing pages

https://www.mediawiki.org/wiki/Extension:MissedPages

test

https://wiki.omniliberal.dev/view/Special:MissedPages

NOTE: works as expected, needs admin for edit

SpamBlacklist

prevents edits that contain URLs whose domains match regular expression patterns defined in specified files or wiki pages and registration by users using specified email addresses.

https://www.mediawiki.org/wiki/Extension:SpamBlacklist


(link to test if blocked https://tetr.io/ )

NOTE: works as expected, needs admin for edit

EmbedVideo

https://www.mediawiki.org/wiki/Extension:EmbedVideo_(fork)

Painstiny LULW
juicer live stream
comfYEE


...embed video in collapsible table
let
them
eat
cake
im
begging
you

VideoService "kick" not recognized.

-not surprising but noted


NOTE: video timestamps/clips may not work on embed, embed window size/alignment with:
 {{#ev=|||}} parser. 150px+ for usability 

Template Data

Label unsigned comments in a conversation.

Template parameters

ParameterDescriptionTypeStatus
User's nameuser 1

User name of person who forgot to sign their comment.

Userrequired
Datedate 2

Timestamp of when the comment was posted, in YYYY-MM-DD format.

Auto value
{{subst:#time:Y-m-d}}
Unknownsuggested
Yearyear

no description

Numberoptional
Monthmonth

no description

Numberoptional
Dayday

no description

Numberoptional
commentcomment

no description

Unknownoptional
NOTE: works as expected.

Parser functions

https://workingwithmediawiki.com/book/chapter11.html https://portability.fandom.com/wiki/Parser_function Whereas a tag extension is expected to take unprocessed text and return HTML to the browser, a parser function can 'interact' with other wiki elements in the page. For example, the output of a parser function could be used as a template parameter or in the construction of a link.


syntax: {{ #functionname: param1 | param2 | param3 }}

No height entered.

Seasons: It's some other season!


  • ParserFunctions

no


yes

no

no


NOTE: works as expected. *not sure if it solves issues Kizmut had.

Category Tree

The CategoryTree extension provides a dynamic view of the wiki's category structure as a tree. It uses AJAX to load parts of the tree on demand.

NOTE: works as expected. 

SimpleToolTip

The SimpleTooltip extension adds support for basic tooltips. It uses the Tooltipster Library to do so.

https://www.mediawiki.org/wiki/Extension:SimpleTooltip_(Universal-Omega)

the is a test for the tooltip

Destiny is my bestfriend.


'"`UNIQ--pre-00000015-QINU`"' is my bestfriend.

NOTE: color text issues when paired with tooltip.

NOTE: tooltip function displays after saving.
Page preview during editing does not show the tooltip alt text until published.
Obamna

^fixes color issue, but not as visually appealing help/tip pop up (works already on the live wiki with no extension)