Шаблон:Token/doc: различия между версиями
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
GeloMor (обсуждение | вклад) Нет описания правки |
GeloMor (обсуждение | вклад) Нет описания правки |
||
(не показаны 3 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
<nowiki>{{token|текст|сокращение}}</nowiki><br /><br /> | <nowiki>{{token|текст|сокращение}}</nowiki><br /><br /> | ||
Список сокращений: | Список сокращений: | ||
{| class="wikitable" | |||
ar, armor | ! Сокращение !! Ссылка | ||
bi, biome | |- | ||
bd, bdp, bodydetail, bodydetailplan | | ar, armor || [[Armor token]] | ||
bo, bod, body | |- | ||
bg, bdg, bodygloss | | bi, biome || [[Biome token]] | ||
b, bd, bld, build, building | |- | ||
cm, cman, creaturemannerism, cmannerism, manner, manners, mannerism | | bd, bdp, bodydetail, bodydetailplan || [[Body detail plan token]] | ||
ct, tx, text, ctext, txt, ctxt, ctexture, creaturetexture, texture | |- | ||
c, cr, creature | | bo, bod, body || [[Body token]] | ||
cv, v, var, cvar, variation, cvariation, creaturevariation | |- | ||
e, ent, entity | | bg, bdg, bodygloss || [[Bodygloss]] | ||
et, eth, ethic, ethics | |- | ||
im, imat, imd, imdef, imatdef, inorganic, inorganicmaterial, inorganicmaterialdefinition | | b, bd, bld, build, building || [[Building token]] | ||
|- | |||
in, int, inter, interaction | | cm, cman, creaturemannerism, cmannerism, manner, manners, mannerism || [[Creature mannerism token]] | ||
id, idef, itdef, itemdef, item definition | |- | ||
i, it, item | | ct, tx, text, ctext, txt, ctxt, ctexture, creaturetexture, texture || [[Creature texture token]] | ||
lb, labor | |- | ||
la, language | | c, cr, creature || [[Creature token]] | ||
m, mat, material | |- | ||
md, mdef, matdef, mdefinition, materialdefinition | | cv, v, var, cvar, variation, cvariation, creaturevariation || [[Creature variation token]] | ||
p, pl, plant | |- | ||
pt, personality, trait, personalitytrait, bf, belief, beliefs, v, vl, value, values | | e, ent, entity || [[Entity token]] | ||
po, position | |- | ||
r, react, reaction | | et, eth, ethic, ethics || [[Ethic]] | ||
s, sk, skill | |- | ||
td, tdef, tissue, tdefintion, tissuedefinition | | im, imat, imd, imdef, imatdef, inorganic, inorganicmaterial, inorganicmaterialdefinition || [[Inorganic material definition token]] | ||
to, tool | |- | ||
tc, trap, trapcomponent | | in, int, inter, interaction || [[Interaction token]] | ||
ut, unit, unittype | |- | ||
wp, weapon | | id, idef, itdef, itemdef, item definition || [[Item definition token]] | ||
wo, world | |- | ||
| 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]] | |||
|- | |||
| p, pl, plant || [[Plant token]] | |||
|- | |||
| pt, personality, trait, personalitytrait, bf, belief, beliefs, v, vl, value, values || [[Personality trait]] | |||
|- | |||
| 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]] | |||
|} | |||
==Инструкция== | |||
* Добавить код во все страницы с категорией [[:Категория:Токены]] (страницы с списком токенов) | |||
* Добавить {{tl|text anchor}} к спискам токенов (JS): | |||
:<pre style="white-space:pre-wrap">$('#wpTextbox1').val($('#wpTextbox1').val().replace(/\|-\s*\n\|\s*([A-Z_]+)\s*\n/g, function(m, a){return '|-\n| {{text anchor|'+a+'}}\n'}));</pre> | |||
:Проверить пропущенные строки: | |||
:<pre>$('#wikiPreview tr').has('.text-anchor').hide()</pre> | |||
==Примеры== | |||
*{{token|ATTACK|am}} (снаряд) | |||
*{{token|ARMORLEVEL|ar}} (броня) | |||
*{{token|SPEED|c}} (существо) | |||
*{{token|NAME|c|cat:cats:cat}} | |||
<includeonly>[[Категория:Шаблоны]][[Категория:Шаблоны ссылок]][[en:Template:Token]]</includeonly> | |||
<noinclude>[[Категория:Документация шаблонов]][[en:Template:Token/doc]]</noinclude> | <noinclude>[[Категория:Документация шаблонов]][[en:Template:Token/doc]]</noinclude> |
Текущая версия от 03:01, 22 декабря 2024
{{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 |
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 |
p, pl, plant | Plant token |
pt, personality, trait, personalitytrait, bf, belief, beliefs, v, vl, value, values | Personality trait |
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]