Template:Anm/doc

From About PCs Wiki
Jump to navigation Jump to search
edit · history · refresh · system messages · page infos · edit template · template page information
This is the documention subpage ot the template Anm

The template {{Anm}} creates a hint with an icon. The link and width of the icon can be changed.

Parameter list

x
namedescriptiondefaultstatus
1textoptional
iconiconAusrufz.pngoptional
breiteicon width30pxoptional
linklink adressemptyoptional
widthtext box widthautooptional
displaytext flow behaviour Template:W3sblockoptional
backbackground color#fffoptional

Copy&paste

{{Anm|1=|icon=|breite=|link=|width=|display=|back=}}

Application

{{Anm}}
unfolds as wikitext:
<div style="width: auto; display: inline-block; border: 5px ridge

#fc48d3; border-radius: 0.5em; padding: 0.5em; margin: 0;"><div style="display: flex; flex-wrap: nowrap; align-items: center;"> <div style="margin-right: 1em">[[File:BulB.svg|30px|link=Template:Anm]]</div> <div style="text-align: left;">text is missing

</div></div></div>
renders as
text is missing
{{Anm|1=this is a hint|width=auto|icon=Warning octagon.svg|breite=80px}}
unfolds as wikitext:
<div style="width: auto; display: inline-block; border: 5px ridge

#fc48d3; border-radius: 0.5em; padding: 0.5em; margin: 0;"><div style="display: flex; flex-wrap: nowrap; align-items: center;"> <div style="margin-right: 1em">[[File:Warning octagon.svg|80px|link=Template:Anm]]</div> <div style="text-align: left;">this is a hint

</div></div></div>
renders as
this is a hint
{{Anm|1=this is a hint|width=35em|icon=Ausrufz.png|breite=40px}}
unfolds as wikitext:
<div style="width: 35em; display: inline-block; border: 5px ridge

#fc48d3; border-radius: 0.5em; padding: 0.5em; margin: 0;"><div style="display: flex; flex-wrap: nowrap; align-items: center;"> <div style="margin-right: 1em">[[File:Ausrufz.png|40px|link=Template:Anm]]</div> <div style="text-align: left;">this is a hint

</div></div></div>
renders as
this is a hint

Wikitext

<includeonly><onlyinclude>

<div style="width: {{{width|auto}}}; display: {{{display|inline-block}}}; border: {{{border|5px ridge {{{bordercolor|{{Wico|1=}}}}}}}}; border-radius: {{{radius|0.5em}}}; padding: {{{padding|0.5em}}}; margin: {{{margin|0}}};"><div style="display: flex; flex-wrap: nowrap; align-items: center;"> {{#ifeq:{{{icon}}}|leer||<div style="margin-right: 1em">[[File:{{{icon|BulB.svg}}}|{{{breite|30px}}}|link={{{link|Template:Anm}}}]]</div>}} <div style="text-align: left;">{{{text|{{{1|text is missing}}}}}} </div></div></div></onlyinclude></includeonly>

{{Documentation}}