Vorlage:MainMenuNpc: Unterschied zwischen den Versionen
Aus Lost Dreams Of Tomorrow Wiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/* ======================================== | |||
CSS - In MediaWiki:Common.css einfügen | |||
======================================== */ | |||
.npc-grid-container { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
} | |||
.npc-category { | |||
font-size: 1.3em; | |||
font-weight: 600; | |||
margin: 2em 0 0.8em 0; | |||
color: #202122; | |||
border-bottom: 1px solid #a2a9b1; | |||
padding-bottom: 0.3em; | |||
} | |||
.npc-category:first-child { | |||
margin-top: 0; | |||
} | |||
.npc-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); | |||
gap: 1em; | |||
margin-bottom: 2em; | |||
} | |||
.npc-box { | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
text-decoration: none; | |||
color: #202122; | |||
} | |||
.npc-box:hover { | |||
opacity: 0.7; | |||
} | |||
.npc-image { | |||
width: 48px; | |||
height: 48px; | |||
background: #eaecf0; | |||
border: 1px solid #a2a9b1; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
margin-bottom: 0.4em; | |||
} | |||
.npc-image img, | |||
.npc-image .image img { | |||
max-width: 100%; | |||
max-height: 100%; | |||
image-rendering: pixelated; | |||
} | |||
.npc-name { | |||
font-size: 0.85em; | |||
text-align: center; | |||
line-height: 1.3; | |||
color: #202122; | |||
height: 2.6em; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
overflow: hidden; | |||
} | |||
/* ======================================== | |||
TEMPLATE: NPC Box | |||
Erstelle: Template:NPC_Box | |||
======================================== */ | |||
<includeonly>[[{{{link|{{{name}}}}}}|<div class="npc-box"> | |||
<div class="npc-image">[[Datei:{{{image|{{{name}}}.png}}}|48px]]</div> | |||
<div class="npc-name">{{{name}}}</div> | |||
</div>]]</includeonly><noinclude> | |||
== Verwendung == | |||
<pre> | |||
{{NPC Box | |||
|name=Angler | |||
|image=Angler.png | |||
|link=Angler (optional) | |||
}} | |||
</pre> | |||
[[Kategorie:Vorlagen]] | |||
</noinclude> | |||
/* ======================================== | |||
TEMPLATE: NPC Grid | |||
Erstelle: Template:NPC_Grid | |||
======================================== */ | |||
<includeonly><div class="npc-grid-container"> | |||
<div class="npc-category">Pre-Hardmode</div> | |||
<div class="npc-grid"> | |||
{{NPC Box|name=Angler|image=Angler.png}} | |||
{{NPC Box|name=Arms Dealer|image=Arms Dealer.png}} | |||
{{NPC Box|name=Clothier|image=Clothier.png}} | |||
{{NPC Box|name=Demolitionist|image=Demolitionist.png}} | |||
{{NPC Box|name=Dryad|image=Dryad.png}} | |||
{{NPC Box|name=Dye Trader|image=Dye Trader.png}} | |||
{{NPC Box|name=Goblin Tinkerer|image=Goblin Tinkerer.png}} | |||
{{NPC Box|name=Guide|image=Guide.png}} | |||
{{NPC Box|name=Merchant|image=Merchant.png}} | |||
{{NPC Box|name=Nurse|image=Nurse.png}} | |||
{{NPC Box|name=Painter|image=Painter.png}} | |||
{{NPC Box|name=Party Girl|image=Party Girl.png}} | |||
{{NPC Box|name=Stylist|image=Stylist.png}} | |||
{{NPC Box|name=Tavernkeep|image=Tavernkeep.png}} | |||
{{NPC Box|name=Tax Collector|image=Tax Collector.png}} | |||
{{NPC Box|name=Witch Doctor|image=Witch Doctor.png}} | |||
{{NPC Box|name=Zoologist|image=Zoologist.png}} | |||
</div> | </div> | ||
<div class="npc-category">Hardmode</div> | |||
<div class="npc-grid"> | |||
{{NPC Box|name=Cyborg|image=Cyborg.png}} | |||
{{NPC Box|name=Pirate|image=Pirate.png}} | |||
{{NPC Box|name=Princess|image=Princess.png}} | |||
{{NPC Box|name=Santa Claus|image=Santa Claus.png}} | |||
{{NPC Box|name=Steampunker|image=Steampunker.png}} | |||
{{NPC Box|name=Truffle|image=Truffle.png}} | |||
{{NPC Box|name=Wizard|image=Wizard.png}} | |||
</div> | |||
</div></includeonly><noinclude> | |||
== Verwendung == | |||
Füge einfach <code><nowiki>{{NPC Grid}}</nowiki></code> auf der Seite ein. | |||
Um NPCs hinzuzufügen oder zu ändern, bearbeite dieses Template. | |||
[[Kategorie:Vorlagen]] | |||
</noinclude> | |||
Version vom 11. Januar 2026, 18:18 Uhr
/* ========================================
CSS - In MediaWiki:Common.css einfügen ======================================== */
.npc-grid-container {
max-width: 1200px; margin: 0 auto;
}
.npc-category {
font-size: 1.3em; font-weight: 600; margin: 2em 0 0.8em 0; color: #202122; border-bottom: 1px solid #a2a9b1; padding-bottom: 0.3em;
}
.npc-category:first-child {
margin-top: 0;
}
.npc-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 1em; margin-bottom: 2em;
}
.npc-box {
display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #202122;
}
.npc-box:hover {
opacity: 0.7;
}
.npc-image {
width: 48px; height: 48px; background: #eaecf0; border: 1px solid #a2a9b1; display: flex; align-items: center; justify-content: center; margin-bottom: 0.4em;
}
.npc-image img, .npc-image .image img {
max-width: 100%; max-height: 100%; image-rendering: pixelated;
}
.npc-name {
font-size: 0.85em; text-align: center; line-height: 1.3; color: #202122; height: 2.6em; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* ========================================
TEMPLATE: NPC Box Erstelle: Template:NPC_Box ======================================== */
Verwendung
{{NPC Box
|name=Angler
|image=Angler.png
|link=Angler (optional)
}}
/* ========================================
TEMPLATE: NPC Grid Erstelle: Template:NPC_Grid ======================================== */
Verwendung
Füge einfach {{NPC Grid}} auf der Seite ein.
Um NPCs hinzuzufügen oder zu ändern, bearbeite dieses Template.
