Vorlage:Button: Unterschied zwischen den Versionen

Aus Ardapedia
Alboin (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „<!-- Template:Button -------------------- Template to create a button that is actually a link @param {string} class HTML class for the button @param {string} icon File name of the icon @param {string} label Label for the button @param {string} page Page name to be link @param {string} type Type of button @param {string} url URL to be linked @return {string} wikitext of the button --><includeonly><!-- --><div class="tg-button {{#if:{{{type|}}}|tg-butto…“
 
Alboin (Diskussion | Beiträge)
K Löschen löschen
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{{Löschantrag|Diese Vorlage wird nicht mehr verwendet. Bitte auch die Unterseiten [[/doc]] und [[/styles.css]] löschen.|[[Benutzer:Alboin|Alboin]] 11:05, 7. Dez. 2025 (CET)}}
<!--
<!--
Template:Button
--------------------
Template to create a button that is actually a link
@param {string} class HTML class for the button
@param {string} class HTML class for the button
@param {string} icon File name of the icon
@param {string} icon File name of the icon
Zeile 13: Zeile 9:


@return {string} wikitext of the button
@return {string} wikitext of the button
--><includeonly><!--
--><includeonly><!--
--><div class="tg-button {{#if:{{{type|}}}|tg-button--{{{type}}}}} {{#if:{{{url|}}}|plainlinks}} {{#if:{{{class|}}}|{{{class}}}}}"><!--
--><div class="ardapedia-button {{#if:{{{type|}}}|ardapedia-button--{{{type}}}}} {{#if:{{{url|}}}|plainlinks}} {{#if:{{{class|}}}|{{{class}}}}}"><!--
-->{{#if:{{{page|}}}|<!--
-->{{#if:{{{seite|}}}|<!--
-->[[{{{page}}}|{{#if:{{{icon|}}}|<span class="tg-button-icon">[[File:{{{icon}}}|{{#ifeq:{{{type|}}}|icon|24px|18px}}|class=metadata|link=]]</span>}}{{{label|{{{page}}}}}}]]<!--
-->[[{{{seite}}}|{{#if:{{{icon|}}}|<span class="ardapedia-button-icon">[[File:{{{icon}}}|{{#ifeq:{{{type|}}}|icon|24px|18px}}|class=metadata|link=]]</span>}}{{{text|{{{seite}}}}}}]]<!--
-->}}<!--
-->}}<!--
-->{{#if:{{{url|}}}|<!--
-->{{#if:{{{url|}}}|<!--
-->[{{{url}}} {{#if:{{{icon|}}}|<span class="tg-button-icon">[[File:{{{icon}}}|{{#ifeq:{{{type|}}}|icon|24px|18px}}|class=metadata|link=]]</span>}}{{{label}}}]<!--
-->[{{{url}}} {{#if:{{{icon|}}}|<span class="ardapedia-button-icon">[[File:{{{icon}}}|{{#ifeq:{{{type|}}}|icon|24px|18px}}|class=metadata|link=]]</span>}}{{{text}}}]<!--
-->}}<!--
-->}}<!--
--></div><!--
--></div><!--
Zeile 26: Zeile 21:
--></includeonly><!--
--></includeonly><!--
--><noinclude><!--
--><noinclude><!--
 
--></noinclude>
--></noinclude>-->
 
<noinclude>
<noinclude>
{{/doc}}<!--
[[Kategorie:Vorlagen]]
{{Vorlagendokumentation}}<!--
--></noinclude>
--></noinclude>
Erzeugt einen Button, der ein Link ist
== Verwendung ==
<code><nowiki>{{Button|label=Beste Figur|page=Gollum}}</nowiki></code> gibt {{Button|label=Beste Figur|page=Gollum}}
<code><nowiki>{{Button|label=The One Ring|url=https://www.theonering.net}}</nowiki></code> gibt {{Button|label=The One Ring|url=https://www.theonering.net}}
<code><nowiki>{{Button|label=Beste Figur|page=Gollum|type=primary}}</nowiki></code> gibt {{Button|label=Beste Figur|page=Gollum|type=primary}}
<code><nowiki>{{Button|label=Beste Figur|page=Gollum|type=secondary}}</nowiki></code> gibt {{Button|label=Beste Figur|page=Gollum|type=secondary}}
<code><nowiki>{{Button|label=Beste Figur|page=Gollum|type=framed}}</nowiki></code> gibt {{Button|label=Beste Figur|page=Gollum|type=framed}}

Aktuelle Version vom 30. Januar 2026, 00:04 Uhr

Die Dokumentation für diese Vorlage ist auf der Diskussionsseite zu finden.

Fragen zum Zweck und zur Verwendungsweise sollten dort gestellt werden.

Allgemeine Hinweise zur Erstellung und Benutzung von Vorlagen sind unter Ardapedia:Vorlagen erreichbar.