mNo edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
::Is it also possible to have several of these codes {{t|Dragon-1}} in one template but on the content page only a selected pair will be shown? otherwise i end up with a lot of templates --[[User:Haagnus|Haagnus]] ([[User talk:Haagnus|talk]]) 17:24, May 30, 2013 (UTC) |
::Is it also possible to have several of these codes {{t|Dragon-1}} in one template but on the content page only a selected pair will be shown? otherwise i end up with a lot of templates --[[User:Haagnus|Haagnus]] ([[User talk:Haagnus|talk]]) 17:24, May 30, 2013 (UTC) |
||
+ | |||
+ | :::Yes, you can use a switch statement for that. (http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch) {{SUBST:User:Rocketslime_1_1/Sig|01:00,6/7/2013}} |
Revision as of 01:00, 7 June 2013
Note: This topic has been unedited for 11 years. It is considered archived - the discussion is over. Information in this thread may be out of date. Do not add to unless it really needs a response.
Hello, I am have some difficulty with my template. [1]
It's a table which also contains small images in the columns, Helemts, Prizes, and Enemies [2]. Most of these columns consist of several image and each image has some additional info such as alignment, link which end up in a lot of text which makes things unclear. Now what i am trying to do is use small variable?
for example {{Dragon-1}}
will be changed in File:Dragon-1.png|bottom|link=Dragon
I'm not sure how to do this right or if it's even possible?
Thanks --Haagnus (talk) 12:14, May 25, 2013 (UTC)
- For that you want to make a template like "Template:Dragon-1" and use Custom Reference Popups to display the info when hovered over. (Like this: (hover over icons of items) (The template setup for that)). {{SUBST:User:Rocketslime_1_1/Sig|01:17,5/29/2013}}
- Is it also possible to have several of these codes
{{Dragon-1}}
in one template but on the content page only a selected pair will be shown? otherwise i end up with a lot of templates --Haagnus (talk) 17:24, May 30, 2013 (UTC)
- Is it also possible to have several of these codes
- Yes, you can use a switch statement for that. (http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch) {{SUBST:User:Rocketslime_1_1/Sig|01:00,6/7/2013}}