Jump to content

Do not begin to migrate content here, it may be wiped without notice. More info.

Template:MoinMarkup/Smiley: Difference between revisions

From Debian Wiki
No edit summary
Compare with <<Icon>>
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<pre><onlyinclude>{{#switch: {{{smiley|{{{1|}}}}}}
<pre><onlyinclude>{{#switch: {{{smiley|{{{1|}}}}}}
| /!\
| /!\
| alert      = [[File:alert.png|16x16px|alert]]
| alert      = ⚠️
| X-(
| X-(
| angry      = [[File:angry.png|16x16px|angry]]
| angry      = 😡
| <!>
| <!>
| attention  = [[File:attention.png|16x16px|attention]]
| attention  = ❗️
| :D
| :D
| biggrin    = [[File:biggrin.png|16x16px|biggrin]]
| biggrin    = 😁
| (./)
| (./)
| checkmark  = [[File:checkmark.png|16x16px|checkmark]]
| checkmark  = ✔️
| >:>
| >:>
| devil      = [[File:devil.png|16x16px|devil]]
| devil      = 😈
| <:(
| <:(
| frown      = [[File:frown.png|16x16px|frown]]
| frown      = 😢
| {X}
| {X}
| icon-error = [[File:icon-error.png|16x16px|icon-error]]
| icon-error =
| {i}
| {i}
| icon-info  = [[File:icon-info.png|16x16px|icon-info]]
| icon-info  = ℹ️
| (!)
| (!)
| idea      = [[File:idea.png|16x16px|idea]]
| idea      = 💡
| :\
| :\
| ohwell    = [[File:ohwell.png|16x16px|ohwell]]
| ohwell    = 🫤
| {1}
| {1}
| prio1      = [[File:prio1.png|15x13px|prio1]]
| prio1      = 1️⃣
| {2}
| {2}
| prio2      = [[File:prio2.png|15x13px|prio2]]
| prio2      = 2️⃣
| {3}
| {3}
| prio3      = [[File:prio3.png|15x13px|prio3]]
| prio3      = 3️⃣
| :o
| :o
| redface    = [[File:redface.png|16x16px|redface]]
| redface    = 😮
| :(
| :(
| :-(
| :-(
| sad        = [[File:sad.png|16x16px|sad]]
| sad        = 😕
| :)
| :)
| :-)
| :-)
| smile      = [[File:smile.png|16x16px|smile]]
| smile      = 🙂
| B)
| B)
| B-)
| B-)
| smile2    = [[File:smile2.png|16x16px|smile2]]
| smile2    = 😎
| :))
| :))
| :-))
| :-))
| smile3    = [[File:smile3.png|16x16px|smile3]]
| smile3    = 😄
| ;)
| ;)
| ;-)
| ;-)
| smile4    = [[File:smile4.png|16x16px|smile4]]
| smile4    = 😉
| {o}
| {o}
| star_off  = [[File:star_off.png|16x16px|star_off]]
| star_off  = ⭐️
| {*}
| {*}
| star_on    = [[File:star_on.png|16x16px|star_on]]
| star_on    = 🌟
| {OK}
| {OK}
| thumbs-up  = [[File:thumbs-up.png|16x16px|thumbs-up]]
| thumbs-up  = 👍
| {{!}})
| {{!}})
| {{!}}-)
| {{!}}-)
| tired      = [[File:tired.png|16x16px|tired]]
| tired      = 😴
| :-?
| :-?
| tongue    = [[File:tongue.png|16x16px|tongue]]
| tongue    = 😛
| [[Category:Pages with unknown smileys]]{{{smiley|{{{1|}}}}}}
| [[Category:Pages with unknown smileys]]{{{smiley|{{{1|}}}}}}
}}[[Category:ReviewRequired/MoinMarkup/Smiley]]</onlyinclude></pre>
}}{{Template:MoinMarkup/Boilerplate}}</onlyinclude></pre>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
        "MoinMarkupID": {
            "type": "number",
            "required": true,
            "description": "Unique ID for this template on the page, must be the first parameter.",
            "deprecated": true
        },
"smiley": {
"smiley": {
"aliases": [
"aliases": [
Line 97: Line 103:
],
],
"required": true
"required": true
}
},
        "MoinMarkupID2": {
            "type": "number",
            "required": true,
            "description": "Same value as MoinMarkupID=, guaranteed to be the last parameter",
            "deprecated": true
        }
},
},
"description": "Unreviewed smiley imported from MoinMoin"
"description": "Unreviewed smiley imported from MoinMoin"
Line 103: Line 115:
</templatedata>
</templatedata>


MoinMoin supports [https://wiki.debian.org/HelpOnSmileys smileys] that aren't supported by default by MediaWiki.  This page converts those smileys to file links.
{{Template:MoinMarkup/TemplateBoilerplate}}
 
Some notes about this template:
 
* smileys are discussed in [https://wiki.debian.org/HelpOnSmileys HelpOnSmileys]
* most or all MoinMoin smileys are also accessible using [https://wiki.debian.org/HelpOnMacros#:~:text=%3C%3CIcon the <<Icon>> macro] - see [https://moinmo.in/HelpOnNavigation#Icon the list of icons]
** see [[Template:MoinMarkup/Macro]] for the MediaWiki implementation of <tt><<Icon>></tt>
 
</noinclude>
</noinclude>

Latest revision as of 22:53, 15 March 2026

<onlyinclude>{{#switch: {{{smiley|{{{1|}}}}}}
| /!\
| alert      = ⚠️
| X-(
| angry      = 😡
| <!>
| attention  = ❗️
| :D
| biggrin    = 😁
| (./)
| checkmark  = ✔️
| >:>
| devil      = 😈
| <:(
| frown      = 😢
| {X}
| icon-error = ❌
| {i}
| icon-info  = ℹ️
| (!)
| idea       = 💡
| :\
| ohwell     = 🫤
| {1}
| prio1      = 1️⃣
| {2}
| prio2      = 2️⃣
| {3}
| prio3      = 3️⃣
| :o
| redface    = 😮
| :(
| :-(
| sad        = 😕
| :)
| :-)
| smile      = 🙂
| B)
| B-)
| smile2     = 😎
| :))
| :-))
| smile3     = 😄
| ;)
| ;-)
| smile4     = 😉
| {o}
| star_off   = ⭐️
| {*}
| star_on    = 🌟
| {OK}
| thumbs-up  = 👍
| {{!}})
| {{!}}-)
| tired      = 😴
| :-?
| tongue     = 😛
| [[Category:Pages with unknown smileys]]{{{smiley|{{{1|}}}}}}
}}{{Template:MoinMarkup/Boilerplate}}</onlyinclude>

Unreviewed smiley imported from MoinMoin

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
MoinMarkupIDMoinMarkupID

Unique ID for this template on the page, must be the first parameter.

Numberdeprecated
smileysmiley 1

Smiley to show

Suggested values
alert angry attention biggrin checkmark devil frown icon-error icon-info idea ohwell prio1 prio2 prio3 redface sad smile smile2 smile3 smile4 star_off star_on thumbs-up tired tongue
Example
smile
Linerequired
MoinMarkupID2MoinMarkupID2

Same value as MoinMarkupID=, guaranteed to be the last parameter

Numberdeprecated

Please do not create new instances of this template.

When this wiki was converted from MoinMoin, we used MoinMarkup templates to represent anything that didn't translate neatly between the two formats. The goal is to gradually replace these with native MediaWiki equivalents.

The program that converted the old MoinMoin source always passes a unique MoinMarkupID= value as the first parameter, and the same value in MoinMarkupID2= as the last parameter. If you want to mass-edit every instance of this template (e.g. with the Replace Text extension), you should be able to search for something like {{MoinMarkup/Smiley|MoinMarkupID=(\d+)(.*)|MoinMarkupID2=\1}}.

Some notes about this template: