Difference between revisions of "Template:ExpansionLink"
Bumsakalaka (talk | contribs) |
Bumsakalaka (talk | contribs) |
||
Line 74: | Line 74: | ||
'''Params when calling specific expansion link template like <code><nowiki>{{InnsCathedralsLink}}</nowiki></code>:''' | '''Params when calling specific expansion link template like <code><nowiki>{{InnsCathedralsLink}}</nowiki></code>:''' | ||
* <code>link</code> (mandatory) | * <code>link</code> (mandatory) - Link to expansion (default in new design) | ||
* <code>edition</code> (optional) | * <code>edition</code> (optional) - If set to C1, then parameters 'linkc1' will be used | ||
* <code>linkc1</code> (optional) | * <code>linkc1</code> (optional) - When edition=C1 then this link will be used | ||
* <code>logo</code> (optional) | * <code>logo</code> (optional) - [ <code>hide</code> | <code>noborder</code> | <code>name</code> | <code>image</code> | <code>symbol</code> | '''-empty-'''] . parameter for change design of logo like <code>hide</code> for hide logo, <code>noborder</code> to remove border around expansion symbol, <code>name</code> for name of symbol usable for '''[[:Template:ExpansionDescription]]''', <code>image</code> for wiki image with symbol, <code>symbol</code> pure symbol when need to show only symbol | ||
* <code>anchor</code> (optional) | * <code>anchor</code> (optional) - Anchor for specific part of expansion page, like link to Base_Game#The_Road | ||
* <code>linkonly</code> (optional) | * <code>linkonly</code> (optional) - [ <code>true</code> | '''<code>false</code>''' ] When <code>true</code> return only link with anchor. Widely used in [[:Template:Feature]], [[:Template:Figure]] and [[:Template:Piece]]. | ||
'''Internal Params used only inside expansion link templates and not used when calling <code><nowiki>{{InnsCathedralsLink}}</nowiki></code>:''' | '''Internal Params used only inside expansion link templates and not used when calling <code><nowiki>{{InnsCathedralsLink}}</nowiki></code>:''' |
Latest revision as of 19:14, 10 May 2024
[[File:{{{image}}}|16px|text-bottom|link={{{link}}}|{{{defaulttext}}}]][[{{{link}}}|{{{defaulttext}}}]]
Description:
Create a link to expansion with expansion symbol. Allowed to hide logo, change design of logo and also set edition of expansion, which allows to create specific link to 1st edition and 2nd edition of same expansion.
This Template will be not used directly on WiCa pages, but it will be created on separately created templates made for every expansion which will be set to translate.
Main advantage will be, that usage of {{InnsCathedralsLink}}
for Inns & Cathedrals will be used on each translated page and it will not be translated.
But if it will be necessary, it can create specific text for link like Updated text to Inns & Cathedrals
Attention:
Expansion links templates is translated on specific template page like Template:InnsCathedralsLink
Sources
Template | Desciption |
---|---|
Template:InnsCathedralsLink | Numbered expansion without difference between C1/C2 in name or expansion symbol |
Template:TradersBuildersLink | Numbered expansion with difference between C1/C2 in expansion symbol |
Template:CatapultLink | Numbered expansion, no e dditionefined |
Template:WheelFortuneLink | Not numbered expansion, no edition defined |
Examples for {{InnsCathedralsLink}}
or {{BaseGameLink}}
:
Request | Code | Output |
---|---|---|
Default | {{InnsCathedralsLink}}
|
Inns & Cathedrals |
Link to C1 edition | {{InnsCathedralsLink|edition=C1}}
|
Inns & Cathedrals |
Hide expansion symbol | {{InnsCathedralsLink|logo=hide}}
|
Inns & Cathedrals |
Hide border arround expansion symbol | {{InnsCathedralsLink|logo=noborder}}
|
Inns & Cathedrals |
Link to specific anchor on page | {{BaseGameLink|anchor=The_roads}}
|
Base Game |
Alternate text to link | {{InnsCathedralsLink|text=Expansion 1: I&C}}
|
Expansion 1: I&C |
No border, link to C1 and alternate text | {{InnsCathedralsLink|logo=noborder|edition=C1|text=Exp.1: I&C C1}}
|
Exp.1: I&C C1 |
Pure link to expansion | {{InnsCathedralsLink|linkonly=true}}
|
Inns and Cathedrals |
Symbol file name | {{InnsCathedralsLink|logo=name}}
|
Symbol_InnsCathedrals_C1C2.png |
Only image | {{InnsCathedralsLink|logo=image}}
|
|
Only symbol | {{InnsCathedralsLink|logo=symbol}}
|
Params when calling specific expansion link template like {{InnsCathedralsLink}}
:
link
(mandatory) - Link to expansion (default in new design)edition
(optional) - If set to C1, then parameters 'linkc1' will be usedlinkc1
(optional) - When edition=C1 then this link will be usedlogo
(optional) - [hide
|noborder
|name
|image
|symbol
| -empty-] . parameter for change design of logo likehide
for hide logo,noborder
to remove border around expansion symbol,name
for name of symbol usable for Template:ExpansionDescription,image
for wiki image with symbol,symbol
pure symbol when need to show only symbolanchor
(optional) - Anchor for specific part of expansion page, like link to Base_Game#The_Roadlinkonly
(optional) - [true
|false
] Whentrue
return only link with anchor. Widely used in Template:Feature, Template:Figure and Template:Piece.
Internal Params used only inside expansion link templates and not used when calling {{InnsCathedralsLink}}
:
image
(mandatory): File with expansion symboldefaulttext
(mandatory): Default text for linkdefaulttextprefix
(options): Add prefix before default texttext
(optional): User defined text when want to replace default textedit
(optional): Creates link to edit template using this link or show translation of template when open on different language then English