Шаблон:Token/doc
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
{{token|текст|сокращение}}
Список сокращений:
| Сокращение | Ссылка |
|---|---|
| ar, armor | Armor token |
| bi, biome | Biome token |
| bd, bdp, bodydetail, bodydetailplan | Body detail plan token |
| bo, bod, body | Body token |
| bg, bdg, bodygloss | Bodygloss |
| b, bd, bld, build, building | Building token |
| cm, cman, creaturemannerism, cmannerism, manner, manners, mannerism | Creature mannerism token |
| ct, tx, text, ctext, txt, ctxt, ctexture, creaturetexture, texture | Creature texture token |
| c, cr, creature | Creature token |
| cv, v, var, cvar, variation, cvariation, creaturevariation | Creature variation token |
| e, ent, entity | Entity token |
| et, eth, ethic, ethics | Ethic |
| g, gr, graphics | Graphics token |
| im, imat, imd, imdef, imatdef, inorganic, inorganicmaterial, inorganicmaterialdefinition | Inorganic material definition token |
| in, int, inter, interaction | Interaction token |
| id, idef, itdef, itemdef, item definition | Item definition token |
| i, it, item | Item token |
| ins, instrument | Instrument token |
| lb, labor | Labor token |
| la, language | Language token |
| m, mat, material | Material token |
| md, mdef, matdef, mdefinition, materialdefinition | Material definition token |
| mi, modinfo | Mod info token |
| p, pl, plant | Plant token |
| pg, goal | Personality goal |
| pt, personality, trait, personalitytrait, pf, facet, personalityfacet | Personality facet |
| pv, v, vl, value, values, bf, belief, beliefs | Personality value |
| po, position | Position token |
| r, react, reaction | Reaction |
| s, sk, skill | Skill token |
| sy, syndrome | Syndrome |
| td, tdef, tissue, tdefintion, tissuedefinition | Tissue definition token |
| to, tool | Tool token |
| tc, trap, trapcomponent | Trap component token |
| ts, textset, text, speech | Speech file |
| ut, unit, unittype | Unit type token |
| wp, weapon | Weapon token |
| wo, world | Advanced world generation |
Инструкция
- Добавить код во все страницы с категорией Категория:Токены (страницы с списком токенов)
- Добавить {{text anchor}} к спискам токенов (JS):
$('#wpTextbox1').val($('#wpTextbox1').val().replace(/\|-\s*\n\|\s*([A-Z_]+)\s*\n/g, function(m, a){return '|-\n| {{text anchor|'+a+'}}\n'}));- Проверить пропущенные строки:
$('#wikiPreview tr').has('.text-anchor').hide()
Примеры
[ATTACK](снаряд)[ARMORLEVEL](броня)[SPEED](существо)[NAME:cat:cats:cat]