Kategorien
Bearbeiten von „FreewarWiki:Bot/Skripts/npclist2wikibilder.pl“
Zur Navigation springen
Zur Suche springen
Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.
Aktuelle Version | Dein Text | ||
Zeile 12: | Zeile 12: | ||
# - introduced support for multiple languages | # - introduced support for multiple languages | ||
# - grouped items by npc picture | # - grouped items by npc picture | ||
# set the layout style for the table: | |||
$TABLEWIDTH = "50%"; | |||
# set language code for output: 0=en, 1=de | # set language code for output: 0=en, 1=de | ||
Zeile 20: | Zeile 24: | ||
@STR_NPC = ("NPC(s)", "NPC(s)"); | @STR_NPC = ("NPC(s)", "NPC(s)"); | ||
@STR_AUTHOR = ("created by", "Autor"); | @STR_AUTHOR = ("created by", "Autor"); | ||
@STR_HINT = ("<div style='background-color:orange; padding: 1px; border: 4px dashed black;'>\n" | @STR_HINT = ("<div style='width: $TABLEWIDTH; background-color:orange; padding: 1px; border: 4px dashed black;'>\n" | ||
. "{| border='0' cellspacing='8' cellpadding='0' " | . "{| border='0' cellspacing='8' cellpadding='0' " | ||
. "style='background-color: #f9f9f9; border: 1px solid #e9e9e9; font-size: 95%; margin-top: 2px; margin-bottom: 2px; clear: both;'\n" | . "style='background-color: #f9f9f9; border: 1px solid #e9e9e9; font-size: 95%; margin-top: 2px; margin-bottom: 2px; clear: both;'\n" | ||
Zeile 32: | Zeile 36: | ||
. "</div>\n" | . "</div>\n" | ||
, | , | ||
"<div style='background-color: orange; padding: 1px; border: 4px dashed black;'>\n" | "<div style='width: $TABLEWIDTH; background-color: orange; padding: 1px; border: 4px dashed black;'>\n" | ||
. "{| {{Bausteindesign3}}\n" | . "{| {{Bausteindesign3}}\n" | ||
. " | '''Hinweis:'''\n" | . " | '''Hinweis:'''\n" | ||
Zeile 50: | Zeile 54: | ||
print $STR_HINT[$LANGUAGE_CODE]; | print $STR_HINT[$LANGUAGE_CODE]; | ||
print "{| | print "{| {{Prettytable|width: $TABLEWIDTH}}\n"; | ||
print "|-\n"; | print "|-\n"; | ||
print "!" . $STR_PICTURE[$LANGUAGE_CODE] . "||" . $STR_NPC[$LANGUAGE_CODE] . "||" . $STR_AUTHOR[$LANGUAGE_CODE] . "\n"; | print "!" . $STR_PICTURE[$LANGUAGE_CODE] . "||" . $STR_NPC[$LANGUAGE_CODE] . "||" . $STR_AUTHOR[$LANGUAGE_CODE] . "\n"; |